JP2020181383A - Programmable logic controller, information processing system, and program - Google Patents

Programmable logic controller, information processing system, and program Download PDF

Info

Publication number
JP2020181383A
JP2020181383A JP2019084238A JP2019084238A JP2020181383A JP 2020181383 A JP2020181383 A JP 2020181383A JP 2019084238 A JP2019084238 A JP 2019084238A JP 2019084238 A JP2019084238 A JP 2019084238A JP 2020181383 A JP2020181383 A JP 2020181383A
Authority
JP
Japan
Prior art keywords
control program
programmable logic
logic controller
unit
instruction
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
JP2019084238A
Other languages
Japanese (ja)
Inventor
保 小森
Tamotsu Komori
保 小森
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.)
Idec Corp
Original Assignee
Idec Corp
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 Idec Corp filed Critical Idec Corp
Priority to JP2019084238A priority Critical patent/JP2020181383A/en
Publication of JP2020181383A publication Critical patent/JP2020181383A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

To provide a PLC capable of enabling or disabling a specific processing unit without downloading a control program for the PLC.SOLUTION: A programmable logic controller comprises: a receiving unit receiving a code corresponding to a control program for controlling a PLC; a storage unit storing the code; and an operation unit configuring and executing a logic circuit corresponding to the control program based on the code stored in the storage unit. The storage unit comprises: a virtual switch for enabling or disabling execution of a specific processing unit in the control program; and a register for defining on/off of the virtual switch. The receiving unit receives an instruction to enable or disable the specific processing unit. When the receiving unit receives the instruction, the operation unit changes a corresponding value of the register to turn on or off the virtual switch.SELECTED DRAWING: Figure 1

Description

本発明は、プログラマブルロジックコントローラを制御するための技術に関する。 The present invention relates to a technique for controlling a programmable logic controller.

プログラマブルロジックコントローラ(以下、PLCともいう。)は、例えばラダープログラムのような制御プログラムを用いて制御される。ラダープログラムは、PLCと通信可能なパーソナルコンピュータ等の情報処理装置を使用して編集される。PLCは、編集されたラダープログラムに対応する論理回路を構成し、実行する。 The programmable logic controller (hereinafter, also referred to as PLC) is controlled by using a control program such as a ladder program. The ladder program is edited using an information processing device such as a personal computer capable of communicating with the PLC. The PLC configures and executes the logic circuit corresponding to the edited ladder program.

例えば、特許文献1には、ラダープログラムによるプログラム開発の際に、特定の行をコメントアウト可能なPLCの制御プログラムの作成方法が提案されている。特許文献1に記載の発明において、ラダープログラムの特定の行のコメントアウトの設定及び解除は、ラダープログラミングツールを用いて行われる。 For example, Patent Document 1 proposes a method of creating a PLC control program capable of commenting out a specific line when developing a program by a ladder program. In the invention described in Patent Document 1, commenting out of a specific line of the ladder program is set and canceled by using a ladder programming tool.

特開2010−224597号公報JP-A-2010-224597

上述のようにラダープログラム等の制御プログラムは、パーソナルコンピュータ又は専用の端末を用いて編集される。制御プログラムの一部を無効にする場合、制御プログラムの一部を無効化(コメントアウト)して編集した後に、コンパイルしてPLCにダウンロードする必要がある。逆に制御プログラムの一部を有効にする場合も、同様に制御プログラムの編集後に、コンパイルしてPLCにダウンロードする必要がある。 As described above, the control program such as the ladder program is edited by using a personal computer or a dedicated terminal. To disable a part of the control program, it is necessary to disable (comment out) a part of the control program, edit it, compile it, and download it to the PLC. Conversely, when enabling a part of the control program, it is also necessary to compile and download it to the PLC after editing the control program.

そこで、本発明の目的は、制御プログラムをダウンロードすることなく、特定の処理単位を有効又は無効にできるプログラマブルロジックコントローラ、情報処理システム、及びプログラムを提供することにある。 Therefore, an object of the present invention is to provide a programmable logic controller, an information processing system, and a program capable of enabling or disabling a specific processing unit without downloading a control program.

この発明のプログラマブルロジックコントローラは、プログラマブルロジックコントローラを制御するための制御プログラムに対応するコードを受信する受信部と、前記コードを記憶する記憶部と、前記記憶部に記憶された前記コードに基づいて、前記制御プログラムに対応する論理回路を構成し、実行する演算部と、を備え、前記記憶部は、前記制御プログラムにおける特定の処理単位の実行を有効又は無効にするための仮想スイッチと、該仮想スイッチのオン/オフを定義するためのレジスタと、を有し、前記受信部は、前記特定の処理単位を有効又は無効にする指示を受信し、前記演算部は、前記受信部で前記指示を受信すると、対応する前記レジスタの値を変更して、前記仮想スイッチをオン又はオフすることを特徴とする。 The programmable logic controller of the present invention is based on a receiving unit that receives a code corresponding to a control program for controlling the programmable logic controller, a storage unit that stores the code, and the code stored in the storage unit. The storage unit includes a calculation unit that configures and executes a logic circuit corresponding to the control program, and the storage unit includes a virtual switch for enabling or disabling the execution of a specific processing unit in the control program. It has a register for defining on / off of a virtual switch, the receiving unit receives an instruction to enable or disable the specific processing unit, and the arithmetic unit receives the instruction at the receiving unit. Is received, the value of the corresponding register is changed to turn the virtual switch on or off.

