JP2009080736A - Plc construction method - Google Patents

Plc construction method Download PDF

Info

Publication number
JP2009080736A
JP2009080736A JP2007250842A JP2007250842A JP2009080736A JP 2009080736 A JP2009080736 A JP 2009080736A JP 2007250842 A JP2007250842 A JP 2007250842A JP 2007250842 A JP2007250842 A JP 2007250842A JP 2009080736 A JP2009080736 A JP 2009080736A
Authority
JP
Japan
Prior art keywords
program
plc
sequence program
module
sequence
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.)
Pending
Application number
JP2007250842A
Other languages
Japanese (ja)
Inventor
Masahiko Yokoo
雅彦 横尾
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 JP2007250842A priority Critical patent/JP2009080736A/en
Publication of JP2009080736A publication Critical patent/JP2009080736A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To perform hot plug of an I/O module without stopping a production system controlled by a PLC, and to rewrite a running sequence program in response to the hot swap. <P>SOLUTION: This PLC construction method includes a step for plugging/unplugging an I/O module during the execution of a sequence program; a step for making a program tool automatically recognize the I/O module plugged or unplugged; a step for displaying the sequence program on a program tool screen and for correcting the sequence program on the display screen; a step for downloading the correction data of the sequence program to the PLC side; and a step for rewriting the running sequence program according to the downloaded correction data at the PLC side. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、シーケンスプログラムおよびPLC(プログラマブルコントローラ)の構築方法に関するものであり、より詳しくは、I/Oモジュールの活線挿抜を行うと共にシーケンスプログラムをRUN中書き換えしてプラグアンドプレイを可能とするPLCの構築方法に関するものである。RUN中書き換えとは、PLC周辺装置からPLCの実行状態(RUN)を停止することなく、PLC内で実行されているシーケンスプログラムの内容を変更することである。   The present invention relates to a sequence program and a PLC (programmable controller) construction method. More specifically, the present invention performs hot-swapping of I / O modules and rewrites the sequence program during RUN to enable plug and play. The present invention relates to a PLC construction method. Rewriting during RUN is to change the contents of the sequence program being executed in the PLC without stopping the PLC execution state (RUN) from the PLC peripheral device.

ビルディングブロックタイプのPLCは、CPUモジュールと、複数のI/Oモジュールとを備える。CPUモジュールは、ラダー図方式のシーケンスプログラム(ラダープログラム)をシステム制御プログラムに従い実行するCPUと、システム制御プログラム、シーケンスプログラムを格納し、また、CPUの演算結果などのデータを格納する各種メモリとから構成される。I/Oモジュールは、入力モジュール、出力モジュール、入出力モジュール、通信、位置決め、カウンタなどの高機能モジュール等から構成されている。   The building block type PLC includes a CPU module and a plurality of I / O modules. The CPU module includes a CPU that executes a ladder diagram type sequence program (ladder program) in accordance with a system control program, a system control program, a sequence program, and various memories that store data such as CPU calculation results. Composed. The I / O module is composed of an input module, an output module, an input / output module, communication, positioning, a high-function module such as a counter, and the like.

上記ラダープログラムは、ラダープログラム編集用のアプリケーションをロードした汎用のパーソナルコンピュータ上で設計される。設計者は、ラダープログラムを設計した後、このラダープログラムのシーケンス動作を、パーソナルコンピュータ上でシミュレーションし、シミュレーションの結果を検証しながらラダープログラムをデバッグして、完成したラダープログラムをPLCに転送する。   The ladder program is designed on a general-purpose personal computer loaded with an application for editing a ladder program. After designing the ladder program, the designer simulates the sequence operation of this ladder program on a personal computer, debugs the ladder program while verifying the simulation result, and transfers the completed ladder program to the PLC.

