JP2019046228A - Programmable controller and ladder circuit program verification system - Google Patents

Programmable controller and ladder circuit program verification system Download PDF

Info

Publication number
JP2019046228A
JP2019046228A JP2017169395A JP2017169395A JP2019046228A JP 2019046228 A JP2019046228 A JP 2019046228A JP 2017169395 A JP2017169395 A JP 2017169395A JP 2017169395 A JP2017169395 A JP 2017169395A JP 2019046228 A JP2019046228 A JP 2019046228A
Authority
JP
Japan
Prior art keywords
ladder circuit
register information
programmable controller
register
ladder
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.)
Granted
Application number
JP2017169395A
Other languages
Japanese (ja)
Other versions
JP6951157B2 (en
Inventor
勝敏 伊藤
Katsutoshi Ito
勝敏 伊藤
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.)
Hitachi Industrial Equipment Systems Co Ltd
Original Assignee
Hitachi Industrial Equipment Systems 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 Hitachi Industrial Equipment Systems Co Ltd filed Critical Hitachi Industrial Equipment Systems Co Ltd
Priority to JP2017169395A priority Critical patent/JP6951157B2/en
Publication of JP2019046228A publication Critical patent/JP2019046228A/en
Application granted granted Critical
Publication of JP6951157B2 publication Critical patent/JP6951157B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To make a ladder circuit logged and displayed efficiently without increasing a memory capacity and a ladder circuit verification time.SOLUTION: A programmable controller comprises: a control unit 30 for detecting register information necessary for displaying a past ladder circuit; a memory 36 for storing the detected register information based on a change point of the register information; and an interface unit 31 transmits the register information of the past ladder circuit stored in the memory 36 from the programmable controller 10 to a peripheral device 11 via communication and displays the register information on the peripheral device 11 based on the change point.SELECTED DRAWING: Figure 1a

Description

本発明は、プログラマブルコントローラ及びラダー回路プログラム検証システムに関する。   The present invention relates to a programmable controller and a ladder circuit program verification system.

プログラマブルコントローラは、ユーザが作成したラダー回路プログラムを外部入出力データを取扱うレジスタ(以後、外部入出力レジスタと称す)とラダー演算に使用するレジスタを(以後、内部演算用レジスタと称す)用いてラダー演算処理を実行する。   The programmable controller uses a ladder circuit program created by the user to create a ladder using a register that handles external input / output data (hereinafter referred to as an external input / output register) and a register that is used for ladder calculation (hereinafter referred to as an internal calculation register). Perform arithmetic processing.

ユーザは、プログラマブルコントローラを使用した装置の立ち上げ時若しくは不具合発生時に、意図したとおりにラダー回路プログラムが実行されているかを検証する。プログラマブルコントローラに周辺装置を接続しその周辺装置からラダー回路モニタ若しくはレジスタモニタを実行すると、プログラマブルコントローラから通信によりレジスタ情報を取得し周辺装置のディスプレイに表示する。   The user verifies whether the ladder circuit program is executed as intended when the apparatus using the programmable controller is started up or when a malfunction occurs. When a peripheral device is connected to the programmable controller and ladder circuit monitoring or register monitoring is executed from the peripheral device, register information is acquired from the programmable controller by communication and displayed on the display of the peripheral device.

ユーザはそのディスプレイにリアルタイムに表示される情報(ラダー図若しくはレジスタ情報)を元に検証を行う。このように、リアルタイムにプログラマブルコントローラから通信機能を用いてレジスタ情報をモニタリングし周辺装置のディスプレイに表示させる。   The user performs verification based on information (ladder diagram or register information) displayed in real time on the display. In this way, register information is monitored from the programmable controller using a communication function in real time and displayed on the display of the peripheral device.

この際、周辺装置のディスプレイに表示されるデータが高速に変化する外部入出力レジスタ及び内部演算用レジスタの場合は、周辺装置のディスプレイで視認することが難しい若しくは見落とす場合がありラダー回路プログラムの検証に時間を要してしまう。   At this time, in the case of external input / output registers and internal calculation registers whose data displayed on the peripheral device display changes at high speed, it may be difficult or overlooked on the peripheral device display, and verification of the ladder circuit program It takes time.

このため、リアルタイムでのモニタで検証が難しい場合には、指定したレジスタ情報を定期的に保存して記憶するロギング機能を用いてラダー回路検証を行う。例えば、特許文献1には、このロギング機能を利用してラダー回路検証を行う技術が開示されている。   For this reason, when verification in real time is difficult, ladder circuit verification is performed using a logging function that periodically saves and stores designated register information. For example, Patent Document 1 discloses a technique for performing ladder circuit verification using this logging function.

特開平10−11118号公報Japanese Patent Laid-Open No. 10-11118

しかし、特許文献1の検証方法では、タイムチャート若しくは数値データを周辺装置のディスプレイに表示しており、ラダー回路自体は表示していない。このため、ユーザはラダー回路とロギングデータを机上で対応させる必要があり、ラダー回路の検証に時間を要してしまう。   However, in the verification method of Patent Document 1, the time chart or numerical data is displayed on the display of the peripheral device, and the ladder circuit itself is not displayed. For this reason, the user needs to make the ladder circuit correspond to the logging data on the desk, and it takes time to verify the ladder circuit.

この際、ラダー回路の全てをメモリにロギングしてディスプレイに表示することも考えられるが、メモリ容量が増大すると共にラダー回路検証の時間が増大してしまう。   At this time, it is conceivable to log the entire ladder circuit to the memory and display it on the display. However, the memory capacity increases and the ladder circuit verification time also increases.