この構成では、制御プログラムにおける特定の処理単位の実行を有効又は無効にするための仮想スイッチを有する。演算部は、受信部が受信する指示に基づいて、仮想スイッチのオン/オフを定義するレジスタの値を変更する。レジスタの値が変更されると、レジスタに対応する仮想スイッチがオン又はオフに切り替えられる。この場合、制御プログラム自体は変更されない。これにより、制御プログラムにおける特定の処理単位の実行を有効又は無効にするために、制御プログラムを再度ダウンロードする必要がない。 In this configuration, a virtual switch is provided to enable or disable the execution of a specific unit of processing in the control program. The arithmetic unit changes the value of the register that defines the on / off of the virtual switch based on the instruction received by the receiving unit. When the value of a register is changed, the virtual switch corresponding to the register is turned on or off. In this case, the control program itself is not changed. This eliminates the need to re-download the control program in order to enable or disable the execution of a particular unit of processing in the control program.

また、前記特定の処理単位は、複数の処理単位を含み、前記記憶部は、前記複数の処理単位を範囲指定するための範囲指定レジスタを有し、前記演算部は、前記受信部で前記指示を受信すると、前記範囲指定レジスタの値を変更し、変更後の前記範囲指定レジスタの値に基づいて、前記仮想スイッチをオン又はオフしてもよい。 Further, the specific processing unit includes a plurality of processing units, the storage unit has a range designation register for designating the range of the plurality of processing units, and the calculation unit has the instruction in the receiving unit. Is received, the value of the range designation register may be changed, and the virtual switch may be turned on or off based on the changed value of the range designation register.

この構成では、範囲指定レジスタの値を変更することで、範囲指定レジスタに対応する制御プログラムにおける特定の処理単位の実行を有効又は無効にできる。 In this configuration, the execution of a specific processing unit in the control program corresponding to the range specification register can be enabled or disabled by changing the value of the range specification register.

また、前記受信部は、前記複数の処理単位を有効又は無効にする範囲指定を受信し、前記演算部は、前記範囲指定に基づいて、前記範囲指定レジスタの指定範囲を変更してもよい。 Further, the receiving unit may receive a range designation that enables or invalidates the plurality of processing units, and the arithmetic unit may change the designated range of the range designation register based on the range designation.

この構成では、ユーザは、複数の処理単位に亘って有効又は無効にする範囲指定を一度に設定することができる。例えば、ユーザは、1〜10行目の範囲のような複数の行に亘る処理単位を設定し変更できる。これにより、ユーザは、特定の処理単位を1単位毎に指定することがないため、切り替え操作が簡易になる。 In this configuration, the user can set a range specification to be valid or invalid over a plurality of processing units at one time. For example, the user can set and change a processing unit over a plurality of lines such as a range of lines 1 to 10. As a result, the user does not specify a specific processing unit for each unit, which simplifies the switching operation.

また、前記制御プログラムを表示する表示器と、前記制御プログラムの前記特定の処理単位を有効又は無効にする操作を受け付けるユーザインタフェースと、をさらに備えてもよい。 Further, a display for displaying the control program and a user interface for accepting an operation of enabling or disabling the specific processing unit of the control program may be further provided.

この構成では、ユーザは、表示器に表示される制御プログラムを確認しながら、ユーザインタフェースを介して特定の処理単位を有効又は無効にする操作を行うことができる。これにより、ユーザは、他の情報処理装置を用いることなく、プログラマブルロジックコントローラのみで特定の処理単位を有効又は無効にすることができる。 In this configuration, the user can perform an operation of enabling or disabling a specific processing unit through the user interface while checking the control program displayed on the display. As a result, the user can enable or disable a specific processing unit only with the programmable logic controller without using another information processing device.

この発明の情報処理システムは、前記プログラマブルロジックコントローラと、前記プログラマブルロジックコントローラに接続される情報処理装置と、を備え、前記情報処理装置は、前記制御プログラムを表示する表示器と、前記制御プログラムの前記特定の処理単位を有効又は無効にする操作を受け付けるユーザインタフェースと、前記操作に基づいて前記指示を前記プログラマブルロジックコントローラに送信する送信部と、を備えてもよい。 The information processing system of the present invention includes the programmable logic controller and an information processing device connected to the programmable logic controller, and the information processing device includes a display for displaying the control program and the control program. It may include a user interface that accepts an operation of enabling or disabling the specific processing unit, and a transmission unit that transmits the instruction to the programmable logic controller based on the operation.

この構成では、情報処理装置及びプログラマブルロジックコントローラは、互いに接続されている。ユーザは、情報処理装置の表示器に表示される制御プログラムを確認しながら、ユーザインタフェースを介して特定の処理単位を有効又は無効にする指示を入力することができる。この場合も、情報処理装置からプログラマブルロジックコントローラへ制御プログラムを再度ダウンロードする必要がない。 In this configuration, the information processing device and the programmable logic controller are connected to each other. The user can input an instruction to enable or disable a specific processing unit through the user interface while checking the control program displayed on the display of the information processing apparatus. In this case as well, it is not necessary to download the control program from the information processing device to the programmable logic controller again.

この発明によれば、制御プログラムを再度ダウンロードすることなく、制御プログラムの一部の無効又は有効を切り替えることができる。 According to the present invention, it is possible to disable or enable a part of the control program without downloading the control program again.