このラダープログラムは、ラダー言語で直接作成したり、ニモニック言語でニモニックプログラムを作成し、これをラダー図に変換する方法等が知られている。   This ladder program is directly created in a ladder language, or a mnemonic program is created in a mnemonic language and converted into a ladder diagram.

PLCに転送されメモリに格納したラダープログラムに対応して、CPUモジュール内のCPUは、入力モジュールからのデータをメモリに取り込む入力リフレッシュ処理(入力データを新規なもので上書きし、更新する処理)を行い、その後ラダープログラムを1回実行し、演算後のメモリの内容を出力モジュールに出力する出力リフレッシュ処理(出力モジュールから出力されるデータを上書き更新する処理)を行う。   Corresponding to the ladder program transferred to the PLC and stored in the memory, the CPU in the CPU module performs an input refresh process (a process of overwriting and updating the input data with a new one) for loading data from the input module into the memory. After that, the ladder program is executed once, and output refresh processing (processing for overwriting and updating the data output from the output module) for outputting the contents of the memory after the calculation to the output module is performed.

しかしながら、PLCの実行中にI/Oモジュールの追加変更等を実施する場合、ラダープログラムの実行を停止し、パーソナルコンピュータで再構築したラダープログラムを再度、PLCにダウンロードし、再スタートさせる必要があり、それまでそのPLCで制御される生産システムを停止せざるを得なかった、という課題があった。
特開2004−021446号公報
However, when adding or changing an I / O module during the execution of the PLC, it is necessary to stop the execution of the ladder program, download the ladder program reconstructed by the personal computer, and then restart the ladder program. Until then, there was a problem that the production system controlled by the PLC had to be stopped.
JP 2004-021446 A

本発明は、シーケンスプログラムをラダー図方式からシーケンサ回路図(シーケンササーキットダイヤグラム)方式とすることにより、シーケンスプログラムのRUN中書き換えを可能として、I/Oモジュールの活線挿抜してプラグアンドプレイを可能として、そのPLCで制御される生産システムを停止する必要なくI/Oモジュールの追加変更等を実施可能として上記課題を解決するものである。   In the present invention, the sequence program is changed from the ladder diagram method to the sequencer circuit diagram (sequencer circuit diagram) method, so that the sequence program can be rewritten during RUN, and plug-and-play can be performed by hot plugging / unplugging the I / O module. As described above, the above-described problems can be solved by making it possible to implement additional changes of I / O modules without having to stop the production system controlled by the PLC.

本発明によるPLCの構築方法は、1ないし複数のI/Oモジュールと、I/Oモジュールでの信号の入出力をシーケンスプログラムに従い実行制御するCPUモジュールとを備えたPLCの構築方法において、シーケンスプログラム実行中に活線挿抜したI/Oモジュールのデータをツールに送信するステップと、上記データに基づいてツール画面上でシーケンスプログラムの修正を行うステップと、修正プログラムをPLC側にダウンロードするステップと、PLC側ではダウンロードされた修正プログラムに従いシーケンスプログラムをRUN中書き換えするステップとを含むことを特徴とするものである。   A PLC construction method according to the present invention is a PLC construction method comprising one or a plurality of I / O modules and a CPU module that executes and controls input / output of signals in the I / O modules according to a sequence program. Transmitting the data of the I / O module that has been hot-plugged during execution to the tool, correcting the sequence program on the tool screen based on the data, downloading the correction program to the PLC, The PLC side includes a step of rewriting the sequence program during the RUN according to the downloaded correction program.