本発明の目的は、メモリ容量及びラダー回路検証の時間を増大させることなく効率的にラダー回路をロギングして表示することにある。   An object of the present invention is to efficiently log and display a ladder circuit without increasing the memory capacity and the time for verifying the ladder circuit.

本発明の一態様のプログラマブルコントローラは、情報を表示する周辺装置と通信可能に接続され、ラダー回路のプログラムを前記ラダー回路のレジスタ情報を用いてラダー演算するプログラマブルコントローラであって、過去の前記ラダー回路を表示させるために必要な前記レジスタ情報を検出する制御部と、
前記制御部により検出された前記レジスタ情報を前記レジスタ情報の変化点を基準にして保存するメモリと前記メモリに保存した前記過去のラダー回路の前記レジスタ情報を前記プログラマブルコントローラから通信により前記周辺装置に送り、送られた前記レジスタ情報を前記周辺装置に前記変化点を基準にして表示させるインタフェース部と、を有することを特徴する。
A programmable controller according to one embodiment of the present invention is a programmable controller that is connected to a peripheral device that displays information so as to be communicable and performs a ladder operation on a ladder circuit program using register information of the ladder circuit. A control unit for detecting the register information necessary for displaying a circuit;
A memory for storing the register information detected by the control unit with reference to a change point of the register information, and the register information of the past ladder circuit stored in the memory are communicated from the programmable controller to the peripheral device. And an interface unit that displays the sent register information on the peripheral device based on the change point.

本発明の一態様のラダー回路プログラムの検証システムは、ラダー回路のプログラムを前記ラダー回路のレジスタ情報を用いてラダー演算するプログラマブルコントローラと、前記プログラマブルコントローラと通信可能に接続され、前記ラダー回路の前記レジスタ情報を表示する周辺装置と、を備え、前記プログラマブルコントローラは、過去の前記ラダー回路を表示させるために必要な前記レジスタ情報を検出する制御部と、前記制御部により検出された前記レジスタ情報を前記レジスタ情報の変化点を基準にして保存するメモリと、を有し、
前記周辺装置は、前記メモリに保存した前記過去のラダー回路の前記レジスタ情報を前記プログラマブルコントローラから通信により取得し、取得した前記レジスタ情報を前記変化点を基準にして表示することを特徴する。
A ladder circuit program verification system according to an aspect of the present invention includes a programmable controller that performs a ladder operation on a ladder circuit program using register information of the ladder circuit, and is connected to the programmable controller so as to be communicable. A peripheral device for displaying the register information, and the programmable controller detects the register information necessary for displaying the ladder circuit in the past, and the register information detected by the control unit. A memory for storing the change point of the register information as a reference,
The peripheral device acquires the register information of the past ladder circuit stored in the memory from the programmable controller by communication, and displays the acquired register information on the basis of the change point.

本発明の一態様のラダー回路プログラムの検証システムは、ラダー回路のプログラムを前記ラダー回路のレジスタ情報を用いてラダー演算するプログラマブルコントローラと、前記プログラマブルコントローラと通信可能に接続され、前記ラダー回路の前記レジスタ情報を表示する周辺装置と、を備え、前記プログラマブルコントローラは、過去の前記ラダー回路を表示させるために必要な前記レジスタ情報を検出し、前記周辺装置は、前記プログラマブルコントローラにより検出された前記レジスタ情報を前記プログラマブルコントローラから通信により取得し、取得した前記レジスタ情報を前記レジスタ情報の変化点を基準にして保存し、前記保存した前記過去のラダー回路の前記レジスタ情報を前記変化点を基準にして表示することを特徴とする。   A ladder circuit program verification system according to an aspect of the present invention includes a programmable controller that performs a ladder operation on a ladder circuit program using register information of the ladder circuit, and is connected to the programmable controller so as to be communicable. A peripheral device for displaying register information, wherein the programmable controller detects the register information necessary for displaying the ladder circuit in the past, and the peripheral device detects the register detected by the programmable controller. Information is acquired from the programmable controller by communication, the acquired register information is stored with reference to a change point of the register information, and the saved register information of the past ladder circuit is set with reference to the change point. To display And butterflies.

本発明の一態様によれば、メモリ容量及びラダー回路検証の時間を増大させることなく効率的にラダー回路をロギングして表示することができる。   According to one embodiment of the present invention, a ladder circuit can be efficiently logged and displayed without increasing the memory capacity and the ladder circuit verification time.

実施例1のラダー回路プログラム検証システムを示す図である。It is a figure which shows the ladder circuit program verification system of Example 1. FIG. プログラマブルコントローラの構成図である。It is a block diagram of a programmable controller. 周辺装置のディスプレイ上のラダー回路表示例を示す図である。It is a figure which shows the example of a ladder circuit display on the display of a peripheral device. 過去のラダー回路モニタ実行中の周辺装置のディスプレイ上のラダー回路表示例を示す図である。It is a figure which shows the example of a ladder circuit display on the display of the peripheral device in execution of the past ladder circuit monitor. コマ送り再生を行った時のイメージ図である。It is an image figure when frame-by-frame playback is performed. 実施例1の過去の演算結果をラダー回路図上で検証する手順を示すフローチャートである。6 is a flowchart illustrating a procedure for verifying a past calculation result of the first embodiment on a ladder circuit diagram. 実施例4の過去の演算結果をラダー回路図上で検証する手順を示すフローチャートである。12 is a flowchart illustrating a procedure for verifying a past calculation result of the fourth embodiment on a ladder circuit diagram. 実施例4のタイムチャートの一例を示す図である。FIG. 10 is a diagram illustrating an example of a time chart of Example 4. レジスタ情報の変化点をスキップ再生したイメージ図である。It is an image figure which skip-reproduced the change point of register information.