図1は、情報処理システム1の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of the information processing system 1. 図2(A)は、情報処理システム1でラダープログラムを使用する場合の表示器21の表示態様の一例を示す図である。図2(B)は、情報処理システム1でラダープログラムの特定の行を有効又は無効にする指示を説明するための図である。図2(C)は、PLC10で構成される実際の論理回路を示す図である。FIG. 2A is a diagram showing an example of a display mode of the display 21 when the ladder program is used in the information processing system 1. FIG. 2B is a diagram for explaining an instruction for enabling or disabling a specific line of the ladder program in the information processing system 1. FIG. 2C is a diagram showing an actual logic circuit composed of PLC10. 図3は、プログラマブルロジックコントローラ10の変形例1を示すブロック図である。FIG. 3 is a block diagram showing a modification 1 of the programmable logic controller 10. 図4(A)及び図4(B)は、変形例1で所定の範囲を有効又は無効にする指示を説明するための図である。4 (A) and 4 (B) are diagrams for explaining an instruction to enable or invalidate a predetermined range in the first modification. 図5は、PLC10の変形例2に係るPLC50を示すブロック図である。FIG. 5 is a block diagram showing the PLC 50 according to the second modification of the PLC 10.

図1は、プログラマブルロジックコントローラ10を使用した実施形態に係る情報処理システム1の主要構成を示すブロック図である。図2(A)は、情報処理システム1でラダープログラムを使用する場合の表示器21の表示態様の一例を示す図である。図2(B)は、情報処理システム1でラダープログラムの特定の行を有効又は無効にする指示を説明するための図である。図2(C)は、PLC10で構成される実際の論理回路を示す図である。 FIG. 1 is a block diagram showing a main configuration of an information processing system 1 according to an embodiment using a programmable logic controller 10. FIG. 2A is a diagram showing an example of a display mode of the display 21 when the ladder program is used in the information processing system 1. FIG. 2B is a diagram for explaining an instruction for enabling or disabling a specific line of the ladder program in the information processing system 1. FIG. 2C is a diagram showing an actual logic circuit composed of PLC10.

図1に示すように、情報処理システム1は、情報処理装置20と、PLC10とを備える。情報処理装置20は、PLC10と通信可能に接続されている。 As shown in FIG. 1, the information processing system 1 includes an information processing device 20 and a PLC 10. The information processing device 20 is communicably connected to the PLC 10.

情報処理装置20は、例えばパーソナルコンピュータ、又はプログラミングコンソール等である。情報処理装置20は、表示器21、ユーザインタフェース(ユーザI/F)22、送信部23、メモリ24、CPU(CentralProcessing Unit)25、RAM(Random Access Memory)26、及びバス29を備える。バス29は、表示器21、ユーザインタフェース(ユーザI/F)22、送信部23、メモリ24、CPU25、及びRAM26を接続している。 The information processing device 20 is, for example, a personal computer, a programming console, or the like. The information processing device 20 includes a display 21, a user interface (user I / F) 22, a transmission unit 23, a memory 24, a CPU (Central Processing Unit) 25, a RAM (Random Access Memory) 26, and a bus 29. The bus 29 connects the display 21, the user interface (user I / F) 22, the transmission unit 23, the memory 24, the CPU 25, and the RAM 26.

CPU25は、情報処理装置20の動作を制御する制御部である。CPU25は、記憶媒体であるメモリ24に記憶された所定のプログラムをRAM26に読み出して実行することにより各種の動作を行なう。 The CPU 25 is a control unit that controls the operation of the information processing device 20. The CPU 25 performs various operations by reading a predetermined program stored in the memory 24, which is a storage medium, into the RAM 26 and executing the program.

図2(A)に示すように、表示器21は、PLC10を制御するための制御プログラムを開発(編集)する支援ツール210を表示する。制御プログラムは、例えばラダープログラム、ファンクションブロックダイアグラム、シーケンシャルファンクションチャート、インストラクションリスト、又はストラクチャードテキスト等を含む。本実施形態においては、一例としてラダープログラムを制御プログラムとして使用する場合について説明する。すなわち、PLC10は、ラダープログラムを用いて制御される。 As shown in FIG. 2A, the display 21 displays a support tool 210 for developing (editing) a control program for controlling the PLC 10. The control program includes, for example, a ladder program, a function block diagram, a sequential function chart, an instruction list, structured text, and the like. In this embodiment, a case where a ladder program is used as a control program will be described as an example. That is, the PLC 10 is controlled by using a ladder program.

ラダープログラムは、支援ツール210で編集される。支援ツール210は、プログラム表示領域211を備える。ラダープログラムは、プログラム表示領域211に表示される。ユーザは以下で説明するユーザI/F22により、支援ツール210に入力できる。 The ladder program is edited by the support tool 210. The support tool 210 includes a program display area 211. The ladder program is displayed in the program display area 211. The user can input to the support tool 210 by the user I / F22 described below.

ラダープログラムは、PLC10で実行する論理回路を表したものである。ラダープログラムは、論理回路を複数の行として表す。ラダープログラムの各行は、本発明の「処理単位」の一例である。 The ladder program represents a logic circuit executed by the PLC 10. The ladder program represents a logic circuit as multiple lines. Each line of the ladder program is an example of the "processing unit" of the present invention.