本発明では、I/Oモジュールを追加変更してシーケンスプログラムの修正を行うのにI/Oモジュールを活線挿抜し、ツール画面上でシーケンスプログラムの修正を行うと、PLC側にシーケンスプログラムの修正に対応したデータにより当該シーケンスプログラムのRUN中書き換えができる。したがって、本発明では、シーケンスプログラムの実行中でPLCで生産システムを制御中でも当該生産システムを停止させる必要なく、I/Oモジュールを活線挿抜し、この活線挿抜したI/Oモジュールを含む上記実行中のシーケンスプログラムから別の修正したシーケンスプログラムを実行して当該生産システムの制御を変更させることが可能である。   In the present invention, when an I / O module is added and changed to correct a sequence program, the I / O module is hot-swapped and the sequence program is corrected on the tool screen. The sequence program can be rewritten during the RUN using data corresponding to. Therefore, in the present invention, the I / O module is hot-plugged and the I / O module including the hot-plugged I / O module is inserted without the need to stop the production system even when the PLC is controlling the production system during execution of the sequence program. It is possible to change the control of the production system by executing another modified sequence program from the sequence program being executed.

上記シーケンスプログラムは、I/Oモジュール個々の単位でそれぞれの入出力信号と内部動作機能とをブロック化した複数のプログラム要素で構成すると共に、各プログラム要素にシーケンス番号を付けて回路結線してなる回路図方式で表すことが好ましい。   The above sequence program is composed of a plurality of program elements obtained by blocking each input / output signal and internal operation function in units of individual I / O modules, and each circuit element is connected with a sequence number and connected in a circuit. It is preferable to express the circuit diagram.

本発明によれば、PLCで生産システムを制御中でもそのシステムを停止させる必要なく、I/Oモジュールを活線挿抜してシーケンスプログラムのRUN中書き換えを行うことで、その生産システムの制御を、別の制御に変更することが可能である。   According to the present invention, it is not necessary to stop the system even when the production system is controlled by the PLC, so that the control of the production system can be performed separately by hot-plugging the I / O module and rewriting the sequence program during the RUN. It is possible to change to the control.

以下、添付した図面を参照して、本発明の実施の形態に係るシーケンスプログラム、PLC構築方法を説明する。図1を参照して、1はPLC、3はPLC周辺装置の一例としてのパーソナルコンピュータである。PLC1は、CPUモジュール5と1ないし複数のI/Oモジュール7a〜7eを備える。7fは、図解上ハッチングで示された追加変更するI/Oモジュールである。I/Oモジュール7fは、ユーザがPLC1により所定のシーケンスプログラムを実行して生産システムの制御中に活線挿抜によりPLC1に追加変更されるI/Oモジュールである。PLC1はパーソナルコンピュータ3とUSB等で通信可能に接続されている。CPUモジュール5は、シーケンスプログラムや、RUN中書き換え処理実行プログラム、等を内蔵する。   Hereinafter, a sequence program and a PLC construction method according to an embodiment of the present invention will be described with reference to the accompanying drawings. Referring to FIG. 1, 1 is a PLC, and 3 is a personal computer as an example of a PLC peripheral device. The PLC 1 includes a CPU module 5 and one or more I / O modules 7a to 7e. Reference numeral 7f denotes an I / O module to be added or changed indicated by hatching in the figure. The I / O module 7f is an I / O module that is added and changed to the PLC 1 by hot-swapping while a user executes a predetermined sequence program by the PLC 1 and controls the production system. The PLC 1 is communicably connected to the personal computer 3 via a USB or the like. The CPU module 5 incorporates a sequence program, an RUN rewrite processing execution program, and the like.