周辺装置のディスプレイに表示されるデータが高速に変化する外部入出力レジスタ及び内部演算用レジスタの場合は、周辺装置のディスプレイで視認することが難しい若しくは見落とす場合がある。このため、ラダー回路プログラムの検証に時間を要してしまう。実施形態では、ラダー回路をリアルタイムではなく過去に遡って周辺装置のディスプレイに表示させる。   In the case of external input / output registers and internal arithmetic registers in which data displayed on the peripheral device display changes at high speed, it may be difficult or overlooked on the peripheral device display. For this reason, it takes time to verify the ladder circuit program. In the embodiment, the ladder circuit is displayed on the display of the peripheral device retroactively rather than in real time.

具体的には、実施形態では、過去データを表示させるために必要な外部入出力レジスタ及び内部演算用レジスタを検出し、そのレジスタ情報を定期的に収集し保存し、保存してあるレジスタ情報を周辺装置のラダー回路モニタに表示する。このように、過去に遡って検証したいラダー回路部のレジスタ情報(外部入出力レジスタ及び内部演算用レジスタ)を簡単な操作で検出し、そのレジスタ情報をユーザの指定に基づき定期的に収集して保存する。   Specifically, in the embodiment, an external input / output register and an internal calculation register necessary for displaying past data are detected, the register information is periodically collected and stored, and the stored register information is stored. Display on the ladder circuit monitor of the peripheral device. In this way, register information (external input / output registers and internal arithmetic registers) for ladder circuits that you want to verify retroactively can be detected with simple operations, and the register information is collected periodically based on user specifications. save.

実施形態では、プログラマブルコントローラが実行した過去のラダー演算結果を周辺装置上のラダー回路モニタで表示できるようになる。このため、図示状態でどの回路が成立しているか否かを簡単に判断できラダー回路プログラムの検証が容易となる。
以下、図面を用いて実施例について説明する。
In the embodiment, it is possible to display a past ladder calculation result executed by the programmable controller on a ladder circuit monitor on the peripheral device. Therefore, it is possible to easily determine which circuit is established in the illustrated state, and it is easy to verify the ladder circuit program.
Embodiments will be described below with reference to the drawings.

図1を参照して、実施例1のラダー回路プログラム検証システムについて説明する。
ラダー回路プログラム検証システムは、ラダー演算処理を行うプログラマブルコントローラ10と、ラダー回路プログラムの編集とモニタ表示を行う周辺装置11を有する。プログラマブルコントローラ10と周辺装置11は、通信ケーブル12により接続されている。通信ケーブル12として、例えば、シリアル通信、イーサネット(Ethernet:登録商標)が使用される。
A ladder circuit program verification system according to the first embodiment will be described with reference to FIG.
The ladder circuit program verification system includes a programmable controller 10 that performs ladder calculation processing and a peripheral device 11 that performs editing and monitor display of the ladder circuit program. The programmable controller 10 and the peripheral device 11 are connected by a communication cable 12. As the communication cable 12, for example, serial communication, Ethernet (registered trademark) is used.

図1aを参照して、プログラマブルコントローラ10の構成について説明する。
プログラマブルコントローラ10は、ラダープログラムの演算や、周辺装置インタフェース部31を介し接続された周辺装置11との通信処理を行うMPU(制御部)30を有する。さらに、MPU30の制御する内容及び手順を記憶した不揮発性のシステムプログラムメモリ32、ユーザが作成したラダー回路を格納するための書き換え可能なラダー回路格納メモリ33を有する。
The configuration of the programmable controller 10 will be described with reference to FIG.
The programmable controller 10 includes an MPU (control unit) 30 that performs calculation of a ladder program and communication processing with the peripheral device 11 connected via the peripheral device interface unit 31. Furthermore, it has a non-volatile system program memory 32 storing contents and procedures controlled by the MPU 30, and a rewritable ladder circuit storage memory 33 for storing ladder circuits created by the user.

さらに、プログラマブルコントローラ10は、MPU30が実行したラダー回路プログラムの演算結果を格納する内部演算用レジスタメモリ34、外部入出力レジスタメモリ35、ワークメモリ36及び比較用ワークメモリ41を有する。さらに、外部機器42(センサ、スイッチ等)からの入力信号を取込むための入力モジュール37、外部機器43(ランプ、アクチュエータ等)への出力信号に演算結果を出力するための出力モジュール38、インタフェースするための外部バスインタフェース39を有する。また、外部接続となるが汎用USBメモリ、SDカードメモリ等の外部機器40が追加で接続可能となっている。   Further, the programmable controller 10 includes an internal operation register memory 34, an external input / output register memory 35, a work memory 36, and a comparison work memory 41 that store the operation results of the ladder circuit program executed by the MPU 30. Furthermore, an input module 37 for capturing an input signal from an external device 42 (sensor, switch, etc.), an output module 38 for outputting a calculation result to an output signal to an external device 43 (lamp, actuator, etc.), interface An external bus interface 39 is provided. In addition, external devices 40 such as a general-purpose USB memory and an SD card memory can be additionally connected.

ラダー回路プログラムは周辺装置11で作成され、通信ケーブル12及び周辺装置インタフェース31を介してラダー回路格納メモリ33に格納される。   The ladder circuit program is created by the peripheral device 11 and stored in the ladder circuit storage memory 33 via the communication cable 12 and the peripheral device interface 31.

図2を参照して、周辺装置11のディスプレイに表示されたラダー回路の表示例について説明する。
この表示例は、外部入出力レジスタX0(13)、X1(14)、Y100(15)及び内部演算用レジスタR0(16)のレジスタを組み合わせたラダー回路図である。
周辺装置11のディスプレイ上には、過去のラダー回路モニタを実行するための起動用ボタン17が設けられている。
A display example of the ladder circuit displayed on the display of the peripheral device 11 will be described with reference to FIG.
This display example is a ladder circuit diagram in which the external input / output registers X0 (13), X1 (14), Y100 (15) and the internal arithmetic register R0 (16) are combined.
On the display of the peripheral device 11, an activation button 17 for executing a past ladder circuit monitor is provided.