例えば、図2(A)では、一行目は、スイッチM0000がオンになると、コイルM2000が作動する論理回路を示している。支援ツール210で編集されたラダープログラムは、PLC10で読み込まれるようにコードにコンパイルされる。これにより、ラダープログラムは、対応するコードにコンパイルされる。また、情報処理装置20は、ラダープログラムに対応するコードをPLC10に転送する。PLC10は、ラダープログラムに対応するコードをダウンロードして、論理回路を構成し、実行する。 For example, in FIG. 2A, the first line shows a logic circuit in which the coil M2000 operates when the switch M0000 is turned on. The ladder program edited by the support tool 210 is compiled into code so that it can be read by PLC10. This compiles the ladder program into the corresponding code. Further, the information processing device 20 transfers the code corresponding to the ladder program to the PLC 10. The PLC 10 downloads the code corresponding to the ladder program, configures the logic circuit, and executes it.

ユーザI/F22は、例えばマウスやキーボード、タッチパネル等の入力装置である。ユーザI/F22は、ユーザから操作を受け付ける。例えば、ユーザI/F22は、ラダープログラムの特定の行を有効又は無効にする指示を受け付ける。例えば、ユーザは、マウス操作により図2(A)に示す画面上の二行目の行にカーソルを合わせて選択することにより、二行目の行を無効にする指示の入力ができる。 The user I / F 22 is an input device such as a mouse, a keyboard, or a touch panel. The user I / F 22 receives an operation from the user. For example, the user I / F 22 accepts instructions to enable or disable a particular line in the ladder program. For example, the user can input an instruction to invalidate the second line by moving the cursor to the second line on the screen shown in FIG. 2A by operating the mouse and selecting the line.

二行目の行を無効にすると、図2(B)に示すように、表示器21は、ラダープログラム二行目の行を薄く表示する。これにより、ユーザは、ラダープログラムの二行目の行を無効にする指示を入力したことを確認できる。また、無効の行の表示の仕方は、ラダープログラム特定の行を薄く表示するのみに限らない。表示器21は、ラダープログラムの特定の行が有効であるか、又は無効であるかがユーザに解るように表示の仕方を変えればよい。例えば、表示器21は、特定の行を破線で表示する、特定の行の色を変えて表示する、又は特定の行を消してもよい。 When the second line is disabled, the display 21 displays the second line of the ladder program lightly, as shown in FIG. 2 (B). This allows the user to confirm that he has entered an instruction to invalidate the second line of the ladder program. In addition, the method of displaying invalid lines is not limited to displaying a specific line of the ladder program lightly. The display 21 may change the display method so that the user can know whether a specific line of the ladder program is valid or invalid. For example, the display 21 may display a specific line with a broken line, display the specific line in a different color, or erase the specific line.

送信部23は、ユーザがユーザI/F22へ入力した操作に基づいて、ラダープログラムの特定の行を有効又は無効にする指示をPLC10に送信する。上述の例の場合、送信部23は、ラダープログラムの二行目の行を無効にする指示を送信する。 The transmission unit 23 transmits an instruction to enable or disable a specific line of the ladder program to the PLC 10 based on the operation input to the user I / F 22 by the user. In the case of the above example, the transmission unit 23 transmits an instruction to invalidate the second line of the ladder program.

PLC10は、受信部11、記憶部12、演算部13、及びバス19を備える。バス19は、受信部11、記憶部12、及び演算部13を接続している。 The PLC 10 includes a receiving unit 11, a storage unit 12, a calculation unit 13, and a bus 19. The bus 19 connects the receiving unit 11, the storage unit 12, and the calculation unit 13.

受信部11は、ラダープログラムに対応するコードを受信する。記憶部12は、受信部11で受信したコードを記憶する。記憶部12は、レジスタ15を有する。レジスタ15は、スイッチ122、コイル123、及び仮想スイッチ14を有する。なお、図2(A)で、スイッチ122、コイル123、及び仮想スイッチ14は、それぞれ代表的に一つしか表されていない。実際は、スイッチ122、コイル123、及び仮想スイッチ14は、ラダープログラムに基づいた論理回路に使用する数だけ存在している。例えば、仮想スイッチ14は、ラダープログラムの行の数だけ存在する。 The receiving unit 11 receives the code corresponding to the ladder program. The storage unit 12 stores the code received by the reception unit 11. The storage unit 12 has a register 15. The register 15 has a switch 122, a coil 123, and a virtual switch 14. In addition, in FIG. 2A, only one switch 122, the coil 123, and the virtual switch 14 are typically represented. In reality, there are as many switches 122, coils 123, and virtual switches 14 as used in logic circuits based on ladder programs. For example, there are as many virtual switches 14 as there are lines in the ladder program.

演算部13は、記憶部12に記憶されたコードに基づいて、ラダープログラムに対応する論理回路を構成する。演算部13は、構成した論理回路を実行する。 The arithmetic unit 13 constitutes a logic circuit corresponding to the ladder program based on the code stored in the storage unit 12. The arithmetic unit 13 executes the constructed logic circuit.

仮想スイッチ14は、ラダープログラムにおける全ての行の先頭に定義されている。すなわち、図2(C)に示すように、実際仮想スイッチ14は、ラダープログラムの各行の先頭に配置されている。図2(C)に示すスイッチM7000からスイッチM7999が、各仮想スイッチ14に相当する。しかし、仮想スイッチ14は、通常図2(A)に示すように表示器21では表示されない。なお、仮想スイッチ14は、ラダープログラムの一部の行に定義されていてもよく、又は全ての行の先頭に定義されていてもよい。 The virtual switch 14 is defined at the beginning of every line in the ladder program. That is, as shown in FIG. 2C, the virtual switch 14 is actually arranged at the beginning of each line of the ladder program. The switches M7000 to M7999 shown in FIG. 2C correspond to each virtual switch 14. However, the virtual switch 14 is not normally displayed on the display 21 as shown in FIG. 2 (A). The virtual switch 14 may be defined in a part of the lines of the ladder program, or may be defined at the beginning of all the lines.