このシーケンスプログラムは、ラダー図方式のシーケンスプログラムでもよいが、実施の形態のシーケンスプログラムは、図2で示すブロック回路方式(シーケンササーキットダイヤグラム方式)シーケンスプログラムである。このブロック回路方式のシーケンスプログラムは、I/Oモジュール7a〜7e個々の単位でそれぞれの入出力信号と内部動作機能とをブロック回路化したプログラム要素A,B,C,…,Eで構成し、各プログラム要素A,B,C,…,Eにシーケンス番号Sa,Sb.Sc,…,Seを付けると共に、このシーケンス番号順に対応して回路結線Lab,Lbc,…した回路図で表したシーケンスプログラムである。なお、図2中のプログラム要素DはI/Oモジュール7fの追加により変更されるプログラム要素Dであり、このプログラム要素Dにはシーケンス番号Sdが付けられ、これによりプログラム要素の回路結線も変更される。CPUモジュール5は、その修正したシーケンスプログラムをシーケンス番号順に実行する。   This sequence program may be a ladder diagram type sequence program, but the sequence program of the embodiment is a block circuit type (sequencer circuit diagram type) sequence program shown in FIG. This block circuit type sequence program is composed of program elements A, B, C,..., E in which I / O modules 7a to 7e are made into block circuits for respective input / output signals and internal operation functions. Each program element A, B, C,..., E has a sequence number Sa, Sb. .. Is a sequence program represented by a circuit diagram with circuit connections Lab, Lbc,... Attached with Sc,. Note that the program element D in FIG. 2 is a program element D that is changed by adding the I / O module 7f, and this program element D is assigned a sequence number Sd, thereby changing the circuit connection of the program element. The The CPU module 5 executes the modified sequence program in the order of sequence numbers.

パーソナルコンピュータ3は、RUN中書き換え処理を実行するCPU、RUN中書き換え処理実行プログラムが格納されるメモリ、RUN中書き換えのための情報を表示するディスプレイ3a、処理操作のためのキーボード3bやマウス3c等の操作部、PLC1とのインターフェース部を備える。   The personal computer 3 includes a CPU that executes rewrite processing during RUN, a memory that stores a program for executing rewrite processing during RUN, a display 3a that displays information for rewrite during RUN, a keyboard 3b and a mouse 3c for processing operations, etc. And an interface unit with the PLC 1.

以上の構成において、ユーザが生産システムの制御変更やシステムの一部追加、等により、それに対応して、図2で示すシーケンスプログラムに対してプログラム要素Dを追加する必要があり、これに対応してPLC1にはこのプログラム要素Dを実行するためのI/Oモジュール7fを追加する場合、ユーザは生産システムの運転を停止することなくPLC1にI/Oモジュール7fを活線挿抜により接続する。   In the above configuration, the user needs to add the program element D to the sequence program shown in FIG. 2 in response to the control change of the production system or the addition of a part of the system. In addition, when the I / O module 7f for executing the program element D is added to the PLC 1, the user connects the I / O module 7f to the PLC 1 by hot plugging without stopping the operation of the production system.

そしてパーソナルコンピュータ3はPLC1に接続されたI/Oモジュール7fを認識すると、CPUモジュール5との間で所定の応答通信の後、CPUモジュール5から図2で示すシーケンスプログラムを読み出し、ディスプレイ3a上にそのシーケンスプログラムを表示する。そしてユーザは、読み出したシーケンスプログラムに対して、生産システムの制御の変更に必要なプログラム要素Dを作成すると共にそのプログラム要素Dにシーケンス番号Sdを付けたシーケンスプログラムに修正する。   When the personal computer 3 recognizes the I / O module 7f connected to the PLC 1, the personal computer 3 reads out the sequence program shown in FIG. 2 from the CPU module 5 after predetermined response communication with the CPU module 5, and displays it on the display 3a. The sequence program is displayed. Then, the user creates a program element D necessary for changing the control of the production system with respect to the read sequence program, and modifies the program element D to have a sequence number Sd.

パーソナルコンピュータ3のディスプレイ3aは、図3で示すように、画面が2分割され、一方の画面に変更前のプログラム要素B,C,Eと、それらのシーケンス番号Sb,Sc,Se,と回路結線Lbc,Lceとが表示され、他方の画面に変更後のプログラム要素B,C,D,Eと、それらのシーケンス番号Sb,Sc,Sd,Se,と回路結線Lbc,Lcd,Ldeが表示されている。すなわち、シーケンスプログラムは、ディスプレイ3aの一方側に表示されているシーケンスプログラムから他方側に表示されているシーケンスプログラムに修正変更される。   As shown in FIG. 3, the display 3a of the personal computer 3 is divided into two screens, and one screen is connected to the program elements B, C, E before change and their sequence numbers Sb, Sc, Se, and circuit connections. Lbc and Lce are displayed, and the changed program elements B, C, D, and E, their sequence numbers Sb, Sc, Sd, Se, and circuit connections Lbc, Lcd, and Lde are displayed on the other screen. Yes. That is, the sequence program is modified and changed from the sequence program displayed on one side of the display 3a to the sequence program displayed on the other side.

