JPH0314101A - Verifying device for programmable controller - Google Patents

Verifying device for programmable controller

Info

Publication number
JPH0314101A
JPH0314101A JP1150252A JP15025289A JPH0314101A JP H0314101 A JPH0314101 A JP H0314101A JP 1150252 A JP1150252 A JP 1150252A JP 15025289 A JP15025289 A JP 15025289A JP H0314101 A JPH0314101 A JP H0314101A
Authority
JP
Japan
Prior art keywords
output information
output
read
executed
area
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
JP1150252A
Other languages
Japanese (ja)
Inventor
Yumiko Ishiguro
石黒 由美子
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1150252A priority Critical patent/JPH0314101A/en
Publication of JPH0314101A publication Critical patent/JPH0314101A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

PURPOSE:To surely detect an erroneous output generated between read-out periods and an erroneous output to other output number than the designated one by detecting a variation of output information at every one scan, and displaying this variation point on a display device. CONSTITUTION:In the inside of a verifying device 20, output information to be verified is inputted as an initial value to a previous output information store area 31 at every one step, the processing of one scan is executed, and the contents of an obtained output information area 13 are read out and stored in a present output information store area 32 of the verifying device 20. Subsequently, exclusive OR of the previous output information of the previous output information store area 31 and the present output state of the present output information store area 32 is taken. Thereafter, this result is decided, and when it is other than '0', it is decided that the output information is varied, and the number which causes this variation is displayed on a CRT device 27. In such a way, an erroneous output generated between read-out and read-out, and an erroneous output of other output number than the set one can be detected surely.

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は、プログラマブルコントローラ(以下、PC
と略記する)のシーケンス動作が正しいか否かを検証す
るPCの検証装置に関するものである。
[Detailed Description of the Invention] (Industrial Application Field) This invention provides a programmable controller (hereinafter referred to as a PC).
The present invention relates to a PC verification device that verifies whether or not sequence operations (hereinafter abbreviated as ) are correct.

〔従来の技術〕[Conventional technology]

第4図は、この種の従来の検証装置を、検証対象である
PCと併て示したブロック図である。同図ニオいて、検
証対象のPC(10)はオペレーションシステム(以下
O5と略記する) (11)、入力情報エリア(12)
、出力情報エリア(13)、通信インタフェース(14
)及び電源ユニット(15)を有し、検証装置(20)
は05(21)、入力情報エリア(22)、期待される
出力情報エリア(23)、PCから読み出した出力情報
エリア(24)、通信インタフェース(25)、キーボ
ード(26)及びCRT表示装置(27)を有し、この
うち、Pf:(10)の通信インタフェース(14)と
検証装置(2o)の通信インタフェース(25)とが通
信ケーブル(28)で接続されている。
FIG. 4 is a block diagram showing this type of conventional verification device together with a PC to be verified. In the figure, the PC to be verified (10) has an operation system (hereinafter abbreviated as O5) (11) and an input information area (12).
, output information area (13), communication interface (14)
) and a power supply unit (15), and a verification device (20)
05 (21), input information area (22), expected output information area (23), output information area read from the PC (24), communication interface (25), keyboard (26) and CRT display device (27). ), of which the communication interface (14) of Pf: (10) and the communication interface (25) of the verification device (2o) are connected by a communication cable (28).

この検証装置の動作を、検証操作手順を示す第5図のフ
ローチャート及び内部での処理手順を示す第6図のフロ
ーチャートに従って説明する。
The operation of this verification device will be explained with reference to the flowchart of FIG. 5 showing the verification operation procedure and the flowchart of FIG. 6 showing the internal processing procedure.

最初に、検証装置(20)のキーボード(26)を用い
、入力情報として模擬的な入力条件を、またこの入力条
件に対して期待される出力情報、内部接点、タイマ接点
、カウンタ接点の情報をそれぞれ「0」とrl、のピッ
ド情報て設定する。次に、検証装置(20)のキーボー
ドを用い、プログラムを何スキャン実行したら出力情報
や内部接点、タイマ接点、カウンタ接点の情報を読み出
すかの回数(以下読み出し周期という)、および何回読
み出すかのいわゆる読み出し回数を指定する(ステップ
101)・続いて、キーボード(26)を用い、プログ
ラムの実行を指令する(ステップ102)。
First, using the keyboard (26) of the verification device (20), input simulated input conditions as input information, output information expected for these input conditions, and information on internal contacts, timer contacts, and counter contacts. Set the pid information of "0" and rl, respectively. Next, use the keyboard of the verification device (20) to determine how many scans the program must be executed to read the output information, internal contacts, timer contacts, and counter contact information (hereinafter referred to as the read cycle), and how many times to read the information. The so-called number of readings is designated (step 101).Then, the keyboard (26) is used to command execution of the program (step 102).