図2aを参照して、過去のラダー回路モニタを実行中の周辺装置11のディスプレイ上のラダー回路の表示例について説明する。
周辺装置11のディスプレイ上には、停止ボタン25、過去データ再生ボタン18、基準軸からの経過時間19、再生一時停止ボタン20、コマ送り再生ボタン21、コマ巻戻しボタン22、基準軸からの時間のスライダ表示23、レジスタ情報の変化点までスキップするスキップボタン24が設けられている。
A display example of the ladder circuit on the display of the peripheral device 11 that is executing the past ladder circuit monitor will be described with reference to FIG. 2a.
On the display of the peripheral device 11, a stop button 25, a past data playback button 18, an elapsed time 19 from the reference axis, a playback pause button 20, a frame advance / play button 21, a frame rewind button 22, and a time from the reference axis. And a skip button 24 for skipping to the change point of the register information.

そして、プログラマブルコントローラ10と周辺装置11を通信可能な状態(オンラインモード)に移行し、ラダー回路図モニタを実行する。この状態ででは、リアルタイムでラダー演算結果をラダー回路図で表示する。   Then, the programmable controller 10 and the peripheral device 11 shift to a communicable state (online mode), and the ladder circuit diagram monitor is executed. In this state, the ladder calculation result is displayed in a ladder circuit diagram in real time.

例えば、図2aに示すように、X0(13)、X1(14)、R0(16)がONになると、ラダー回路が成立しY100(15)がONし周辺装置11のディスプレイ上で目視できる。この場合、X0(13)が高速で変化した場合、ラダー演算結果によりY100(15)の状態も高速で変化する。このため、目視での確認では見落とす可能性がある。そこで、過去の演算結果をラダー回路図上で検証するために、レジスタ情報の収集及び保存を実施する必要がある。   For example, as shown in FIG. 2a, when X0 (13), X1 (14), and R0 (16) are turned on, a ladder circuit is established and Y100 (15) is turned on and can be viewed on the display of the peripheral device 11. In this case, when X0 (13) changes at high speed, the state of Y100 (15) also changes at high speed according to the ladder calculation result. For this reason, it may be overlooked by visual confirmation. Therefore, in order to verify past calculation results on the ladder circuit diagram, it is necessary to collect and store register information.

図3のフローチャートを参照して、過去の演算結果をラダー回路図上で検証する手順について説明する。
まず、起動用ボタン17を押してONにする(S300)。これにより、辺装置11のディスプレイ上に表示されている外部入出力レジスタ、内部演算用レジスタを自動で検出する(S301)。この場合は、X0(13)、X1(14)、Y100(15)、R0(16)、X0、X1、R0を自動で検出する。レジスタ番号が重複する場合は、ソートして削除を実行し(S302)、収集対象レジスタテーブル(この場合、X0、X1、Y100、R0)を自動で作成する(S303)。
A procedure for verifying past calculation results on a ladder circuit diagram will be described with reference to the flowchart of FIG.
First, the activation button 17 is pressed to turn it on (S300). Thereby, the external input / output register and the internal calculation register displayed on the display of the side device 11 are automatically detected (S301). In this case, X0 (13), X1 (14), Y100 (15), R0 (16), X0, X1, and R0 are automatically detected. If register numbers overlap, they are sorted and deleted (S302), and a collection target register table (in this case, X0, X1, Y100, R0) is automatically created (S303).

次に、収集対象レジスタテーブルに基づきデータロギングを実行する(S304)。収集対象レジスタと認識された外部入出力レジスタ、内部演算用レジスタはディスプレイ上で表示色を変更することにより一目で認識できる。   Next, data logging is executed based on the collection target register table (S304). The external input / output registers and internal calculation registers recognized as the collection target registers can be recognized at a glance by changing the display color on the display.

周辺装置11は、通信手段にてプログラマブルコントローラ10から収集対象レジスタの情報を定期的に収集し(S305)、周辺装置11のメモリ(図示せず)に格納する(S306)。周辺装置11のメモリとして、例えば、HDD、USBメモリ等を使用する。   The peripheral device 11 periodically collects information on the collection target register from the programmable controller 10 by communication means (S305) and stores it in a memory (not shown) of the peripheral device 11 (S306). As the memory of the peripheral device 11, for example, an HDD, a USB memory or the like is used.

停止ボタン25を押されるまで収集対象レジスタのデータを定期的に収集する(S307)。このデータ収集周期はプログラマブルコントローラ10と周辺装置11の通信能力及び収集対象レジスタの数量により自動的に最適化される。実施例1では、この周期を1msと仮定する。   Until the stop button 25 is pressed, data in the collection target register is periodically collected (S307). This data collection period is automatically optimized by the communication capability of the programmable controller 10 and the peripheral device 11 and the number of collection target registers. In the first embodiment, this period is assumed to be 1 ms.

データロギング中は、周辺装置11のディスプレイ上にリアルタイムで演算結果を表示しながら1ms周期で収集対象レジスタのデータの取得及び保存を行える。   During data logging, the data in the collection target register can be acquired and stored in a cycle of 1 ms while displaying the calculation result in real time on the display of the peripheral device 11.