こうしてシーケンスプログラムの修正が終了すると、ユーザはその修正シーケンスプログラムをパーソナルコンピュータ3からPLC1に転送しダウンロードする。そしてPLC1では、そのダウンロードされた修正シーケンスプログラムを、生産システムを停止することなく、実行する。   When the modification of the sequence program is completed in this way, the user transfers the modified sequence program from the personal computer 3 to the PLC 1 and downloads it. Then, the PLC 1 executes the downloaded correction sequence program without stopping the production system.

以上のように実施の形態では、シーケンスプログラムの実行中でPLC1で生産システムを制御中でも当該生産システムを停止させる必要なく、I/Oモジュール7fを活線挿抜し、この活線挿抜したI/Oモジュール7fに対応して一部修正したシーケンスプログラムにより生産システムの制御を変更して実行することが可能である。すなわち、実施の形態ではプラグアンドプレイ型のようにPLC1を構築することができる。   As described above, in the embodiment, the I / O module 7f is hot-plugged and this hot-plugged I / O is not necessary even when the production system is controlled by the PLC 1 while the sequence program is being executed. The control of the production system can be changed and executed by a sequence program partially modified corresponding to the module 7f. That is, in the embodiment, the PLC 1 can be constructed like a plug and play type.

図1はPLCと、シーケンスプログラム作成ツールであるパーソナルコンピュータとの概略構成を示す図である。FIG. 1 is a diagram showing a schematic configuration of a PLC and a personal computer which is a sequence program creation tool. 図2はブロック回路図方式のシーケンスプログラムの一部を示す図である。FIG. 2 is a diagram showing a part of a sequence program of a block circuit diagram system. 図3はパーソナルコンピュータのディスプレイ画面の表示例を示す図である。FIG. 3 is a diagram showing a display example of the display screen of the personal computer.

符号の説明Explanation of symbols

1 PLC
3 パーソナルコンピュータ
5 CPUモジュール
7a〜7f I/Oモジュール
1 PLC
3 Personal computer 5 CPU module 7a-7f I / O module

Claims (2)

1ないし複数のI/Oモジュールと、I/Oモジュールでの信号の入出力をシーケンスプログラムに従い実行制御するCPUモジュールとを備えたPLCの構築方法において、シーケンスプログラム実行中にI/Oモジュールを活線挿抜するステップと、この活線挿抜したI/Oモジュールをプログラムツールに自動認識させるステップと、プログラムツール画面上にシーケンスプログラムを表示すると共に、この表示画面上でシーケンスプログラムの修正を行うステップと、シーケンスプログラムの修正データをPLC側にダウンロードするステップと、PLC側ではダウンロードされた修正データに従いシーケンスプログラムをRUN中書き換えするステップと、を備えたPLC構築方法。   In a PLC construction method comprising one or a plurality of I / O modules and a CPU module that controls the input / output of signals in the I / O module according to a sequence program, the I / O module is activated during the execution of the sequence program. A step of line insertion / extraction, a step of causing the program tool to automatically recognize the I / O module that has been hot-inserted, a step of displaying a sequence program on the program tool screen, and a step of correcting the sequence program on the display screen; A PLC construction method comprising: a step of downloading correction data of a sequence program to the PLC side; and a step of rewriting the sequence program during RUN according to the downloaded correction data on the PLC side. 上記シーケンスプログラムが、I/Oモジュール個々の単位でそれぞれの入出力信号と内部動作機能とをブロック化した複数のプログラム要素で構成すると共に、各プログラム要素をシーケンス番号を付けて回路結線してなる回路図方式で表した、請求項1に記載のPLC構築方法。   The sequence program is composed of a plurality of program elements obtained by blocking each input / output signal and internal operation function in units of individual I / O modules, and each program element is connected by a circuit with a sequence number. The PLC construction method according to claim 1, expressed in a circuit diagram manner.
JP2007250842A 2007-09-27 2007-09-27 Plc construction method Pending JP2009080736A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007250842A JP2009080736A (en) 2007-09-27 2007-09-27 Plc construction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007250842A JP2009080736A (en) 2007-09-27 2007-09-27 Plc construction method