係る実行指令に応じて検証装置(20)は読み出し回数
用カウンタお°よび読み出し周期用カウンタを「0」に
クリアしくステップIll、112 ) 、続いてpc
の入力情報エリア(12)に入力情報を書込む(ステッ
プ113)。そして、PCがプログラムを1回実行する
(ステップ114 )毎に、即ち、1スキャン毎に読み
出し周期カウンタに「1」を加え、(ステップ115)
その値が設定した読み出し周期と致するか否かを判定し
くステップ116 ) 、一致するまでプログラムを実
行させる。
In response to the execution command, the verification device (20) clears the read count counter and the read cycle counter to "0" (step Ill, 112), and then clears the read cycle counter to "0".
The input information is written in the input information area (12) of (step 113). Then, each time the PC executes the program once (step 114), that is, each scan, "1" is added to the read cycle counter, and (step 115)
It is determined whether the value matches the set read cycle (step 116), and the program is executed until it matches.

次に、読み出し周期分のプログラムを実行させた段階で
出力情報エリア(13)から出力情報や内部接点、タイ
マ接点、カウンタ接点の情報を読み出して出力情報エリ
ア(24)に格納する(ステップ117)。続いて、こ
の読み出し、格納の処理を実行する毎に読み出し回数用
カウンタに「1」を加え(ステップ118)、その値が
指定した読み出し回数と等しくなったか否かを判定しく
ステップ119)、等しくなるまで上記の処理を繰り返
す。
Next, when the program for the read cycle has been executed, output information and information on internal contacts, timer contacts, and counter contacts are read from the output information area (13) and stored in the output information area (24) (step 117). . Next, each time this reading and storing process is executed, "1" is added to the read count counter (step 118), and it is determined whether the value is equal to the specified read count (step 119). Repeat the above process until.

次に、読み出し回数用カウンタの値と指定した読み出し
回数とが等しくなった段階でプログラムの実行を停止し
、期待される出力情報エリア(23)の内容とPCから
読み出した出力情報エリア(24)の内容との排他的論
理和(E、OR)をとり、(ステップ120)、その結
果、をCRT表示装置(27)に表示させる(ステップ
121)。
Next, the execution of the program is stopped when the value of the read count counter becomes equal to the specified read count, and the content of the expected output information area (23) and the output information area (24) read from the PC are displayed. Exclusive OR (E, OR) with the contents of is performed (step 120), and the result is displayed on the CRT display device (27) (step 121).

なお、CRT表示装置(27)の表示処理は、プログラ
ムの実行停止後の表示指令操作(ステップ103)を待
って行なわれる。そして、オペレータはCRT表示装置
の表示に応じて検証結果が正しいか否かを判断しくステ
ップ104 ) 、もし、正しくなければキーボード(
2G)を用いてプログラム、設定値等を修正しくステッ
プ105 ) 、再びプログラムの実行に穆る。
Note that the display processing of the CRT display device (27) is performed after waiting for a display command operation (step 103) after the execution of the program is stopped. Then, the operator judges whether the verification result is correct according to the display on the CRT display device (step 104), and if it is incorrect, the operator selects the keyboard (step 104).
2G) to modify the program, setting values, etc., and then execute the program again.

第7図は係る検証に対するCRT表示装置(27)の表
示画面例で、番号で設定した入出力情報、内部接点情報
(41)が縦に、読み出し回数(42)が横に配列され
、期待出力と実際の結果とが二数する時に実線(43)
で、不一致のときは、破線(44)でそれぞれオン、オ
フの状態が表される。
FIG. 7 is an example of the display screen of the CRT display device (27) for such verification, in which input/output information set by number and internal contact information (41) are arranged vertically, the number of readings (42) is arranged horizontally, and the expected output When and the actual result are two, the solid line (43)
When there is a mismatch, the on and off states are indicated by broken lines (44), respectively.