レジスタ15は、仮想スイッチ14を定義し、かつそのオン又はオフを定義する。レジスタ15の値が1の時、仮想スイッチ14はオンである。また、レジスタ15の値が0の時、仮想スイッチ14はオフである。このように、PLC10は、レジスタ15の値を変更することにより、仮想スイッチ14のオン又はオフを切り替えることができる。 Register 15 defines a virtual switch 14 and its on or off. When the value of register 15 is 1, the virtual switch 14 is on. When the value of the register 15 is 0, the virtual switch 14 is off. In this way, the PLC 10 can switch the virtual switch 14 on or off by changing the value of the register 15.

情報処理装置20の送信部23がPLC10へラダープログラムの特定の行を有効又は無効にする指示を送信すると、受信部11は該指示を受信する。受信部11が該指示を受信すると、演算部13は、ラダープログラムの特定の行の仮想スイッチ14に対応するレジスタ15の値を変更する。 When the transmitting unit 23 of the information processing device 20 transmits an instruction to enable or disable a specific line of the ladder program to the PLC 10, the receiving unit 11 receives the instruction. When the receiving unit 11 receives the instruction, the arithmetic unit 13 changes the value of the register 15 corresponding to the virtual switch 14 in the specific line of the ladder program.

例えば、受信部11がラダープログラムの二行目の行を無効にする指示を受信すると、演算部13は、ラダープログラムの二行目の行の仮想スイッチ14に対応するレジスタ15の値を指示に基づいて0に変更する。すると、ラダープログラムの二行目の行の仮想スイッチ14に対応するスイッチM7001がオフになる。二行目の行の先頭にあるスイッチM7001がオフになると、ラダープログラムの二行目の行のスイッチM7001の後段は、すべて無効とみなされる。これにより、ラダープログラムの二行目が無効になる。 For example, when the receiving unit 11 receives an instruction to invalidate the second line of the ladder program, the arithmetic unit 13 instructs the value of the register 15 corresponding to the virtual switch 14 in the second line of the ladder program. Change to 0 based on. Then, the switch M7001 corresponding to the virtual switch 14 on the second line of the ladder program is turned off. When the switch M7001 at the beginning of the second line is turned off, all the switches after the switch M7001 on the second line of the ladder program are considered invalid. This invalidates the second line of the ladder program.

このとき、ラダープログラムの二行目が無効とみなされるが、ラダープログラムの二行目をコメントアウトしているわけではない。すなわち、ラダープログラム自体は、変更されていない。従って、ラダープログラムにおける特定の行の実行を有効又は無効にするために、情報処理装置20からPLC10へ再度ラダープログラムをダウンロードし直す必要がない。これにより、ユーザはラダープログラムをダウンロードし直すことなく、容易にラダープログラムの特定の行の有効又は無効を切り替えることができる。 At this time, the second line of the ladder program is considered invalid, but the second line of the ladder program is not commented out. That is, the ladder program itself has not changed. Therefore, it is not necessary to re-download the ladder program from the information processing device 20 to the PLC 10 in order to enable or disable the execution of a specific line in the ladder program. This allows the user to easily enable or disable a particular line of the ladder program without having to re-download the ladder program.

PLCは、一般的に安定性が要求される。例えばPLCが工場で大型の装置の制御に使用される場合、安全上の理由からPLCは常に同じ制御をすることが要求される。このため、PLC用の制御プログラムは書き換えられないことが好ましい。本実施形態においては、ラダープログラムは変更されないため、PLCの安定性が確保される。また、ラダープログラムの行数が多い場合、PLC10へのダウンロードは長い時間を要する。本実施形態においては、情報処理装置20からPLC10へ再度ラダープログラムをダウンロードし直す必要がないため、ユーザは迅速にラダープログラムの特定の行の有効又は無効を切り替えることができる。さらに、ユーザは予め有効又は無効を切り替える可能性のあるラダープログラムの行を予想して、先頭に内部リレーを入れておく必要もない。 PLCs are generally required to be stable. For example, when a PLC is used in a factory to control a large device, the PLC is required to always have the same control for safety reasons. Therefore, it is preferable that the control program for PLC is not rewritten. In the present embodiment, the ladder program is not changed, so that the stability of the PLC is ensured. Also, if the number of lines in the ladder program is large, downloading to PLC10 will take a long time. In the present embodiment, since it is not necessary to download the ladder program from the information processing device 20 to the PLC 10 again, the user can quickly enable or disable a specific line of the ladder program. Furthermore, the user does not need to anticipate the lines of the ladder program that may be enabled or disabled in advance and put an internal relay at the beginning.

なお、本実施形態においてラダープログラムの特定の行が一行のみ選択される例について説明したが、複数の行が選択されてもよい。 Although the example in which only one specific line of the ladder program is selected in the present embodiment has been described, a plurality of lines may be selected.