Publications (1)

Publication Number Publication Date
JP2009080736A true JP2009080736A (en) 2009-04-16

Family

ID=40655424

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007250842A Pending JP2009080736A (en) 2007-09-27 2007-09-27 Plc construction method

Country Status (1)

Country Link
JP (1) JP2009080736A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101032245B1 (en) 2010-03-25 2011-05-02 엘에스산전 주식회사 Apparatus and method for downloading os data
KR20160032275A (en) * 2013-09-24 2016-03-23 미쓰비시덴키 가부시키가이샤 Programmable controller and control method for programmable controller
KR101986154B1 (en) * 2018-11-27 2019-06-05 주식회사 팜팜랩스 Embedded system having a plurality of modules and a management method of the modules

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101032245B1 (en) 2010-03-25 2011-05-02 엘에스산전 주식회사 Apparatus and method for downloading os data
KR20160032275A (en) * 2013-09-24 2016-03-23 미쓰비시덴키 가부시키가이샤 Programmable controller and control method for programmable controller
KR101655727B1 (en) 2013-09-24 2016-09-07 미쓰비시덴키 가부시키가이샤 Programmable controller and control method for programmable controller
KR101986154B1 (en) * 2018-11-27 2019-06-05 주식회사 팜팜랩스 Embedded system having a plurality of modules and a management method of the modules

Similar Documents

Publication Publication Date Title
US10318404B2 (en) Web-based programming environment for embedded devices
CN104965725B (en) A kind of full-automatic firmware programming method of embedded device based on SD card
JP2006268836A (en) Parameter setting device
EP3336627A1 (en) Support device, method, and recording medium whereon support program is stored
JP2007149065A (en) Information processor, bios processing method and program
JP6550269B2 (en) PROGRAM CREATION SUPPORT DEVICE, CONTROL METHOD, AND PROGRAM
JP2016124543A (en) Upgradable vehicle
JP2009080736A (en) Plc construction method
JP2007095107A (en) Parameter setting device
JP5849592B2 (en) Programmable controller system, programming device thereof, programmable controller, program, and debugging method
JP2008198060A (en) Information processor, patch code mounting system, electronic equipment, and patch code mounting method
TWI685793B (en) Synchronization method
CN112204479B (en) Program management system, program support device, program management method, and program support program
JP2008165324A (en) Program creation support device
JP2007257327A (en) Design support device, design support method and design support program
TWI758013B (en) Baseboard management control system, electronic device and baseboard management control method
JP7241982B1 (en) Image generation program, image generation device, programmable controller system and image generation method
KR101569001B1 (en) System for configurating fpga data and method therefor
JP2010262430A (en) Protection control device
JP2011138451A (en) Connected device simulator apparatus having trace function, method, and program
Dunbar et al. Arduino Compilation
JP5181947B2 (en) Embedded software development support system, support method and program
Navarro Martínez Implementation and Evaluation of an Interface between a virtual Open-Source Software Programmable Logic Controller and the Physical GPIO-Pins of the Host Machine
TWI644212B (en) System for controlling computer peripherals by using web programming
Wolske 3B: Computer Building Blocks