(発明が解決しようとする課題〕 上述した従来のPC検証装置にあっては、入力条件に対
する出力情報を設定したスキャン回数毎に読み出すと共
に、この読み出し動作を設定回数実行して得られた情報
と、入力条件に対応して期待される出力情報とを比較し
、その比較結果を表示装置に表示する構成になっている
ため、読み出し周期の値が大きくなると、読み出しから
読み出しの間に発生する誤出力が検知できず、しかも、
設定した以外の出力番号の誤出力の確認もてきないとい
う問題点があった。
(Problems to be Solved by the Invention) In the conventional PC verification device described above, the output information corresponding to the input conditions is read out every set number of scans, and the information obtained by executing this readout operation a set number of times is also read out. , the configuration compares the expected output information according to the input conditions and displays the comparison result on the display device, so as the readout period increases, errors that occur between reads are reduced. The output cannot be detected, and
There was a problem in that it was not possible to check for incorrect output of output numbers other than those set.

この発明は、上記の問題点を解決するためになされたも
ので、読み出しから読み出しの間に発生する誤出力及び
設定した以外の出力番号の誤出力を確実に検知すること
のできるPCの検証装置を得ることを目的とする。
This invention was made to solve the above problems, and is a PC verification device that can reliably detect erroneous outputs that occur between reads and erroneous outputs of output numbers other than those set. The purpose is to obtain.

〔課題を解決するための手段) この発明に係るpcの検証装置は、pcが前回実行した
出力情報と今回実行した出力情報とを1スキャン毎に比
較し、状態に変化があって場合に限ってプログラムの実
行を停止させると共に、変化点を表示装置に表示させる
ようにしたものである。
[Means for Solving the Problems] The PC verification device according to the present invention compares the output information that the PC executed last time and the output information that the PC executed this time for each scan, and compares the output information that the PC executed last time and the output information that the PC executed this time, and compares the output information only when there is a change in the status. In this system, the execution of the program is stopped and the change point is displayed on the display device.

(作用) この発明においては、PCの1スキャン毎に出力情報の
変化を検知し、その変化点を表示するため、読み出し周
期間に発生する誤出力及び指定以外の出力番号に対する
誤出力を確実に検知することかてきる。
(Function) In this invention, changes in output information are detected every scan of the PC and the change point is displayed, so that erroneous outputs that occur between read cycles and erroneous outputs for output numbers other than the specified one are reliably prevented. It can be detected.

(実施例) 第1図は、この発明の一実施例を、検証対象であるPC
と併せて示したブロック図てあり、図中、第4図と同一
の符号をイゴシたものはそれぞれ同の要素を示す。そし
て、前回実行したプログラムに対する出力情報を格納す
る前出力情報格納エリア(31)と、今回実行したプロ
グラムに対する出力情報を格納する現出力情報格納エリ
ア(32)と、検証したい出力情報格納エリア(33)
とを新たに設りた点が第4図と構成を異にしている。
(Embodiment) FIG. 1 shows an embodiment of the present invention on a PC to be verified.
A block diagram is shown in conjunction with FIG. 4, in which the same reference numerals as in FIG. 4 indicate the same elements. A previous output information storage area (31) stores output information for the program executed last time, a current output information storage area (32) stores output information for the program executed this time, and an output information storage area to be verified (33). )
The structure differs from that in Figure 4 in that .

次に、この実施例の動作を、検証処理手順を示す第2図
のフローチャート及び内部での処理手順を示す第3図に
従い、特に従来装置と異なる点を中心にして説明する。
Next, the operation of this embodiment will be explained with reference to the flowchart of FIG. 2 showing the verification processing procedure and FIG. 3 showing the internal processing procedure, focusing especially on the points that are different from the conventional apparatus.

キーボード(26)を用いて入力情報、読み出し周期及
び読み出し回数を設定(ステップ+01 ) した後て
、1ステツプ毎に検証した出力情報を設定する(ステッ
プ106)。
After setting the input information, reading cycle and number of readings using the keyboard (26) (step +01), output information verified for each step is set (step 106).