過去情報でラダー回路モニタを表示する際には、過去データ再生ボタン18を押す。これにより、リアルタイム表示から周辺装置11のメモリに格納した収集対象レジスタ情報を使用して、ラダー回路図モニタで起動用ボタン17を押すことによりデータロギングを開始した時間を基準軸とし表示を開始する。   When displaying the ladder circuit monitor with past information, the past data reproduction button 18 is pressed. Thus, using the collection target register information stored in the memory of the peripheral device 11 from the real time display, the display is started with the time when the data logging is started by pressing the start button 17 on the ladder circuit diagram monitor as the reference axis. .

基準軸からの経過時間19を表示し、再生一時停止ボタン20を押すと基準軸からの経過時間19が停止しその状態でのラダー演算結果をラダー回路モニタで表示する。   When the elapsed time 19 from the reference axis is displayed and the playback pause button 20 is pressed, the elapsed time 19 from the reference axis is stopped and the ladder calculation result in that state is displayed on the ladder circuit monitor.

また、コマ送り再生ボタン21を押した場合には、基準軸からの経過時間19をデータ収集周期(実施例1では1ms)単位でのラダー回路モニタ表示が可能となる。
コマ巻戻しボタン22を押した場合は、基準軸からの経過時間19をデータ収集周期単位で遡りラダー回路モニタ表示が可能となる。
基準軸からの経過時間19をスライダ表示23し、このスライダを操作することによってもラダー回路モニタ表示の時間軸を変更することが可能である。
When the frame advance / playback button 21 is pressed, the ladder circuit monitor display of the elapsed time 19 from the reference axis in units of a data collection cycle (1 ms in the first embodiment) can be performed.
When the frame rewind button 22 is pressed, the elapsed time 19 from the reference axis can be traced back in units of data collection periods to display a ladder circuit monitor.
The time axis of the ladder circuit monitor display can also be changed by displaying the elapsed time 19 from the reference axis as a slider 23 and operating this slider.

図2bは、基準軸からの経過時間10msから17msまでをコマ送り再生したイメージ図である。図2bに示すように、12ms〜13msの期間に外部入力レジスタX1がOFFしたことにより外部出力レジスタY100がその期間OFFしたことが容易に分かる。
最後に、停止ボタン25をONにすると(S308)、データロギングが終了する(S309)。
FIG. 2B is an image diagram of frame-by-frame playback from an elapsed time of 10 ms to 17 ms from the reference axis. As shown in FIG. 2b, it can be easily understood that the external output register Y100 is OFF during the period of 12 ms to 13 ms because the external input register X1 is OFF.
Finally, when the stop button 25 is turned on (S308), the data logging is finished (S309).

次に、実施例2のラダー回路プログラム検証システムについて説明する。
実施例1では、収集対象レジスタのデータをプログラマブルコントローラ10と周辺装置11が通信にて取得し周辺装置11のメモリ(図示せず)に格納している。しかし、プログラマブルコントローラ10と周辺装置11の通信能力が低く、収集対象レジスタの数量が膨大な場合には、データ収集周期が大きくなることが懸念される。この点を考慮して、実施例2では、収集対象レジスタのデータをプログラマブルコントローラ10のメモリに格納する。
Next, a ladder circuit program verification system according to the second embodiment will be described.
In the first embodiment, the data in the collection target register is acquired by the programmable controller 10 and the peripheral device 11 through communication, and stored in a memory (not shown) of the peripheral device 11. However, if the communication capability between the programmable controller 10 and the peripheral device 11 is low and the number of collection target registers is enormous, there is a concern that the data collection cycle will be increased. In consideration of this point, in the second embodiment, the data of the collection target register is stored in the memory of the programmable controller 10.

具体的には、図2に示す起動用ボタン17を押すと、周辺装置11のディスプレイ上に表示されている外部入出力レジスタ、内部演算用レジスタを検出する。収集対象レジスタを検出後、プログラマブルコントローラ10に収集対象レジスタの情報を転送し、プログラマブルコントローラ10はその情報を元にデータロギングを実行して、プログラマブルコントローラ10のワークメモリ36若しくは外部接続可能な外部機器40などにレジスタ情報を格納する。   Specifically, when the activation button 17 shown in FIG. 2 is pressed, the external input / output register and the internal calculation register displayed on the display of the peripheral device 11 are detected. After detecting the collection target register, the information of the collection target register is transferred to the programmable controller 10, the programmable controller 10 executes data logging based on the information, and the work memory 36 of the programmable controller 10 or an externally connectable external device The register information is stored in 40 or the like.

過去情報でラダー回路モニタを表示するために、過去データ再生ボタン18が押されると、プログラマブルコントローラ10のメモリに格納されていた収集対象レジスタのデータを周辺装置11が一括で読み込んで周辺装置11のメモリ上にコピーする。そして、周辺装置11のメモリ上にコピーしたデータを使用して過去情報のラダー回路モニタを表示する。   When the past data reproduction button 18 is pressed to display the ladder circuit monitor with the past information, the peripheral device 11 collectively reads the data of the collection target register stored in the memory of the programmable controller 10 and the peripheral device 11 Copy to memory. Then, the ladder circuit monitor of past information is displayed using the data copied on the memory of the peripheral device 11.

次に、実施例3のラダー回路プログラム検証システムについて説明する。
実施例2ではプログラマブルコントローラ10自身で収集対象レジスタのデータロギングを行えるメリットがあり、データ収集周期を時間軸ではなくプログラマブルコントローラ10特有のスキャン単位で行うことが可能となる。
Next, a ladder circuit program verification system according to the third embodiment will be described.
The second embodiment has an advantage that the programmable controller 10 itself can perform data logging of the collection target register, and the data collection cycle can be performed in units of scans unique to the programmable controller 10 instead of the time axis.