次に、PLC10の変形例1について説明する。図3は、PLC10の変形例1に係るPLC30を示すブロック図である。図4(A)及び図4(B)は、PLC30で所定の範囲を有効又は無効にする指示を説明するための図である。PLC30の説明については、PLC10と異なるところについてのみ説明を行い、後は省略する。 Next, a modification 1 of the PLC 10 will be described. FIG. 3 is a block diagram showing the PLC 30 according to the first modification of the PLC 10. 4 (A) and 4 (B) are diagrams for explaining instructions for enabling or disabling a predetermined range in PLC30. Regarding the description of the PLC 30, only the parts different from the PLC 10 will be described, and the rest will be omitted.

図3に示すように、PLC30の記憶部12は、範囲指定レジスタ16を有する。範囲指定レジスタ16は、所定の範囲の複数の行を範囲指定する。図4(A)に示すように、ユーザは表示器21の画面上の不図示のツールバーから、「範囲指定」の欄を選択する。「範囲指定」の欄が選択されると、表示器21は、ユーザが所定の範囲の複数の行を範囲指定するためのボックス42を表示する。ユーザは、ラダープログラムの行を範囲指定し、該当する行の実行が有効/無効であるかを選択する。 As shown in FIG. 3, the storage unit 12 of the PLC 30 has a range designation register 16. The range specification register 16 specifies a range of a plurality of rows in a predetermined range. As shown in FIG. 4A, the user selects the "range specification" field from the toolbar (not shown) on the screen of the display 21. When the "range specification" field is selected, the display 21 displays a box 42 for the user to specify a range of a plurality of lines in a predetermined range. The user specifies the range of the ladder program line and selects whether the execution of the line is valid / invalid.

例えば、ユーザは、ボックス42の範囲指定欄に2と10とを入力し、無効のラジオボタンを選択する。このように、ユーザは、ラダープログラムの2から10行目を範囲指定して無効にする指示を情報処理装置20に入力することができる。なお、行の範囲指定は、ボックス42のように数字を入力する入力欄を設けてもよく、又はプルダウン式のリストメニューを設けてもよい。 For example, the user inputs 2 and 10 in the range specification field of the box 42 and selects an invalid radio button. In this way, the user can input to the information processing apparatus 20 an instruction to specify and invalidate the 2nd to 10th lines of the ladder program. The line range may be specified by providing an input field for inputting numbers as in the box 42, or by providing a pull-down list menu.

その後、ユーザがOKボタンを押すことにより、送信部23がPLC10へ指示を送信する。演算部13は、ラダープログラムの2から10行目の行の仮想スイッチ14に対応する範囲指定レジスタ16の値を指示に基づいて0に変更する。これにより、ラダープログラムの2から10行目に対応する仮想スイッチ14はオフになる。図4(B)に示すように、表示器21は、ラダープログラムの2から10行目を薄く表示する。また、表示器21は、無効として選択された行の表示欄43を表示してもよい。これにより、無効となった行が多い場合、ユーザは範囲を一度に把握することができる。 After that, when the user presses the OK button, the transmission unit 23 transmits an instruction to the PLC 10. The calculation unit 13 changes the value of the range designation register 16 corresponding to the virtual switch 14 on the 2nd to 10th lines of the ladder program to 0 based on the instruction. As a result, the virtual switch 14 corresponding to the 2nd to 10th lines of the ladder program is turned off. As shown in FIG. 4B, the display 21 lightly displays the 2nd to 10th lines of the ladder program. In addition, the display 21 may display the display field 43 of the line selected as invalid. This allows the user to see the range at once if there are many invalid lines.

このように、ユーザは、範囲指定レジスタ16の値を変更することで、ラダープログラムの特定の範囲の行の実行を有効又は無効にできる。なお、ユーザは、1行のみを指定することもできる。また、変形例1において、ラダープログラムの特定の範囲が一つである例を挙げたが、複数であってもよい。これにより、ユーザは複数の範囲の実行を一度に有効又は無効にできる。 In this way, the user can enable or disable the execution of a specific range of rows in the ladder program by changing the value of the range specification register 16. The user can also specify only one line. Further, in the first modification, the example in which the specific range of the ladder program is one is given, but there may be a plurality of them. This allows the user to enable or disable execution of multiple ranges at once.

また、演算部13は、さらに範囲指定レジスタ16の範囲指定を変更してもよい。受信部11は、所定の範囲の複数の行を有効又は無効にする範囲指定を受信する。例えば、ユーザは、ラダープログラムの1から10行目の範囲指定をラダープログラムの101から110行目に変更することができる。これにより、ラダープログラムの1から10行目に対応する仮想スイッチ14はオンになり、ラダープログラムの101から110行目に対応する仮想スイッチ14はオフになる。これにより、ユーザは、複数の行に亘って有効又は無効にする範囲指定を一度に設定し変更することができる。従って、ユーザは、ラダープログラムを1行毎に指定する必要が省けるため、切り替え操作が簡易になる。 Further, the calculation unit 13 may further change the range designation of the range designation register 16. The receiving unit 11 receives a range designation that enables or invalidates a plurality of lines in a predetermined range. For example, the user can change the range specification of the ladder program from the 1st to the 10th line to the 101st to the 110th line of the ladder program. As a result, the virtual switch 14 corresponding to the 1st to 10th lines of the ladder program is turned on, and the virtual switch 14 corresponding to the 101st to 110th lines of the ladder program is turned off. As a result, the user can set and change the range specification to be valid or invalid over a plurality of lines at once. Therefore, the user does not need to specify the ladder program line by line, which simplifies the switching operation.