この設定操作に応じて検証装置(20)の内部ては、1
ステツプ毎に検証したい出力情報を前出力情報格納エリ
ア(31)に初期値として入れ(ステップ131 ) 
、次いて1スキャンの処理を実行する(ステップ111
〜114)。続いてこれらの処理によって得らねたPC
の出力情報エリア(13)の内容を読み出して検証装置
(20)の現出力情報格納エリア(32)に格納する(
ステップ132)。次に、現出力情報格納エリア(32
)の現出力情報と検証したい出力情報格納エリア(33
)の検証したい出力情報との論理積(AND )をとり
、現出力情報エリア(32)に書込む(ステップ133
)。次に、前出力情報格納エリア(31)の前出力情報
と現出力情報格納エリア(32)の現出力情報との排他
的論理和(EyOR)をとる(ステップ134)。その
後、この排他的論理和をとった結果か「O」か否かを判
定しくステップ135)、「O」であれは正常であるこ
とから現出力情報を前出力情報格納エリア(31)に入
れ(ステップ136 ) 、以下、従来の読み出し処理
を行なう(ステップ115〜119.111〜114)
According to this setting operation, the inside of the verification device (20) is 1
Enter the output information you want to verify for each step into the previous output information storage area (31) as an initial value (step 131).
, then executes one scan process (step 111
~114). Next, the PC that was not obtained by these processes
The contents of the output information area (13) are read out and stored in the current output information storage area (32) of the verification device (20) (
Step 132). Next, the current output information storage area (32
) current output information and the output information storage area (33
) with the output information to be verified and write it in the current output information area (32) (step 133
). Next, the exclusive OR (EyOR) of the previous output information in the previous output information storage area (31) and the current output information in the current output information storage area (32) is calculated (step 134). After that, it is determined whether the result of this exclusive OR is "O" or not (step 135). If it is "O", it is normal, so the current output information is stored in the previous output information storage area (31). (Step 136), Hereafter, conventional read processing is performed (Steps 115-119, 111-114)
.

方、ステップ(1,35)の判定で「0」以外の時には
出力状態か変化したことになり、この変化かあった番号
を検証装置(20)のCRT表示装置(27)に表示す
る(ステップ137)。次に、引き続いて処理を実行す
べすか否かを判定1/ (ステップ138)、処理を続
行する場合には従来の読み出し処理(ステップ115〜
119.111〜114)を行ないながら、1スキャン
毎の検証処理を行なう。
On the other hand, if the determination in step (1, 35) is other than "0", it means that the output state has changed, and the number corresponding to this change is displayed on the CRT display device (27) of the verification device (20) (step 137). Next, it is determined whether or not to continue processing (step 138), and if the processing is to be continued, conventional read processing (steps 115 to 115) is performed.
119 and 111 to 114), verification processing is performed for each scan.

ところで、ステップ(138)の処理はCRT表示装置
(27)の表示画面に基づいてオペレータかこれを認識
しくステップ107)、出力に変化があったことに対し
て検証を実行するか否かの指示(ステップ108)に応
じて行なう。
By the way, the process in step (138) is based on the display screen of the CRT display device (27), in which the operator recognizes this (step 107) and instructs whether or not to perform verification when there is a change in the output. (Step 108).

かかる読み出し処理がすべて終了した段階で上記の検証
処理を実行しくステップ121)、その結果を第7図に
示したようにCRT表示装置(27)に表示する。
When all such reading processes are completed, the above-mentioned verification process is executed (step 121), and the results are displayed on the CRT display device (27) as shown in FIG.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、この発明によれば、1スキャン毎
に出力情報の変化を検出し、この変化点を表示装置に表
示するようにしたので、読み出し周期間に発生する誤出
力及び指定した以外の出力番号に対する誤出力を確実に
検知できるという効果がある。
As explained above, according to the present invention, changes in output information are detected for each scan and the points of change are displayed on the display device, so that erroneous outputs that occur between readout cycles and other than specified This has the effect of reliably detecting erroneous output for the output number.

【図面の簡単な説明】[Brief explanation of drawings]