そこで、実施例3では、周辺装置11からデータ収集周期をスキャン単位で行うように指示を行うことにより、プログラマブルコントローラ10は収集対象レジスタのデータ収集をスキャン単位で行いプログラマブルコントローラ10のメモリに格納する。周辺装置11は、基準軸からの経過ステップ数単位で過去のラダー回路モニタを表示する。   Thus, in the third embodiment, by instructing the peripheral device 11 to perform the data collection cycle in scan units, the programmable controller 10 collects data in the collection target register in scan units and stores it in the memory of the programmable controller 10. . The peripheral device 11 displays the past ladder circuit monitor in units of the number of steps elapsed from the reference axis.

次に、実施例4のラダー回路プログラム検証システムについて説明する。
実施例1〜3では収集対象レジスタの情報を定周期にて収集及び保存を行うため、収集対象レジスタの個数×時間軸分の格納用メモリが必要となる。実施例4では、格納量メモリとなるワークメモリ36を肥大化させないようにする。
Next, a ladder circuit program verification system according to the fourth embodiment will be described.
In the first to third embodiments, since the information of the collection target registers is collected and stored at regular intervals, a storage memory corresponding to the number of collection target registers × time axis is required. In the fourth embodiment, the work memory 36 serving as a storage amount memory is not enlarged.

図4のフローチャートを参照して、過去の演算結果をラダー回路図上で検証する手順について説明する。
まず、起動用ボタン17を押してONにする(S400)。これにより、周辺装置11のディスプレイ上に表示されている外部入出力レジスタ、内部演算用レジスタを自動で検出する(S401)。この場合、X0(13)、X1(14)、Y100(15)、R0(16)、X0、X1、R0を自動で検出する。
A procedure for verifying past calculation results on a ladder circuit diagram will be described with reference to the flowchart of FIG.
First, the activation button 17 is pressed to turn it on (S400). Thereby, the external input / output register and the internal calculation register displayed on the display of the peripheral device 11 are automatically detected (S401). In this case, X0 (13), X1 (14), Y100 (15), R0 (16), X0, X1, and R0 are automatically detected.

レジスタ番号が重複する場合は、ソート及び削除を実行し(S402)、収集対象レジスタテーブル(この場合、X0、X1、Y100、R0)を自動で作成する(S403)。   When register numbers overlap, sorting and deletion are executed (S402), and a collection target register table (in this case, X0, X1, Y100, R0) is automatically created (S403).

次に、収集対象レジスタテーブルに基づきデータロギングを実行する(S404)。ここまでは、実施例1、2と同じである。
データロギング開始時は、MPU30は、全レジスタの情報を収集して(S405)、ワークメモリ36若しくはプログラマブルコントローラ10に外部接続可能な外部機器40に格納する(S406)。
Next, data logging is executed based on the collection target register table (S404). The steps so far are the same as those in the first and second embodiments.
At the start of data logging, the MPU 30 collects information on all registers (S405) and stores it in the external device 40 that can be externally connected to the work memory 36 or the programmable controller 10 (S406).

そして、次のデータ収集周期か否かを判定する(S407)。次のデータ収集周期になった場合、収集対象レジスタテーブルに基づきデータロギングを実行して比較用ワークメモリ41に格納する(S408)。そして、比較用ワークメモリ41に格納したレジスタ情報と、前回ワークメモリ36に格納したレジスタ情報と比較する処理を実行してレジスタ情報の変化点50(図5参照)を検出する(S409)。   Then, it is determined whether or not it is the next data collection cycle (S407). When the next data collection cycle comes, data logging is executed based on the collection target register table and stored in the comparison work memory 41 (S408). Then, the register information stored in the comparison work memory 41 is compared with the register information stored in the previous work memory 36 to detect the register information change point 50 (see FIG. 5) (S409).

次に、レジスタ情報の変化点があるか否かを判定する(S409)。レジスタ情報の変化点がない場合、上記比較結果はレジスタ情報が同一となるためワークメモリ36への格納は実施せず比較用ワークメモリ41のデータは破棄する。   Next, it is determined whether there is a change point in the register information (S409). When there is no change point of the register information, the comparison result is the same as the register information, so the data in the comparison work memory 41 is discarded without being stored in the work memory 36.

レジスタ情報の変化点がある場合には、上記比較結果はレジスタ情報が同一とならないためログング有効データと判定しワークメモリ36にレジスタ情報とタイムスタンプを付加し格納する(S411)。停止ボタン25を押されるまで収集対象レジスタのデータを定期的に収集する。
最後に、停止ボタン25が押されてONになると(S412)、データロギングが終了する(S413)。
If there is a change point in the register information, the comparison result is not the same as the register information, so it is determined as logging valid data, and the register information and time stamp are added to the work memory 36 and stored (S411). Data in the collection target register is periodically collected until the stop button 25 is pressed.
Finally, when the stop button 25 is pressed and turned on (S412), the data logging is finished (S413).

実施例1、2の場合、図2bに示すように、経過時間10msから17msの間に1ms間隔で8回レジスタ情報を格納することとなる。この場合、10msと11ms、12msと13ms、14ms〜17msのレジスタ情報は同じデータを格納することとなる。   In the case of the first and second embodiments, as shown in FIG. 2b, the register information is stored eight times at intervals of 1 ms between the elapsed times of 10 ms and 17 ms. In this case, the same data is stored in register information of 10 ms and 11 ms, 12 ms and 13 ms, and 14 ms to 17 ms.

実施例4の場合、図5及び図6に示すように、レジスタ情報の変化点50にてロギングを実行するため、経過時間12ms、経過時間14msと2回だけレジスタ情報を格納することとなる。このため、格納量メモリの肥大化を低減することが可能である。   In the case of the fourth embodiment, as shown in FIGS. 5 and 6, since logging is executed at the change point 50 of the register information, the register information is stored only twice, that is, the elapsed time 12 ms and the elapsed time 14 ms. For this reason, it is possible to reduce the enlargement of the storage amount memory.

