JP5296419B2 - How to change the ladder program - Google Patents

How to change the ladder program Download PDF

Info

Publication number
JP5296419B2
JP5296419B2 JP2008148796A JP2008148796A JP5296419B2 JP 5296419 B2 JP5296419 B2 JP 5296419B2 JP 2008148796 A JP2008148796 A JP 2008148796A JP 2008148796 A JP2008148796 A JP 2008148796A JP 5296419 B2 JP5296419 B2 JP 5296419B2
Authority
JP
Japan
Prior art keywords
timing chart
input
ladder program
ladder
displayed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2008148796A
Other languages
Japanese (ja)
Other versions
JP2009294966A (en
Inventor
群 王
慶一郎 井出
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Koyo Electronics Industries Co Ltd
Original Assignee
Koyo Electronics Industries Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Koyo Electronics Industries Co Ltd filed Critical Koyo Electronics Industries Co Ltd
Priority to JP2008148796A priority Critical patent/JP5296419B2/en
Publication of JP2009294966A publication Critical patent/JP2009294966A/en
Application granted granted Critical
Publication of JP5296419B2 publication Critical patent/JP5296419B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To facilitate machine control using a programmable controller without adjusting the physical position of a sensor or the like, while allowing adjustment of the timing of sensor detection signals or the like. <P>SOLUTION: A timing chart whose horizontal axis represents a lapse of time and whose vertical axis indicates on/off of an input contact or an output contact displayed by a ladder symbol on a ladder program, is displayed on the display screen of a programming tool 10. A signal waveform indicating the on/off of the input contact is adjusted over the timing chart to modify the ladder program related to the input contact. <P>COPYRIGHT: (C)2010,JPO&amp;INPIT

Description

本発明は、ラダープログラムの変更方法、表示画面、プログラミングツール、制御システムに関する。   The present invention relates to a ladder program changing method, a display screen, a programming tool, and a control system.

ラダープログラムは、ラダー図形式で制御シーケンスを定めるプログラムを記述する1つの方式である。ラダー図には、回路図がはしご状に描かれており、両端の垂直な二つの母線が動力をシンボリックに表わし、その間で水平に結ぶ平行な線上に入力接点や出力接点がラダー記号で示される。ラダー図ではその処理の内容をこれら接点の関係として表示している。   A ladder program is one method for describing a program that defines a control sequence in a ladder diagram format. In the ladder diagram, the circuit diagram is drawn in the form of a ladder, and the two vertical busbars at both ends represent the power symbolically, and the input and output contacts are indicated by ladder symbols on a parallel line connecting horizontally between them. . In the ladder diagram, the contents of the processing are displayed as the relationship between these contacts.

そして、ユーザは、パーソナルコンピュータ等のプログラミングツールにてラダープログラムを作成し、その作成したラダープログラムをプログラマブルコントローラに転送ロードする。こうしてラダープログラムをロードしたプログラマブルコントローラにおいては、ラダー図上のラダー記号で示される入出力接点に対応して実際の入出力接点(実機入出力接点)に入出力デバイスを接続し、ラダープログラムに従い、実機入出力接点を通じて、例えば、ベルトコンベア上を搬送するボトルの位置をセンサで検出し、そのセンサ検出信号から、アクチュエータを駆動して液体注入、キャップ取り付け、キャップ締め付け等の一連の機械動作を制御するようになっている。   Then, the user creates a ladder program with a programming tool such as a personal computer, and transfers and loads the created ladder program to the programmable controller. In the programmable controller loaded with the ladder program in this way, connect the input / output device to the actual input / output contact (actual machine input / output contact) corresponding to the input / output contact indicated by the ladder symbol on the ladder diagram. Through the actual input / output contact, for example, the position of the bottle transported on the belt conveyor is detected by a sensor, and from the sensor detection signal, the actuator is driven to control a series of machine operations such as liquid injection, cap attachment, and cap tightening. It is supposed to be.

このような一連の機械動作にあってはベルトコンベアを駆動するモータ速度、センサによるボトル検出、アクチュエータによるボトルへの液注入、ボトルのキャップ取り出し、ボトルへのキャップ締め付けのタイミングは工程順に沿って制御されることが必要である。   In such a series of machine operations, the motor speed that drives the belt conveyor, the bottle detection by the sensor, the liquid injection into the bottle by the actuator, the bottle cap removal, and the bottle cap tightening timing are controlled according to the process order. It is necessary to be done.

そのため、例えば、センサの物理的な取り付け位置が正規の位置からずれているような場合、実機入力接点に入力されるセンサ検出信号の入力タイミングがずれるので、センサの物理的な取り付け位置を調整することが行われている。このことはベルトコンベア駆動モータ、アクチュエータ等においても同様にそれぞれ調整することが行われている。   Therefore, for example, when the physical attachment position of the sensor is deviated from the normal position, the input timing of the sensor detection signal input to the actual machine input contact is deviated, so the physical attachment position of the sensor is adjusted. Things have been done. This is similarly adjusted in the belt conveyor drive motor, actuator, and the like.

しかしながら、このセンサの取り付け位置は、往々にして工場内の状況、制御盤の位置関係などの事情により、容易に調整することができない場合があり、その取り付け調整には多大な時間と労力とが要求される場合がある。なお、このようなプログラマブルコントローラの先行文献として下記特許文献1を挙げることができる。
特開平10−161710
However, the mounting position of this sensor often cannot be adjusted easily due to circumstances such as the situation in the factory and the positional relationship of the control panel, and this mounting adjustment takes a lot of time and labor. May be required. In addition, the following patent document 1 can be mentioned as a prior document of such a programmable controller.
JP-A-10-161710

したがって、本発明により解決すべき課題は、センサ等のデバイスの物理的な取り付け位置がずれていたりしていても、その物理的位置を調整する必要なく、プログラマブルコントローラで機械制御をできるようにすることである。   Therefore, the problem to be solved by the present invention is to enable machine control by a programmable controller without the need to adjust the physical position even if the physical mounting position of a device such as a sensor is shifted. That is.

本発明の請求項1に記載のラダープログラムの変更方法は、画面表示によって、横軸に時間の経過、縦軸にラダープログラム上でラダー信号で表示される入力接点や出力接点のON/OFF変化を表すタイミングチャートを表示し、この表示されたタイミングチャート上で入力接点のON/OFF変化を示す信号波形を、調整したい信号波形部分をその波形調整幅に応じてドラッグアンドドロップすることで調整することにより、上記入力接点に関わるラダープログラムを変更することを可能としたことを特徴とするものである。 The method of changing the ladder program according to claim 1 of the present invention is based on the screen display, with the passage of time on the horizontal axis and the ON / OFF change of the input contact and output contact displayed on the ladder program as ladder signals on the vertical axis. Is displayed, and the signal waveform indicating the ON / OFF change of the input contact on the displayed timing chart is adjusted by dragging and dropping the signal waveform portion to be adjusted according to the waveform adjustment width. Thus , the ladder program related to the input contact can be changed.

本発明では、タイミングチャート上で入力接点のON/OFF変化を示す信号波形を調整することにより、上記入力接点に関わるラダープログラムを変更することができるので、例えば、入力接点に接続されているセンサ等のデバイスの取り付け位置がずれていたりしていても、その物理的位置を調整する必要なく、プログラマブルコントローラで機械の制御を行うことができる。   In the present invention, the ladder program related to the input contact can be changed by adjusting the signal waveform indicating the ON / OFF change of the input contact on the timing chart. For example, the sensor connected to the input contact Even if the mounting position of a device such as the above is deviated, the machine can be controlled by the programmable controller without the need to adjust the physical position.

本発明の請求項2に記載の表示画面は、請求項1に記載の方法に用いるタイミングチャートを表示することができるようになっている、ことを特徴とするものである。この表示画面を例えばプログラマブルコントローラに装備することにより、プログラマブルコントローラ内でタイミングチャートをユーザ操作して入力接点への入力信号の波形調整を行うようにしてもよい。また、この表示画面を携帯機器に装備し、プログラマブルコントローラと携帯機器とを接続し、この携帯機器にてプログラマブルコントローラのラダープログラムを変更できるようにしてもよい。   The display screen according to claim 2 of the present invention is characterized in that a timing chart used in the method according to claim 1 can be displayed. For example, by providing this display screen in a programmable controller, the user may operate the timing chart in the programmable controller to adjust the waveform of the input signal to the input contact. Further, the display screen may be installed in a portable device, the programmable controller and the portable device may be connected, and the ladder program of the programmable controller may be changed by the portable device.

本発明の請求項3に記載のプログラミングツールは、表示画面にタイミングチャート表示ウィンドウを呼び出すと共に、このタイミングチャート表示ウィンドウに横軸に時間の経過、縦軸にラダープログラム上でラダー記号で表示される入力接点や出力接点のON/OFF変化を表すタイミングチャートを表示し、この表示されたタイミングチャート上における入力接点のON/OFF変化を示す信号波形を、調整したい信号波形部分をその波形調整幅に応じてドラッグアンドドロップすることで調整して、その入力接点に関わるラダープログラムを変更可能とした、ことを特徴とするものである。 The programming tool according to claim 3 of the present invention calls a timing chart display window on the display screen, and the timing chart display window displays time on the horizontal axis and ladder symbols on the ladder program on the vertical axis. Display the timing chart showing the ON / OFF change of the input contact and output contact, and display the signal waveform indicating the ON / OFF change of the input contact on the displayed timing chart with the signal waveform part you want to adjust to the waveform adjustment width Accordingly, the ladder program related to the input contact can be changed by dragging and dropping .

本発明の請求項4に記載の制御システムは、プログラマブルコントローラに上記記載のプログラミングツールを接続し、プログラマブルコントローラの実機接点への信号の入力タイミングをプログラミングツールのタイミングチャート表示ウィンドウ上のタイミングチャートに表示し、ユーザ操作で上記タイミングチャートに表示する信号波形を、調整したい信号波形部分をその波形調整幅に応じてドラッグアンドドロップすることで調整して、その調整に関わるラダープログラムを変更し、その変更したラダープログラムをプログラマブルコントローラにロードするようになっている、ことを特徴とするものである。 The control system according to claim 4 of the present invention connects the programming tool described above to the programmable controller, and displays the input timing of the signal to the actual machine contact of the programmable controller in the timing chart on the timing chart display window of the programming tool. Then, the signal waveform displayed on the timing chart by user operation is adjusted by dragging and dropping the signal waveform part you want to adjust according to the waveform adjustment width, and the ladder program related to the adjustment is changed, and the change The ladder program is loaded into the programmable controller.

本発明によれば、センサ等のデバイスの取り付け位置がずれていたりしていてもその物理的位置を調整する必要なく、表示画面に表示したタイミングチャートにおいて入力接点への入力信号の波形調整にて、シーケンス制御の調整ができるようになる。   According to the present invention, even if the mounting position of a device such as a sensor is shifted, it is not necessary to adjust the physical position, and by adjusting the waveform of the input signal to the input contact in the timing chart displayed on the display screen. The sequence control can be adjusted.

以下、添付図面を参照して、本発明の実施形態に係るラダープログラムの変更方法、表示画面、プログラミングツール、制御システムを説明する。   Hereinafter, a ladder program changing method, a display screen, a programming tool, and a control system according to embodiments of the present invention will be described with reference to the accompanying drawings.

図1を参照して、実施の形態の制御システムは、ラダープログラムを作成し転送するプログラミングツール10と、プログラミングツール10から転送されたラダープログラムに従い制御を行うプログラマブルコントローラ(PLC)12と、制御1サイクル(後述するロータリエンコーダ14の1回転サイクル)の間に所定のインパルス信号をプログラマブルコントローラ12に入力するロータリエンコーダ14と、を備える。プログラマブルコントローラ12とロータリエンコーダ14は共に制御盤16に設置されている。   Referring to FIG. 1, a control system according to an embodiment includes a programming tool 10 that creates and transfers a ladder program, a programmable controller (PLC) 12 that performs control according to the ladder program transferred from the programming tool 10, and a control 1. A rotary encoder 14 that inputs a predetermined impulse signal to the programmable controller 12 during a cycle (one rotation cycle of the rotary encoder 14 described later). Both the programmable controller 12 and the rotary encoder 14 are installed on the control panel 16.

制御システムはまた、プログラマブルコントローラ12により制御される生産設備の一例として、ベルトコンベア18と、プログラマブルコントローラ12からの駆動信号によりベルトコンベア18を駆動するモータ20と、ベルトコンベア18上を搬送するボトル22を検出し、その検出信号をプログラマブルコントローラ12に入力する複数の第1、第2、第3センサ24,26,28と、ベルトコンベア18上を搬送させられるボトル22に対してプログラマブルコントローラ12からの駆動信号により液注入機構30、キャップ取り出し機構32、キャップ締め付け機構34を作動させる複数のアクチュエータ(図示略)と、を備える。36はキャップ,38はボトル22に注入した液体を示す。   As an example of production equipment controlled by the programmable controller 12, the control system also includes a belt conveyor 18, a motor 20 that drives the belt conveyor 18 by a drive signal from the programmable controller 12, and a bottle 22 that is transported on the belt conveyor 18. A plurality of first, second, and third sensors 24, 26, and 28 that input the detection signal to the programmable controller 12 and the bottle 22 that is conveyed on the belt conveyor 18 from the programmable controller 12 And a plurality of actuators (not shown) that actuate the liquid injection mechanism 30, the cap removal mechanism 32, and the cap tightening mechanism 34 according to the drive signal. Reference numeral 36 denotes a cap, and 38 denotes liquid injected into the bottle 22.

ベルトコンベア18上を搬送させられるボトル22が第1搬送位置で第1センサ24により検出されると、その検出信号はプログラマブルコントローラ12に与えられる。プログラマブルコントローラ12は、この検出信号に応答して、液注入機構30を駆動するアクチュエータに駆動信号を出力することで、ボトル22に液38が注入される。   When the bottle 22 transported on the belt conveyor 18 is detected by the first sensor 24 at the first transport position, the detection signal is given to the programmable controller 12. In response to this detection signal, the programmable controller 12 outputs a drive signal to an actuator that drives the liquid injection mechanism 30, whereby the liquid 38 is injected into the bottle 22.

ボトル22が第2搬送位置で第2センサ26により検出されると、その検出信号がプログラマブルコントローラ12に与えられる。プログラマブルコントローラ12は、この検出信号に応答して、キャップ取り出し機構32を駆動するアクチュエータに駆動信号を出力することで、キャップ36が取り出しされる。   When the bottle 22 is detected by the second sensor 26 at the second transport position, the detection signal is given to the programmable controller 12. In response to this detection signal, the programmable controller 12 outputs a drive signal to an actuator that drives the cap removal mechanism 32, whereby the cap 36 is removed.

ボトル22が第3搬送位置で第3センサ28により検出されると、その検出信号がプログラマブルコントローラ12に与えられる。プログラマブルコントローラ12は、この検出信号に応答して、キャップ締め付け機構34を駆動するアクチュエータに駆動信号を出力することで、キャップ36がボトル22に締め付けられる。   When the bottle 22 is detected by the third sensor 28 at the third transport position, the detection signal is given to the programmable controller 12. In response to this detection signal, the programmable controller 12 outputs a drive signal to an actuator that drives the cap tightening mechanism 34, whereby the cap 36 is tightened to the bottle 22.

図2を参照して、プログラミングツール10は、汎用パーソナルコンピュータからなり、実施の形態の説明に必要な機能部として、タイミングチャート表示部40と、タイミングチャート格納部42と、タイミングチャートを変更操作するためのマウスやキーボード等の操作部44と、基本のソフトウエアをはじめとして、編集したラダープログラムや、タイミングチャートをウインドウ画面に呼び出したり、タイミングチャートを生成したり、それに変更を加えたり、プログラマブルコントローラ12に転送したりするためのプログラム、その他各種のアプリケーションプログラムを格納するメモリ46と、プログラマブルコントローラ12との通信のための通信インターフェース48と、上記プログラムに従い、上記各部を統括制御するCPU50とを有する。   Referring to FIG. 2, programming tool 10 includes a general-purpose personal computer, and performs a timing chart display unit 40, a timing chart storage unit 42, and a timing chart change function as functional units necessary for describing the embodiment. Operation unit 44 such as mouse and keyboard, basic software, and other edited ladder programs and timing charts are called on the window screen, timing charts are generated, changes are made, programmable controllers 12 and a memory 46 for storing various other application programs, a communication interface 48 for communication with the programmable controller 12, and the above-mentioned program for overall control. And a PU50.

タイミングチャート表示部40は、通常のディスプレイとして、プログラミン作業用画面としての表示や、ラダープログラムの表示や、タイミングチャートを表示したりする表示画面を有している。このタイミングチャートは、この表示画面上に操作部44の操作により呼び出しされるウインドウ画面上に表示されるようになっている。タイミングチャートは、図6以降にも示すように、横軸に時間の経過、縦軸にラダープログラム上でラダー記号にて表示される入力接点や出力接点のON/OFF変化を表すものである。ユーザは、この表示画面に表示するタイミングチャート上で入力接点のON/OFF変化を示す信号波形を、操作部44を用いて調整することができるようになっている。タイミングチャート表示画面にはマウスカーソルが表示されており、上記信号波形のうち、調整したい信号波形部分をその波形調整幅に応じてドラッグアンドドロップすることで調整することができるようになっている。このドラッグアンドドロップ操作信号は、CPU50に入力され、CPU50はこのドラッグアンドドロップ操作信号に応じて、その信号波形を調整位置に変化させる一方、その調整に応じてラダープログラムを後述するように変更する。   The timing chart display unit 40 has a display screen for displaying a program work screen, a ladder program, and a timing chart as a normal display. This timing chart is displayed on the window screen called by the operation of the operation unit 44 on this display screen. As shown in FIG. 6 and subsequent figures, the timing chart represents the passage of time on the horizontal axis and the ON / OFF changes of the input contacts and output contacts displayed on the ladder program with ladder symbols on the ladder program. The user can adjust the signal waveform indicating the ON / OFF change of the input contact on the timing chart displayed on the display screen using the operation unit 44. A mouse cursor is displayed on the timing chart display screen, and a signal waveform portion to be adjusted in the signal waveform can be adjusted by dragging and dropping according to the waveform adjustment width. The drag and drop operation signal is input to the CPU 50. The CPU 50 changes the signal waveform to the adjustment position in accordance with the drag and drop operation signal, and changes the ladder program in accordance with the adjustment as described later. .

タイミングチャート格納部42は、タイミングチャート表示部40に表示するためのタイミングチャートのデータを格納記憶している。このタイミングチャートは、ユーザにより機械をどのように制御するかに沿って作成されている。また、ユーザは、このタイミングチャートに沿ってもラダープログラムを作成することができる。   The timing chart storage unit 42 stores and stores timing chart data to be displayed on the timing chart display unit 40. This timing chart is prepared in accordance with how the user controls the machine. The user can also create a ladder program along this timing chart.

メモリ46は、このプログラミングツール10を用いてユーザが作成したラダープログラムを格納することができるものである。タイミングチャート表示画面上のタイミングチャートで入力接点のON/OFF変化を示す信号波形を、操作部44を用いて調整した場合、その変更されたタイミングチャートは、タイミングチャート格納部42に格納しなおされる。また、上記したようにCPU50は、タイミングチャートの変更に伴いラダープログラムを変更する。   The memory 46 can store a ladder program created by the user using the programming tool 10. When the signal waveform indicating ON / OFF change of the input contact in the timing chart on the timing chart display screen is adjusted using the operation unit 44, the changed timing chart is stored again in the timing chart storage unit 42. The Further, as described above, the CPU 50 changes the ladder program in accordance with the change of the timing chart.

通信インターフェース48は、プログラマブルコントローラ12との通信に用いるインターフェースであり、プログラマブルコントローラ12にラダープログラムを転送したり、プログラマブルコントローラ12からラダープログラムを受信することができる。   The communication interface 48 is an interface used for communication with the programmable controller 12, and can transfer a ladder program to the programmable controller 12 and receive a ladder program from the programmable controller 12.

CPU50は上記したごとく、プログラミングツール10内の各部を統括制御するものである。   As described above, the CPU 50 controls each part in the programming tool 10 in an integrated manner.

図3を参照して、プログラマブルコントローラ12は、実施の形態の説明に必要な機能部として、ラダープログラムメモリ52と、プログラミングツール10との通信のための通信インターフェース54と、センサやアクチュエータ等のデバイスに対する信号の入出力に用いる入出力インターフェース56と、これらを統括制御するCPU58とを備える。プログラマブルコントローラ12の入力接点や、出力接点の図示は略している。   With reference to FIG. 3, the programmable controller 12 includes a ladder program memory 52, a communication interface 54 for communication with the programming tool 10, and devices such as sensors and actuators as functional units necessary for describing the embodiment. And an input / output interface 56 used for input / output of signals to / from the CPU and a CPU 58 for overall control thereof. Illustration of input contacts and output contacts of the programmable controller 12 is omitted.

ラダープログラムメモリ52は、プログラミングツール10から転送されてきたラダープログラムをロードしている。通信インターフェース54は、プログラミングツール10の通信インターフェース48に、通信ケーブルを介して、あるいは、ネットワークを通じて、接続される。入出力インターフェース56には、センサ24,26,28や図示略のアクチュエータ等のデバイスが接続され、センサ24,26,28等からは入力接点を介して検出信号が入力され、アクチュエータ等へは、出力接点を介して駆動信号を出力することができるようになっている。CPU58は上記した各部を統括制御するものである。   The ladder program memory 52 loads the ladder program transferred from the programming tool 10. The communication interface 54 is connected to the communication interface 48 of the programming tool 10 via a communication cable or through a network. Devices such as sensors 24, 26, 28 and actuators (not shown) are connected to the input / output interface 56. Detection signals are input from the sensors 24, 26, 28, etc. via input contacts. A drive signal can be output via the output contact. The CPU 58 performs overall control of each unit described above.

次に、上記ラダープログラムのうち、第2センサ26によりキャップ36を取り出すラダープログラムを、図4を参照して、説明する。   Next, among the ladder programs, a ladder program for taking out the cap 36 by the second sensor 26 will be described with reference to FIG.

図4に示すラダープログラム(ラダー図とも称することができる)では、ラダー記号で表す入力接点X30、タイマTM1、入力接点M30、タイマTM2、入力接点M31、タイマTM3、出力接点Y30、によりラダー図化されたプログラムになっている。入力接点X30には第2センサ26、入力接点M30,M31にはロータリエンコーダ14が接続される。タイマTM1−TM3は、オンディレイタイマである。このラダープログラムの詳細説明は略する。   In the ladder program shown in FIG. 4 (which can also be referred to as a ladder diagram), a ladder diagram is formed by an input contact X30, a timer TM1, an input contact M30, a timer TM2, an input contact M31, a timer TM3, and an output contact Y30 represented by ladder symbols. Has become a program. The second sensor 26 is connected to the input contact X30, and the rotary encoder 14 is connected to the input contacts M30 and M31. Timers TM1-TM3 are on-delay timers. Detailed description of this ladder program is omitted.

以上のようにしてベルトコンベア18上を搬送するボトル22に対して、液注入、キャップ取り出し、キャップ締め付けの各工程が実施されるが、上記において、例えば、図5で示すように、第2センサ26の取り付け位置が正規の位置Aから位置BやCにずれて、第2センサ26によるボトル検出タイミングが早すぎたり、遅すぎたりした場合では、キャップの取り出しや、次の工程であるキャップ締め付けに不具合が発生したりすることになる。そのため、第2センサ26による検出タイミングの調整が必要となる。そして、実施の形態では第2センサ26の物理的な取り付け位置の調整を何等行う必要がなく、プログラミングツール10の表示画面上に表示したタイミングチャートに対するユーザ操作により、第2センサ26の検出タイミングを調整可能としたものである。   As described above, the steps of liquid injection, cap removal, and cap tightening are performed on the bottle 22 transported on the belt conveyor 18. In the above, for example, as shown in FIG. When the attachment position of the nozzle 26 is shifted from the normal position A to the position B or C, and the bottle detection timing by the second sensor 26 is too early or too late, the cap is taken out or the cap is tightened as the next step. Will cause problems. Therefore, adjustment of the detection timing by the second sensor 26 is necessary. In the embodiment, there is no need to adjust the physical attachment position of the second sensor 26, and the detection timing of the second sensor 26 is set by a user operation on the timing chart displayed on the display screen of the programming tool 10. It can be adjusted.

以下、図5で示すベルトコンベア18上を搬送するボトル22に対して、キャップ取り出し工程に関して図6ないし図8を参照して、タイミングチャートを説明する。図6以降に示すタイミングチャートは、図2のプログラミングツール10のタイミングチャート表示部40において表示されるタイミングチャートを示す。また、図6ないし図8において横軸は時間の経過であるが、ロータリエンコーダ14の1回転すなわち回転角度0度から360度までを1サイクルとする。なお、実施の形態では説明の都合でキャップ取り出し工程に関して説明するが、この工程に限定されるものでは何等ないことはもちろんである。もちろんベルトコンベア18を用いた機械制御は説明の一例にすぎない。さらに、ベルトコンベア18は直線的に示したが、ドラム形態に工程を配置し、ドラム中心から一定角度ごとに各工程を区分けするようなドラム形態であってもよい。ロータリエンコーダ14は工程が直線状であってもドラム状であっても適用することができる。   Hereinafter, the timing chart will be described with reference to FIGS. 6 to 8 regarding the cap removing process for the bottle 22 transported on the belt conveyor 18 shown in FIG. The timing charts shown in and after FIG. 6 are timing charts displayed on the timing chart display unit 40 of the programming tool 10 of FIG. 6 to 8, the horizontal axis indicates the passage of time, but one rotation of the rotary encoder 14, that is, a rotation angle of 0 to 360 degrees is defined as one cycle. In the embodiment, the cap removal process will be described for the convenience of description, but it is needless to say that the process is not limited to this process. Of course, machine control using the belt conveyor 18 is merely an example. Furthermore, although the belt conveyor 18 is shown linearly, the drum form may be such that the steps are arranged in a drum form and each process is divided at a certain angle from the drum center. The rotary encoder 14 can be applied regardless of whether the process is linear or drum-shaped.

図6(a)は、第1入力接点X30へのセンサの検出信号の入力タイミング、図6(b)は第2入力接点M30へのロータリエンコーダ14のインパルス信号の入力タイミング、図6(c)は第3入力接点M31へのロータリエンコーダ14のインパルス信号の入力タイミング、図6(d)は出力接点Y30からのキャップ取り出し信号を示す。   6A shows the input timing of the sensor detection signal to the first input contact X30, FIG. 6B shows the input timing of the impulse signal of the rotary encoder 14 to the second input contact M30, and FIG. 6C. Is the input timing of the impulse signal of the rotary encoder 14 to the third input contact M31, and FIG. 6D shows the cap removal signal from the output contact Y30.

図6(a)の検出信号と図6(b)のインパルス信号とが一致すると、図6(d)のキャップ取り出し信号がONに立ち上がり、図6(c)のインパルス信号が出力されると、図6(d)のキャップ取り出し信号がOFFに立ち下がる。このキャップ取り出し信号によりキャップ取り出し機構32のアクチュエータが作動されることでキャップ36が取り出され、ボトル22に装着される。この場合、センサ26は図5の正規の位置Aに取り付けられているので、タイミングチャート画面上で操作部44であるマウス操作をしてタイミングチャートを変更する必要はない。   When the detection signal in FIG. 6A matches the impulse signal in FIG. 6B, the cap removal signal in FIG. 6D rises to ON and the impulse signal in FIG. 6C is output. The cap removal signal in FIG. 6D falls to OFF. By actuating the actuator of the cap removal mechanism 32 by this cap removal signal, the cap 36 is removed and attached to the bottle 22. In this case, since the sensor 26 is attached to the regular position A in FIG. 5, it is not necessary to change the timing chart by operating the mouse as the operation unit 44 on the timing chart screen.

しかし、図7(a)の実線で示すように、センサ26の取り付け位置が正規位置Aではなく不正規位置Bであるために、第1入力接点X30へのセンサ検出信号の入力タイミングが早すぎて、図7(b)の実線で示す第2入力接点M30へのロータリエンコーダのインパルス信号の入力タイミングと比較して一致せずにずれている場合、マウス操作で図7(a)の破線で示すように第1入力接点X30へのセンサ検出信号の入力タイミング波形をずらすと、第1タイマTM1にはそのずらした分に相当するオンディレイ動作時間がセットされ、これにより、第1入力接点X30のセンサ検出信号の入力タイミングを第2入力接点M30へのロータリエンコーダのインパルス信号の入力タイミングに一致させることができ、図6(d)で示すようにキャップ取り出し信号を正規の状態で出力させ、キャップ取り出しが行われる。この場合、センサ26の取り付け位置は不正規位置Bのままであり、その物理的位置は変更されていない。   However, as indicated by the solid line in FIG. 7A, the sensor 26 is mounted not at the regular position A but at the irregular position B, so the input timing of the sensor detection signal to the first input contact X30 is too early. If the input timing of the impulse signal of the rotary encoder to the second input contact M30 indicated by the solid line in FIG. 7 (b) does not coincide with the input timing, the mouse operation indicates the broken line in FIG. 7 (a). As shown, when the input timing waveform of the sensor detection signal to the first input contact X30 is shifted, the on-delay operation time corresponding to the shifted amount is set in the first timer TM1, thereby the first input contact X30. The sensor detection signal input timing can be matched with the rotary encoder impulse signal input timing to the second input contact M30, as shown in FIG. The cap is taken out signal is output in the normal state, the cap extraction is performed. In this case, the attachment position of the sensor 26 remains at the irregular position B, and the physical position is not changed.

また、図8(a)の実線で示すようにセンサ26の取り付け位置が正規位置Aではなく不正規位置Cであるために、第1入力接点X30へのセンサ検出信号の入力タイミングが遅すぎて、図8(b)の実線で示す第2入力接点M30へのロータリエンコーダのインパルス信号の入力タイミングと比較して一致せずにずれている場合、マウス操作で図8(b)の破線で示すように第2入力接点M30へのロータリエンコーダのインパルス信号の入力タイミング波形をずらすと、第2タイマTM2にはそのずらした分に相当するオンディレイ動作時間がセットされ、これにより、第1入力接点X30のセンサ検出信号の入力タイミングと第2入力接点M30へのロータリエンコーダのインパルス信号の入力タイミングとを一致させることができ、図6(d)で示すようにキャップ取り出し信号を正規の状態で出力させ、キャップ取り出しが行われる。この場合、センサ26の取り付け位置は不正規位置Cのままであり、その物理的位置は変更されていない。   In addition, as shown by the solid line in FIG. 8A, the sensor 26 is mounted not at the regular position A but at the irregular position C, and therefore the input timing of the sensor detection signal to the first input contact X30 is too late. When the input timing of the impulse signal of the rotary encoder to the second input contact M30 indicated by the solid line in FIG. 8B is not coincident with the timing, it is indicated by the broken line in FIG. As described above, when the input timing waveform of the impulse signal of the rotary encoder to the second input contact M30 is shifted, the on-delay operation time corresponding to the shifted amount is set in the second timer TM2, whereby the first input contact is set. The input timing of the sensor detection signal of X30 and the input timing of the impulse signal of the rotary encoder to the second input contact M30 can be matched, 6 (d) a cap extraction signal is output in the normal state as shown by the cap extraction is performed. In this case, the attachment position of the sensor 26 remains the irregular position C, and its physical position is not changed.

こうしてタイミングチャートで第1入力接点X30へのセンサ検出信号の入力タイミングや第2入力接点M30、第3入力接点M31へのロータリエンコーダ14のインパルス信号の入力タイミングをずらすと、そのずらした分だけ、各タイマTM1,TM2,TM3それぞれでオンディレイ時間が設定されるように、ラダープログラムが変更される。   In this way, if the input timing of the sensor detection signal to the first input contact X30 and the input timing of the impulse signal of the rotary encoder 14 to the second input contact M30 and the third input contact M31 are shifted in the timing chart, the amount of the shift is as follows. The ladder program is changed so that the on-delay time is set in each of the timers TM1, TM2, and TM3.

そして、上記変更したラダープログラムをプログラミングツール10の通信インターフェース48からプログラマブルコントローラ12の通信インターフェース54を介して転送すると共にプログラマブルコントローラ12のラダープログラムメモリ52にロードする。   The changed ladder program is transferred from the communication interface 48 of the programming tool 10 via the communication interface 54 of the programmable controller 12 and loaded into the ladder program memory 52 of the programmable controller 12.

以上説明したように本実施形態では、プログラマブルコントローラ12にプログラミングツール10を接続し、プログラマブルコントローラ12の入力接点への信号の入力タイミングをプログラミングツール10のタイミングチャート表示部40に表示しているタイミングチャートで表示し、ユーザ操作でタイミングチャートに表示する信号波形を調整して、その調整に関わるラダープログラムを変更すると共に、その変更したラダープログラムを、プログラマブルコントローラ12にロードするようにしたので、センサ等のデバイスの取り付け位置がずれていたりしていてもその物理的位置を調整する必要なく、シーケンス制御の調整ができるようになる。   As described above, in this embodiment, the programming tool 10 is connected to the programmable controller 12, and the timing chart in which the input timing of the signal to the input contact of the programmable controller 12 is displayed on the timing chart display unit 40 of the programming tool 10. The signal waveform displayed in the timing chart is adjusted by the user operation, the ladder program related to the adjustment is changed, and the changed ladder program is loaded into the programmable controller 12, so that the sensor or the like Even if the device mounting position is shifted, the sequence control can be adjusted without the need to adjust the physical position.

図1はパーソナルコンピュータとプログラマブルコントローラと制御対象である設備とを備える制御システムの構成を示す図である。FIG. 1 is a diagram illustrating a configuration of a control system including a personal computer, a programmable controller, and equipment to be controlled. 図2はパーソナルコンピュータの概略ブロック構成を示す図である。FIG. 2 is a diagram showing a schematic block configuration of the personal computer. 図3はプログラマブルコントローラの概略ブロック構成を示す図である。FIG. 3 is a diagram showing a schematic block configuration of the programmable controller. 図4はラダー図形式のプログラムを示す図である。FIG. 4 is a diagram showing a ladder diagram format program. 図5は図1の設備の一部を示す図である。FIG. 5 is a diagram showing a part of the equipment of FIG. 図6は図5の設備を制御するラダープログラムに対応するタイミングチャートである。FIG. 6 is a timing chart corresponding to the ladder program for controlling the equipment of FIG. 図7(a)(b)は図6(a)(b)に対応するタイミングチャートである。FIGS. 7A and 7B are timing charts corresponding to FIGS. 6A and 6B. 図8(a)(b)は図6(a)(b)に対応するタイミングチャートである。FIGS. 8A and 8B are timing charts corresponding to FIGS. 6A and 6B.

符号の説明Explanation of symbols

10 プログラミングツール
12 プログラマブルコントローラ
14 ロータリエンコーダ
16 制御盤
18 ベルトコンベア
20 モータ
22 ボトル
24,26,28 センサ
30,32,34 機構
36 キャップ
DESCRIPTION OF SYMBOLS 10 Programming tool 12 Programmable controller 14 Rotary encoder 16 Control board 18 Belt conveyor 20 Motor 22 Bottle 24, 26, 28 Sensor 30, 32, 34 Mechanism 36 Cap

Claims (4)

画面表示によって、横軸に時間の経過、縦軸にラダープログラム上でラダー信号で表示される入力接点や出力接点のON/OFF変化を表すタイミングチャートを表示し、この表示されたタイミングチャート上で入力接点のON/OFF変化を示す信号波形を、調整したい信号波形部分をその波形調整幅に応じてドラッグアンドドロップすることで調整することにより、上記入力接点に関わるラダープログラムを変更することを可能とした、ことを特徴とするラダープログラムの変更方法。 The screen display, the elapsed time on the horizontal axis, in the ladder program displays a timing chart showing the ON / OFF change of the input contact and output contact are displayed in the ladder signal on the vertical axis, at the displayed timing chart on It is possible to change the ladder program related to the above input contact by adjusting the signal waveform indicating ON / OFF change of the input contact by dragging and dropping the signal waveform portion to be adjusted according to the waveform adjustment width. A method for changing a ladder program characterized by the above. 請求項1に記載の方法に用いるタイミングチャートを表示することができるようになっている、ことを特徴とする表示画面。   A display screen capable of displaying a timing chart used in the method according to claim 1. 表示画面にタイミングチャート表示ウィンドウを呼び出すと共に、このタイミングチャート表示ウィンドウに横軸に時間の経過、縦軸にラダープログラム上でラダー記号で表示される入力接点や出力接点のON/OFF変化を表すタイミングチャートを表示し、この表示されたタイミングチャート上における入力接点のON/OFF変化を示す信号波形を、調整したい信号波形部分をその波形調整幅に応じてドラッグアンドドロップすることで調整して、その入力接点に関わるラダープログラムを変更可能とした、ことを特徴とするプログラミングツール。 The timing chart display window is called on the display screen, and the timing chart display window indicates the passage of time on the horizontal axis and the vertical axis indicates the ON / OFF change of the input contact and output contact displayed in ladder symbols on the ladder program. Display the chart , adjust the signal waveform indicating the ON / OFF change of the input contact on the displayed timing chart by dragging and dropping the signal waveform part you want to adjust according to the waveform adjustment width, A programming tool that makes it possible to change ladder programs related to input contacts. プログラマブルコントローラに請求項3に記載のプログラミングツールを接続し、プログラマブルコントローラの実機接点への信号の入力タイミングをプログラミングツールのタイミングチャート表示ウィンドウ上のタイミングチャートに表示し、ユーザ操作で上記タイミングチャートに表示する信号波形を、調整したい信号波形部分をその波形調整幅に応じてドラッグアンドドロップすることで調整して、その調整に関わるラダープログラムを変更し、その変更したラダープログラムをプログラマブルコントローラにロードするようになっている、ことを特徴とする制御システム。 The programming tool according to claim 3 is connected to the programmable controller, and the input timing of the signal to the actual contact of the programmable controller is displayed on the timing chart on the timing chart display window of the programming tool, and displayed on the timing chart by a user operation. The signal waveform to be adjusted is adjusted by dragging and dropping the signal waveform part to be adjusted according to the waveform adjustment width, the ladder program related to the adjustment is changed, and the changed ladder program is loaded to the programmable controller A control system characterized by that.
JP2008148796A 2008-06-06 2008-06-06 How to change the ladder program Active JP5296419B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008148796A JP5296419B2 (en) 2008-06-06 2008-06-06 How to change the ladder program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008148796A JP5296419B2 (en) 2008-06-06 2008-06-06 How to change the ladder program

Publications (2)

Publication Number Publication Date
JP2009294966A JP2009294966A (en) 2009-12-17
JP5296419B2 true JP5296419B2 (en) 2013-09-25

Family

ID=41543088

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008148796A Active JP5296419B2 (en) 2008-06-06 2008-06-06 How to change the ladder program

Country Status (1)

Country Link
JP (1) JP5296419B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8340790B2 (en) * 2009-08-31 2012-12-25 Fisher-Rosemount Systems, Inc. Methods and apparatus to adjust control loop timing in a process control system
JP6320162B2 (en) * 2014-05-15 2018-05-09 三菱電機株式会社 Development support apparatus, development support method, and development support program
JP6795568B2 (en) * 2018-11-07 2020-12-02 ファナック株式会社 Tracer and programmable controller

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01173105A (en) * 1987-12-28 1989-07-07 Matsushita Electric Ind Co Ltd Programmable controller
JPH07191717A (en) * 1992-02-05 1995-07-28 Toshiba Corp Automatic preparing device for control program
JP2000259216A (en) * 1999-03-12 2000-09-22 Digital Electronics Corp System and method for programming industrial controller and recording medium recording software of the system and method

Also Published As

Publication number Publication date
JP2009294966A (en) 2009-12-17

Similar Documents

Publication Publication Date Title
US20060095855A1 (en) HMI reconfiguration method and system
EP2555068B1 (en) Synchronization control apparatus
US10761513B2 (en) Information processing device, information processing method, and non-transitory computer-readable recording medium
US10814486B2 (en) Information processing device, information processing method, and non-transitory computer-readable recording medium
JP5296419B2 (en) How to change the ladder program
JP5891891B2 (en) Information processing apparatus, information processing method, and program
JP5295061B2 (en) Programmable controller
JP2004259112A (en) Evaluation system, evaluation method, and motion controller
JP5375436B2 (en) Robot system
WO2020202473A1 (en) Drive control device
JP2011108008A (en) Hmi-screen automatic generation method
KR100749902B1 (en) Programmable Motion Controller Using Universal Programmable Controller
JP6599067B1 (en) Apparatus state reproduction device, apparatus state reproduction method, and apparatus state reproduction program
JP2009048396A (en) Simulator of motor motion
JP6571377B2 (en) Expansion unit, programmable logic controller and control method thereof
JP2001117609A (en) Sequence control simulator
JP2009080738A (en) Simulation method for sequence program
JP2009080737A (en) Sequence program display method
JP2008293241A (en) Display device
JP2012113406A (en) Programmable controller
JP2004000766A5 (en)
JP2007010891A (en) Display device, control program, and recording medium having the program recorded therein
JP2008203947A (en) Operation simulation system for plc control object
JP6127701B2 (en) Control device support device and control device support method
JP2017111563A (en) Information display apparatus, method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110603

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120827

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121016

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121211

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130604

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130613

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5296419

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250