次に、PLC10の変形例2について説明する。図5は、PLC10の変形例2に係るPLC50を示すブロック図である。PLC50の説明については、PLC10と異なるところについてのみ説明を行い、後は省略する。 Next, a modification 2 of the PLC 10 will be described. FIG. 5 is a block diagram showing the PLC 50 according to the second modification of the PLC 10. Regarding the description of the PLC 50, only the parts different from the PLC 10 will be described, and the rest will be omitted.

PLC50は、ラダープログラムを表示する表示器21と、ラダープログラムの特定の行を有効又は無効にする操作を受け付けるユーザI/F22と、をさらに備える。バス19は、受信部11、記憶部12、演算部13、表示器21、及びユーザI/F22を接続している。 The PLC 50 further includes a display 21 for displaying the ladder program, and a user I / F 22 for accepting an operation of enabling or disabling a specific line of the ladder program. The bus 19 connects the receiving unit 11, the storage unit 12, the calculation unit 13, the display 21, and the user I / F 22.

この構成では、ユーザは、表示器21に表示されるラダープログラムを確認しながら、PLC50が配置されている現場でユーザI/F22を介して特定の行を有効又は無効にする操作を行うことができる。これにより、ユーザは、他の情報処理装置を用いることなく、PLC50のみでラダープログラムの特定の行を有効又は無効にすることができる。 In this configuration, the user can perform an operation of enabling or disabling a specific line via the user I / F22 at the site where the PLC50 is arranged while checking the ladder program displayed on the display 21. it can. As a result, the user can enable or disable a specific line of the ladder program only with the PLC 50 without using another information processing device.

上述の実施形態の説明は、すべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上述の実施形態ではなく、特許請求の範囲によって示される。さらに、本発明の範囲には、特許請求の範囲と均等の意味及び範囲内での全ての変更が含まれることが意図される。 The description of the embodiments described above should be considered exemplary in all respects and not restrictive. The scope of the present invention is indicated by the scope of claims, not by the above-described embodiment. Furthermore, the scope of the present invention is intended to include all modifications within the meaning and scope equivalent to the claims.

1…情報処理システム
10,30,50…プログラマブルロジックコントローラ(PLC)
11…受信部
12…記憶部
13…演算部
14…仮想スイッチ
15…レジスタ
16…範囲指定レジスタ
19,29…バス
20…情報処理装置
21…表示器
23…送信部
24…メモリ
25…CPU
26…RAM
42…ボックス
43…表示欄
122…スイッチ
123…コイル
210…支援ツール
211…プログラム表示領域
1 ... Information processing system 10, 30, 50 ... Programmable logic controller (PLC)
11 ... Reception unit 12 ... Storage unit 13 ... Calculation unit 14 ... Virtual switch 15 ... Register 16 ... Range designation registers 19, 29 ... Bus 20 ... Information processing device 21 ... Display 23 ... Transmission unit 24 ... Memory 25 ... CPU
26 ... RAM
42 ... Box 43 ... Display field 122 ... Switch 123 ... Coil 210 ... Support tool 211 ... Program display area

Claims (6)