また、過去情報でラダー回路モニタを表示する場合にも、図5に示すように、レジスタ情報の変化点50をポイントに再生する機能を使うことにより、ラダー回路プログラム検証の時間短縮となる。   Further, when displaying the ladder circuit monitor with past information, as shown in FIG. 5, the time for verifying the ladder circuit program can be shortened by using the function of reproducing the change point 50 of the register information as a point.

図6を参照すると、過去データ再生ボタン18を押し、ワークメモリ36に格納した収集対象レジスタのデータを使用しラダー回路図モニタで起動用ボタン17を押す。これにより、データロギングを開始した時間を基準軸とし表示を開始する。
その際、通常再生ではなくスキップ再生24を押すと、経過時間10msからレジスタ情報の変化点経過時間12msまでスキップし一時停止する。
その後に、再度スキップ再生24を押すと、次のレジスタ情報の変化点経過時間14msまでスキップして一時停止する。
Referring to FIG. 6, the past data reproduction button 18 is pressed, and the start button 17 is pressed on the ladder circuit diagram monitor using the data of the collection target register stored in the work memory 36. Thereby, the display is started with the time when the data logging is started as the reference axis.
At this time, when skip playback 24 is pressed instead of normal playback, the skip is performed from the elapsed time 10 ms to the register information change point elapsed time 12 ms, and is paused.
Thereafter, when the skip playback 24 is pressed again, the next register information change point elapsed time is skipped to 14 ms and paused.

スキップ再生24を使用することにより、レジスト情報の無変化状態の時間を飛ばして検証することが可能となる。
このように、実施例4では、格納量メモリの肥大化を低減することができる。さらに、レジスタ情報の変化点50をポイントに再生する機能を使うことにより、ラダー回路プログラム検証の時間を短縮することができる。
By using the skip reproduction 24, it is possible to verify by skipping the time when the resist information remains unchanged.
Thus, in Example 4, the enlargement of the storage amount memory can be reduced. Furthermore, by using the function of reproducing the register information change point 50 as a point, the ladder circuit program verification time can be shortened.

10 プログラマブルコントローラ、
11 周辺装置
12 通信ケーブル
30 MPU
31 周辺装置インタフェース部
32 システムプログラムメモリ
33 ラダー回路格納メモリ
34 内部演算用レジスタメモリ
35 外部入出力レジスタメモリ
36 ワークメモリ
37 入力モジュール
38 出力モジュール
39 外部バスインタフェース
40 外部機器
41 比較用ワークメモリ
42 外部機器
43 外部機器
10 Programmable controller,
11 Peripheral device 12 Communication cable 30 MPU
31 Peripheral device interface section 32 System program memory 33 Ladder circuit storage memory 34 Internal operation register memory 35 External input / output register memory 36 Work memory 37 Input module 38 Output module 39 External bus interface 40 External device 41 Comparison work memory 42 External device 43 External equipment

Claims (8)