第1図はこの発明の一実施例装置を、検証対象と併せて
示したブロック図、第2図及び第3図は同実施例の動作
を説明するためのフローチャート、第4図は従来の検証
装置を、検証対象と併せて示したブロック図、第5図及
び第6図はこの検証装置の動作を説明するためのフロー
チャート、第7図はこの検証装置の動作を説明するため
の表示画面例である。 (20) :検証装置 (21)  オペレーションシステム (22)  入力情報エリア (23)・期待される出力情報エリア (24)・読み出した出力情報エリア (26) :キーボート (27) : CRT表示装置 (31):前出力情報格納エリア (32) :現出力情報格納エリア (33):検証したい出力情報格納エリアなお、図中、
同一符号は同一、又は相当部分を示す。
Fig. 1 is a block diagram showing a device according to an embodiment of the present invention together with a verification target, Figs. 2 and 3 are flowcharts for explaining the operation of the embodiment, and Fig. 4 is a conventional verification method. A block diagram showing the device together with the verification target, FIGS. 5 and 6 are flowcharts for explaining the operation of this verification device, and FIG. 7 is an example of a display screen for explaining the operation of this verification device. It is. (20): Verification device (21) Operation system (22) Input information area (23), expected output information area (24), read output information area (26): Keyboard (27): CRT display device (31) ): Previous output information storage area (32): Current output information storage area (33): Output information storage area to be verified.
The same reference numerals indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] 予め作成されたプログラムでシーケンス動作を実行する
プログラマブルコントローラに入力条件を模擬的に入力
し、設定したスキャン回数毎に前記入力条件に対する出
力情報を読み出すと共に、この読み出し動作を設定回数
実行して得られた情報と、前記入力条件に対応して期待
される出力情報とを比較して比較結果を表示装置に表示
するものにおいて、1スキャン毎に前回実行した出力情
報と今回実行した出力情報とを比較し、状態に変化があ
った時のみプログラムの実行を停止すると共に、変化点
を前記表示装置に表示することを特徴とするプログラマ
ブルコントローラの検証装置。
Input conditions are input in a simulated manner to a programmable controller that executes a sequence operation using a program created in advance, and the output information corresponding to the input conditions is read out every set number of scans, and the readout operation is executed a set number of times. In a device that compares the information that was obtained and the expected output information corresponding to the input conditions and displays the comparison result on a display device, the output information that was executed last time and the output information that was executed this time are compared for each scan. A verification device for a programmable controller, characterized in that the execution of the program is stopped only when there is a change in the state, and the point of change is displayed on the display device.
JP1150252A 1989-06-13 1989-06-13 Verifying device for programmable controller Pending JPH0314101A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1150252A JPH0314101A (en) 1989-06-13 1989-06-13 Verifying device for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1150252A JPH0314101A (en) 1989-06-13 1989-06-13 Verifying device for programmable controller

Publications (1)

Publication Number Publication Date
JPH0314101A true JPH0314101A (en) 1991-01-22

Family

ID=15492882

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1150252A Pending JPH0314101A (en) 1989-06-13 1989-06-13 Verifying device for programmable controller

Country Status (1)

Country Link
JP (1) JPH0314101A (en)

Similar Documents

Publication Publication Date Title
US5438574A (en) Program debugging device and process
JPH0314101A (en) Verifying device for programmable controller
US4807178A (en) Programmable sequence controller having indirect and direct input/output apparatus
JPH0577143A (en) Failure diagnosis device for automated line
CN111291346B (en) Test method, test device, computer equipment and storage medium
JP3315266B2 (en) Self-diagnosis status display method
JP3428235B2 (en) Self-monitoring device and self-monitoring method
JP2923788B2 (en) Screen input method
JPH01223504A (en) Sampling trace system for programmable controller
JP3466788B2 (en) Instruction sequence testing device for information processing equipment
JPH04316131A (en) Fault identifying method
JPS63201736A (en) Programming device for programmable controller
JPH0253143A (en) Pseudo fault generating system
JPH02281339A (en) Automatic evaluation system for data processor
JPH0192803A (en) Monitor display system for programmable controller
JPS62145414A (en) Data inputting method
JP2008146402A (en) Cpu unit, system processing execution method and program for making cpu unit execute the same method
JPS61283906A (en) Programmable controller
JPS63193235A (en) Inspecting method for condition code
JPH04149866A (en) Magnetic tape subsystem tester
JPH08286714A (en) Monitor device for programmable display device
JPH0242506A (en) Sequence program checking system
JPH02143302A (en) Verifying device for programmable controller
JPH0640282B2 (en) Program verification method for programmable controller
JPH03262006A (en) Input transfer method of programmable controller