プログラマブルロジックコントローラを制御するための制御プログラムに対応するコードを受信する受信部と、
前記コードを記憶する記憶部と、
前記記憶部に記憶された前記コードに基づいて、前記制御プログラムに対応する論理回路を構成し、実行する演算部と、
を備え、
前記記憶部は、前記制御プログラムにおける特定の処理単位の実行を有効又は無効にするための仮想スイッチと、該仮想スイッチのオン/オフを定義するためのレジスタと、を有し、
前記受信部は、前記特定の処理単位を有効又は無効にする指示を受信し、
前記演算部は、前記受信部で前記指示を受信すると、対応する前記レジスタの値を変更して、前記仮想スイッチをオン又はオフする、
プログラマブルロジックコントローラ。
A receiver that receives the code corresponding to the control program for controlling the programmable logic controller,
A storage unit that stores the code and
A calculation unit that configures and executes a logic circuit corresponding to the control program based on the code stored in the storage unit.
With
The storage unit has a virtual switch for enabling or disabling the execution of a specific processing unit in the control program, and a register for defining on / off of the virtual switch.
The receiving unit receives an instruction to enable or disable the specific processing unit, and receives an instruction.
When the receiving unit receives the instruction, the arithmetic unit changes the value of the corresponding register to turn on or off the virtual switch.
Programmable logic controller.
前記特定の処理単位は、複数の処理単位を含み、
前記記憶部は、前記複数の処理単位を範囲指定するための範囲指定レジスタを有し、
前記演算部は、前記受信部で前記指示を受信すると、前記範囲指定レジスタの値を変更し、変更後の前記範囲指定レジスタの値に基づいて、前記仮想スイッチをオン又はオフする、
請求項1に記載のプログラマブルロジックコントローラ。
The specific processing unit includes a plurality of processing units.
The storage unit has a range specification register for specifying a range of the plurality of processing units.
When the receiving unit receives the instruction, the arithmetic unit changes the value of the range designation register and turns on or off the virtual switch based on the changed value of the range designation register.
The programmable logic controller according to claim 1.
前記受信部は、前記複数の処理単位を有効又は無効にする範囲指定を受信し、
前記演算部は、前記範囲指定に基づいて、前記範囲指定レジスタの指定範囲を変更する、
請求項2に記載のプログラマブルロジックコントローラ。
The receiving unit receives a range specification that enables or invalidates the plurality of processing units, and receives the range designation.
The arithmetic unit changes the designated range of the range designation register based on the range designation.
The programmable logic controller according to claim 2.
前記制御プログラムを表示する表示器と、
前記制御プログラムの前記特定の処理単位を有効又は無効にする操作を受け付けるユーザインタフェースと、
をさらに備えた、
請求項1乃至請求項3のいずれか1項に記載のプログラマブルロジックコントローラ。
An indicator that displays the control program and
A user interface that accepts operations that enable or disable the specific processing unit of the control program.
With more
The programmable logic controller according to any one of claims 1 to 3.
請求項1乃至請求項3のいずれか1項に記載のプログラマブルロジックコントローラと、
前記プログラマブルロジックコントローラに接続される情報処理装置と、
を備え、
前記情報処理装置は、
前記制御プログラムを表示する表示器と、
前記制御プログラムの前記特定の処理単位を有効又は無効にする操作を受け付けるユーザインタフェースと、
前記操作に基づいて前記指示を前記プログラマブルロジックコントローラに送信する送信部と、
を備えた、
情報処理システム。
The programmable logic controller according to any one of claims 1 to 3.
An information processing device connected to the programmable logic controller and
With
The information processing device
An indicator that displays the control program and
A user interface that accepts operations that enable or disable the specific processing unit of the control program.
A transmitter that transmits the instruction to the programmable logic controller based on the operation,
With,
Information processing system.
プログラマブルロジックコントローラを制御するための制御プログラムを表示器に表示する処理と、
前記制御プログラムの編集を受け付ける処理と、
前記制御プログラムに対応するコードをプログラマブルロジックコントローラに送信する処理と、
を情報処理装置に実行させるプログラムであって、
前記制御プログラムの特定の処理単位を有効又は無効にする操作を受け付ける処理と、
前記操作に基づいて前記特定の処理単位を有効又は無効にする指示を送信する処理と、
を前記情報処理装置に実行させ、
前記指示は、前記プログラマブルロジックコントローラに対して、前記特定の処理単位の実行を有効又は無効にするための仮想スイッチを定義するためのレジスタの値を変更させて、前記仮想スイッチをオン又はオフさせるための指示である、
プログラム。
The process of displaying the control program for controlling the programmable logic controller on the display, and
The process of accepting the editing of the control program and
The process of sending the code corresponding to the control program to the programmable logic controller,
Is a program that causes an information processing device to execute
A process that accepts an operation that enables or disables a specific processing unit of the control program, and
The process of transmitting an instruction to enable or disable the specific processing unit based on the operation, and
Is executed by the information processing apparatus
The instruction causes the programmable logic controller to turn the virtual switch on or off by causing the programmable logic controller to change the value of a register for defining a virtual switch to enable or disable execution of the particular processing unit. Instructions for
program.
JP2019084238A 2019-04-25 2019-04-25 Programmable logic controller, information processing system, and program Pending JP2020181383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019084238A JP2020181383A (en) 2019-04-25 2019-04-25 Programmable logic controller, information processing system, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019084238A JP2020181383A (en) 2019-04-25 2019-04-25 Programmable logic controller, information processing system, and program

Publications (1)

Publication Number Publication Date
JP2020181383A true JP2020181383A (en) 2020-11-05

Family

ID=73024646

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019084238A Pending JP2020181383A (en) 2019-04-25 2019-04-25 Programmable logic controller, information processing system, and program

Country Status (1)

Country Link
JP (1) JP2020181383A (en)

Similar Documents

Publication Publication Date Title
US10838390B2 (en) Program creation support apparatus, control method for program creation support apparatus, and control program for program creation support apparatus
US4200915A (en) Program loader for programmable controller
US9557897B2 (en) Apparatus and method for inputting cutting shape using interactive program in computer numerical control machine tool
JP2008282363A (en) Programmable controller, program creation support device, computer program and programmable logic controller (plc) system
JP2006268836A (en) Parameter setting device
US9727442B2 (en) Engineering tool, program editing device, and program editing system
CN107407922B (en) Programmable logic controller, method of controlling the same, and recording medium
CN104903798A (en) Automated input simulation for simulated programmable logic controller
JP6514252B2 (en) Robot data setting system, data setting method and program
JP5849592B2 (en) Programmable controller system, programming device thereof, programmable controller, program, and debugging method
JP2007095107A (en) Parameter setting device
JP2020181383A (en) Programmable logic controller, information processing system, and program
US10802470B2 (en) Control system
KR101456812B1 (en) System design device
JP2007102384A (en) Debugging device
JP6529680B1 (en) Data management system, data management method and data management program
JP4381793B2 (en) PROGRAMMABLE DISPLAY, DISPLAY CONTROL PROGRAM, RECORDING MEDIUM RECORDING THE PROGRAM, SCREEN CREATION DEVICE, SCREEN CREATION PROGRAM, AND RECORDING MEDIUM RECORDING THE PROGRAM
JP3356530B2 (en) Data creation support device for display control device
WO2014091623A1 (en) Programmable controller system, programmable display therefor, assistance device, and program
CN111324088A (en) Information processing apparatus
US6145093A (en) Debugging method and method of displaying information for data processing for use in programmable display device
JP4372739B2 (en) PROGRAMMABLE DISPLAY, CONTROL PROGRAM, RECORDING MEDIUM RECORDING THE PROGRAM, SCREEN CREATION DEVICE, SCREEN CREATION PROGRAM, AND RECORDING MEDIUM RECORDING THE PROGRAM
JP4387288B2 (en) Display device for control, editor device, program, and recording medium
JP2776443B2 (en) Programmable controller
US11360462B2 (en) Support device and support program