情報を表示する周辺装置と通信可能に接続され、ラダー回路のプログラムを前記ラダー回路のレジスタ情報を用いてラダー演算するプログラマブルコントローラであって、
過去の前記ラダー回路を表示させるために必要な前記レジスタ情報を検出する制御部と、
前記制御部により検出された前記レジスタ情報を前記レジスタ情報の変化点を基準にして保存するメモリと
前記メモリに保存した前記過去のラダー回路の前記レジスタ情報を前記プログラマブルコントローラから通信により前記周辺装置に送り、送られた前記レジスタ情報を前記周辺装置に前記変化点を基準にして表示させるインタフェース部と、
を有することを特徴するプログラマブルコントローラ。
A programmable controller that is communicably connected to a peripheral device that displays information and performs a ladder operation on a ladder circuit program using register information of the ladder circuit,
A control unit for detecting the register information necessary for displaying the ladder circuit in the past;
A memory for storing the register information detected by the control unit with reference to a change point of the register information, and the register information of the past ladder circuit stored in the memory to the peripheral device by communication from the programmable controller. An interface unit that displays the sent register information on the peripheral device based on the change point;
A programmable controller comprising:
前記ラダー回路は、
外部入出力データを取扱う外部入出力レジスタと、
前記ラダー演算に使用する内部演算用レジスタと、
を有することを特徴とする請求項1に記載のプログラマブルコントローラ。
The ladder circuit is
An external input / output register that handles external input / output data;
An internal operation register used for the ladder operation;
The programmable controller according to claim 1, comprising:
ラダー回路のプログラムを前記ラダー回路のレジスタ情報を用いてラダー演算するプログラマブルコントローラと、
前記プログラマブルコントローラと通信可能に接続され、前記ラダー回路の前記レジスタ情報を表示する周辺装置と、を備え、
前記プログラマブルコントローラは、
過去の前記ラダー回路を表示させるために必要な前記レジスタ情報を検出する制御部と、
前記制御部により検出された前記レジスタ情報を前記レジスタ情報の変化点を基準にして保存するメモリと、を有し、
前記周辺装置は、
前記メモリに保存した前記過去のラダー回路の前記レジスタ情報を前記プログラマブルコントローラから通信により取得し、取得した前記レジスタ情報を前記変化点を基準にして表示することを特徴するラダー回路プログラム検証システム。
A programmable controller for performing a ladder operation on a ladder circuit program using register information of the ladder circuit;
A peripheral device that is communicably connected to the programmable controller and displays the register information of the ladder circuit;
The programmable controller is
A control unit for detecting the register information necessary for displaying the ladder circuit in the past;
A memory for storing the register information detected by the control unit on the basis of a change point of the register information;
The peripheral device is:
A ladder circuit program verification system, wherein the register information of the past ladder circuit stored in the memory is acquired from the programmable controller by communication, and the acquired register information is displayed based on the change point.
前記ラダー回路は、
外部入出力データを取扱う外部入出力レジスタと、
前記ラダー演算に使用する内部演算用レジスタと、
を有することを特徴とする請求項3に記載のラダー回路プログラム検証システム。
The ladder circuit is
An external input / output register that handles external input / output data;
An internal operation register used for the ladder operation;
The ladder circuit program verification system according to claim 3, further comprising:
前記周辺装置は、
前記過去のラダー回路の前記レジスタ情報を前記変化点を基準にして表示することにより、前記ラダー回路のプログラムの検証を行うことを特徴とする請求項3に記載のラダー回路プログラム検証システム。
The peripheral device is:
4. The ladder circuit program verification system according to claim 3, wherein the ladder circuit program is verified by displaying the register information of the past ladder circuit with reference to the change point.
ラダー回路のプログラムを前記ラダー回路のレジスタ情報を用いてラダー演算するプログラマブルコントローラと、
前記プログラマブルコントローラと通信可能に接続され、前記ラダー回路の前記レジスタ情報を表示する周辺装置と、を備え、
前記プログラマブルコントローラは、
過去の前記ラダー回路を表示させるために必要な前記レジスタ情報を検出し、
前記周辺装置は、
前記プログラマブルコントローラにより検出された前記レジスタ情報を前記プログラマブルコントローラから通信により取得し、取得した前記レジスタ情報を前記レジスタ情報の変化点を基準にして保存し、
前記保存した前記過去のラダー回路の前記レジスタ情報を前記変化点を基準にして表示することを特徴とするラダー回路プログラム検証システム。
A programmable controller for performing a ladder operation on a ladder circuit program using register information of the ladder circuit;
A peripheral device that is communicably connected to the programmable controller and displays the register information of the ladder circuit;
The programmable controller is
The register information necessary for displaying the ladder circuit in the past is detected,
The peripheral device is:
The register information detected by the programmable controller is acquired from the programmable controller by communication, and the acquired register information is stored with reference to a change point of the register information,
A ladder circuit program verification system, wherein the stored register information of the past ladder circuit is displayed with reference to the change point.
前記ラダー回路は、
外部入出力データを取扱う外部入出力レジスタと、
前記ラダー演算に使用する内部演算用レジスタと、
を有することを特徴とする請求項6に記載のラダー回路プログラム検証システム。
The ladder circuit is
An external input / output register that handles external input / output data;
An internal operation register used for the ladder operation;
The ladder circuit program verification system according to claim 6, further comprising:
前記周辺装置は、
前記過去のラダー回路の前記レジスタ情報を前記変化点を基準にして表示することにより、前記ラダー回路のプログラムの検証を行うことを特徴とする請求項6に記載のラダー回路プログラム検証システム。
The peripheral device is:
The ladder circuit program verification system according to claim 6, wherein the program of the ladder circuit is verified by displaying the register information of the past ladder circuit with reference to the change point.
JP2017169395A 2017-09-04 2017-09-04 Programmable controller and ladder circuit program verification system Active JP6951157B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017169395A JP6951157B2 (en) 2017-09-04 2017-09-04 Programmable controller and ladder circuit program verification system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017169395A JP6951157B2 (en) 2017-09-04 2017-09-04 Programmable controller and ladder circuit program verification system

Publications (2)

Publication Number Publication Date
JP2019046228A true JP2019046228A (en) 2019-03-22
JP6951157B2 JP6951157B2 (en) 2021-10-20

Family

ID=65814412

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017169395A Active JP6951157B2 (en) 2017-09-04 2017-09-04 Programmable controller and ladder circuit program verification system

Country Status (1)

Country Link
JP (1) JP6951157B2 (en)

Also Published As

Publication number Publication date
JP6951157B2 (en) 2021-10-20

Similar Documents

Publication Publication Date Title
US7203561B2 (en) Information processing device, operation state management device, information processing method, program, and computer-readable storage medium storing program
TWI521316B (en) Peripheral device of programmable logic controller and debug support program product
KR100850843B1 (en) Indicator, and recording medium storing program for functioning computer as indicator
CN108139739B (en) Manufacturing state display system, manufacturing state display method, and recording medium for recording manufacturing state display program
JP5826367B1 (en) Process monitoring device
US20140236997A1 (en) Controller, information processing apparatus, and recording medium
JP2018088177A (en) Information processing device, information processing system, information processing method, and information processing program
JP6442131B2 (en) Control system and control device
WO2007029690A1 (en) Monitoring system and control device for the same
US20160110611A1 (en) Numerical control device
JP6951157B2 (en) Programmable controller and ladder circuit program verification system
JP5398808B2 (en) Display device
JP2006350681A (en) Operation procedure support system for plant monitoring control device
JP7340792B2 (en) Work display method and work display device
JP6870664B2 (en) Control systems, controls and programs
JP2004312894A (en) Console for motor control device
JP7152180B2 (en) system for operating equipment
KR20180096796A (en) Programmable indicator
JP4282516B2 (en) Maintenance device
JP4686615B2 (en) Maintenance device
JP2022120214A (en) Gas detection terminal device and gas detection system
JP2010170459A (en) Test system, test method, and test program
JP5627320B2 (en) Movie storage device and movie storage system
KR20090000737U (en) Automatic test control system of digital video recorder
JPWO2014083646A1 (en) Programmable display, program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190912

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200710

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200721

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200917

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210126

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210319

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: 20210824

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210924

R150 Certificate of patent or registration of utility model

Ref document number: 6951157

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150