JP2767818B2 - Sequencer numerical simulation operation method - Google Patents

Sequencer numerical simulation operation method

Info

Publication number
JP2767818B2
JP2767818B2 JP63168294A JP16829488A JP2767818B2 JP 2767818 B2 JP2767818 B2 JP 2767818B2 JP 63168294 A JP63168294 A JP 63168294A JP 16829488 A JP16829488 A JP 16829488A JP 2767818 B2 JP2767818 B2 JP 2767818B2
Authority
JP
Japan
Prior art keywords
numerical
instruction
lock
output
input
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.)
Expired - Fee Related
Application number
JP63168294A
Other languages
Japanese (ja)
Other versions
JPH0217505A (en
Inventor
正人 藤井
拡 小島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meidensha Corp
Original Assignee
Meidensha 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 Meidensha Corp filed Critical Meidensha Corp
Priority to JP63168294A priority Critical patent/JP2767818B2/en
Publication of JPH0217505A publication Critical patent/JPH0217505A/en
Application granted granted Critical
Publication of JP2767818B2 publication Critical patent/JP2767818B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Executing Machine-Instructions (AREA)

Description

【発明の詳細な説明】 A.産業上の利用分野 この発明はシーケンサの数値模擬動作方法に関する。The present invention relates to a numerical simulation operation method of a sequencer.

B.発明の概要 この発明はシーケンサの数値模擬動作方法において、 数値ロック機能を実現するために、数値強制入力出力
命令を設定して、この数値強制入力出力命令及び元の数
値命令を数値強制入力出力テーブルに格納場所を示す番
号を付して格納し、数値強制入力出力命令実行時に元の
数値命令を実行するようにしたことにより、 突入力以外のデータを使用して数値演算ができるよう
にしたものである。
B. Summary of the Invention In the present invention, in a numerical simulation method of a sequencer, in order to realize a numerical lock function, a numerical compulsory input / output instruction is set, and the numerical compulsory input / output instruction and the original numerical instruction are numerically input. A number indicating the storage location is added and stored in the output table, and the original numerical instruction is executed when the numerical forced input / output instruction is executed, so that numerical operations can be performed using data other than sudden input. It was done.

C.従来の技術 シーケンスコントローラにはユーザプログラムの試験
やメインテナンスを目的としてロック機能(以下(強制
入力出力機能と称す)が用意されている。このロック機
能は通常、ビットデータに対するものが主であり、数値
データに対するロック機能を実現したものはなかった。
最近、シーケンスコントローラの中にも数値命令が扱え
るものが多くなり、ユーザプログラムの試験にも数値ロ
ック機能が行える必要性が高まって来た。例えば、第3
図のリレーラダー図において、メモリ演算を行う場合、
A:〔RD(ロード)〕,B:〔+(加算)〕,C〔WT(レジス
タからテーブルの転送命令)〕のどの命令でも、メモリ
の内容をロック値(以下(強制入力出力値と称す)にし
て演算させたいとき。
C. Conventional technology The sequence controller is provided with a lock function (hereinafter referred to as “forced input / output function”) for the purpose of user program testing and maintenance.This lock function is mainly for bit data. No lock function has been realized for numerical data.
Recently, the number of sequence controllers that can handle numerical instructions has increased, and the necessity of performing the numerical lock function for user program testing has increased. For example, the third
In the relay ladder diagram shown in the figure, when performing a memory operation,
A: [RD (load)], B: [+ (addition)], C [WT (register-to-table transfer instruction)], the contents of the memory are locked to a lock value (hereinafter referred to as a forced input output value). ) When you want to calculate.

また、第4図のリレーラダー図において、定数演算を
行う場合、#A〔RD〕,#B〔+〕の定数値#A,#Bを
ロック値にして演算させたいとき。
Also, in the relay ladder diagram of FIG. 4, when performing a constant operation, it is desired to perform the operation by setting the constant values #A and #B of #A [RD] and #B [+] as lock values.

D.発明が解決しようとする課題 上記のような演算を行うにおいて、従来、数値ロック
に変わるものとして、Disable機能があった。このDisab
le機能とは指定した命令の実行をしないというものであ
る。しかし、このDisable機能では数値をある値に固定
して演算することができない(単に演算を行わないとい
うものである。)問題がある。
D. Problems to be Solved by the Invention In performing the above-described operations, there has been a Disable function as an alternative to a numerical lock. This Disab
The le function does not execute the specified instruction. However, this Disable function has a problem that it is not possible to perform an operation while fixing a numerical value to a certain value (this is simply that no operation is performed).

この発明は数値ロック機能を採用したことにより、突
入力以外のデータを使用して数値演算ができるようにし
たシーケンサの数値模擬動作方法を提供することを目的
とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a method of simulating a numerical value of a sequencer in which a numerical value can be calculated using data other than the sudden input by employing a numerical value lock function.

E.課題を解決するための手段及び作用 この発明はシーケンスコントローラの試験やメンテナ
ンス時に使用されるロック機能を備えたシーケンサにお
いて、 演算命令の1つである数値命令に対して数値強制入力
出力命令を設定して数値強制入力出力テーブルに前記数
値命令と数値強制入力出力命令とを格納場所が示された
番号を付して格納し、その後、シーケンス演算を行っ
て、数値強制入力出力命令の実行時に前記数値命令を実
行処理するようにしたものである。
E. Means and Action for Solving the Problems The present invention relates to a sequencer having a lock function used at the time of testing and maintenance of a sequence controller. Set and store the numeric command and the numeric forced input / output instruction in the numeric forced input / output table with the number indicating the storage location, and then perform a sequence operation to execute the numeric forced input / output instruction. The numerical instructions are executed.

F.実施例 以下この発明の実施例を図面に基づいて説明する。F. Embodiment An embodiment of the present invention will be described below with reference to the drawings.

第1図はワードアドレス“A"の内容とワードアドレス
“B"の内容を加算した結果をワードアドレス“C"に書き
込むプログラムを示すリレーラダー図で、これらはいず
れもワードデータ(数値データ)を扱うので、演算命令
の1つである数値命令と呼ぶ。数値強制入力出力命令は
数値命令を強制入力出力するために使用する命令であ
る。数値命令を数値強制入力出力命令に置き換えること
で、数値の強制入力出力処理を実現する。
FIG. 1 is a relay ladder diagram showing a program for writing the result of adding the contents of the word address "A" and the contents of the word address "B" to the word address "C". Since it is handled, it is called a numerical instruction which is one of the operation instructions. The forcible numerical input / output instruction is an instruction used to forcibly input / output a numerical instruction. By replacing the numerical instructions with the numerical forced input / output instructions, the forced input / output processing of numerical values is realized.

この数値強制入力出力処理(以下数値ロック処理と称
す)の手順を示す。第1図に示すリレーラダー図は、数
値ロック処理前のプログラムとして図示しないメモリに
置かれている。ここで、2番目の命令(#B)を数値ロ
ック処理した場合、メモリの#Bは数値強制入力出力
(数値ロック)命令に置き換わる。その数値ロック命令
は数値ロックテーブルに格納される。この強制入力出力
処理(入力出力機能)を実現するために、数値入力出力
命令を設定して次のような手順で処理を行う。
The procedure of this numerical forced input / output processing (hereinafter referred to as numerical lock processing) will be described. The relay ladder diagram shown in FIG. 1 is stored in a memory (not shown) as a program before a numerical value lock process. Here, when the second instruction (#B) is subjected to the numerical lock processing, #B in the memory is replaced with a numerical forced input / output (numeric lock) instruction. The numerical lock instruction is stored in a numerical lock table. In order to realize this forced input / output processing (input / output function), a numerical input / output command is set and processing is performed in the following procedure.

まず、ユーザの指定に従って、第2図に示す数値ロッ
クテーブルを作成し、このテーブルに元の命令A〔R
D〕,#B〔+〕,C〔WT〕と各ロック値を以下のように
番号を付して格納する。次にユーザの指定した命令を数
値ロック命令に変更し、数値ロック命令には数値ロック
テーブルの対応アドレスを示す番号をセットする。その
後、シーケンス演算を行い、数値ロック命令が実行され
る。数値ロック命令では数値ロックテーブルに格納され
ている元の数値命令及びロック値に従って数値ロック処
理を行う。
First, a numerical lock table shown in FIG. 2 is created in accordance with the user's specification, and the original instruction A [R
D], #B [+], C [WT] and the respective lock values are numbered and stored as follows. Next, the instruction specified by the user is changed to a numerical lock instruction, and a number indicating a corresponding address of the numerical lock table is set in the numerical lock instruction. Thereafter, a sequence operation is performed, and a numerical value lock instruction is executed. In the numerical lock instruction, the numerical lock processing is performed according to the original numerical instruction and the lock value stored in the numerical lock table.

第1図に示すリレーラダー図で2番目の命令(#B)
を数値ロックする場合について述べる。ここで、数値ロ
ックのユーザは、この命令が示すワードアドレスのBを
指定値(ロック値)にして演算を実行させたいとする。
この場合、演算前にワードアドレスBをロック値に変更
して、そのまま演算するとユーザの考えている強制入力
出力動作を実現できることになる。しかし、第1図のリ
レーラダー図を実行する前に、他のラダー図が存在して
いると、第1図を実行する時にワードアドレスBの内容
はロック値と異なったものになってしまう。
The second instruction (#B) in the relay ladder diagram shown in FIG.
Is described below. Here, it is assumed that the user of the numerical lock wants to execute the operation by setting B of the word address indicated by this instruction to a designated value (lock value).
In this case, if the word address B is changed to the lock value before the operation and the operation is performed as it is, the forced input / output operation considered by the user can be realized. However, if another ladder diagram exists before executing the relay ladder diagram of FIG. 1, the contents of the word address B will be different from the lock value when executing FIG.

この問題を回避するために、この発明の数値ロック命
令実行時には、まず数値ロックテーブルに記憶されてい
るロック値をワードアドレスBに書き込む。これだけで
は、2番目の命令#Bの演算ができていないので、数値
ロックテーブルに記憶されている元の数値命令を実行す
ることにより実現できる。このことを元の数値命令を再
生し、実行すると称する。
To avoid this problem, the lock value stored in the numerical lock table is first written to the word address B when executing the numerical lock instruction of the present invention. With this alone, the operation of the second instruction #B has not been performed, so that it can be realized by executing the original numerical instruction stored in the numerical lock table. This is referred to as reproducing and executing the original numerical command.

数値ロック命令では次の処理を行う。 The following processing is performed by the numerical value lock instruction.

(1)元の数値命令のオペランドがメモリならば、メモ
リに指定ロックデータを格納して、元の数値命令を再生
し、実行する。(メモリロック) (2)元の命令のオペランドが定数ならば、元の命令の
オペランドを指定ロック値にして、その命令を実行す
る。(定数ロック) G.発明の効果 以上述べたように、この発明によれば、数値ロック機
能を設けることにより、外部からのアナログ入力をシミ
ュレートでき、これにより実入力以外のデータを使って
数値演算が可能になる。また、途中までの演算結果によ
らず、外部へ指定したアナログ量を出力できる。これら
の機能により、ユーザプログラムの効率的な試験ができ
る。
(1) If the operand of the original numerical instruction is a memory, the designated lock data is stored in the memory, and the original numerical instruction is reproduced and executed. (Memory lock) (2) If the operand of the original instruction is a constant, the operand of the original instruction is set to a specified lock value, and the instruction is executed. (Constant Lock) G. Effect of the Invention As described above, according to the present invention, by providing a numerical value lock function, an analog input from the outside can be simulated, and thereby, a numerical value can be obtained using data other than the actual input. Calculation becomes possible. In addition, the specified analog amount can be output to the outside irrespective of the calculation result in the middle. These functions enable efficient testing of the user program.

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

第1図はこの発明の一実施例を示すリレーラダー図、第
2図は数値ロックテーブルの説明図、第3図及び第4図
は従来例を説明するリレーラダー図である。 A……ロード〔RD〕、#B……定数、C……転送命令。
FIG. 1 is a relay ladder diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram of a numerical lock table, and FIGS. 3 and 4 are relay ladder diagrams for explaining a conventional example. A: Load [RD], #B: Constant, C: Transfer instruction.

フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G05B 19/05 G05B 23/02 G06F 9/32 G06F 12/14Continuation of the front page (58) Field surveyed (Int.Cl. 6 , DB name) G05B 19/05 G05B 23/02 G06F 9/32 G06F 12/14

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】シーケンスコントローラの試験やメンテナ
ンス時に使用される強制入力出力機能を備えたシーケン
サにおいて、 演算命令の1つである数値命令に対して数値強制入力出
力命令を設定して数値強制入力出力テーブルに前記数値
命令と数値強制入力出力命令とを格納場所が示された番
号を付して格納し、その後、シーケンス演算を行って、
数値強制入力出力命令の実行時に前記数値命令を実行処
理するようにしたことを特徴とするシーケンサの数値模
擬動作方法。
1. A sequencer having a forced input / output function used at the time of a test or maintenance of a sequence controller, wherein a numeric forced input / output command is set for a numeric command which is one of operation instructions and a numeric forced input / output is set. The numerical instruction and the numerical forced input / output instruction are stored in the table with the number indicating the storage location, and then the sequence operation is performed,
A numerical simulation method for a sequencer, wherein the numerical instruction is executed when the numerical compulsory input / output instruction is executed.
JP63168294A 1988-07-06 1988-07-06 Sequencer numerical simulation operation method Expired - Fee Related JP2767818B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63168294A JP2767818B2 (en) 1988-07-06 1988-07-06 Sequencer numerical simulation operation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63168294A JP2767818B2 (en) 1988-07-06 1988-07-06 Sequencer numerical simulation operation method

Publications (2)

Publication Number Publication Date
JPH0217505A JPH0217505A (en) 1990-01-22
JP2767818B2 true JP2767818B2 (en) 1998-06-18

Family

ID=15865346

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63168294A Expired - Fee Related JP2767818B2 (en) 1988-07-06 1988-07-06 Sequencer numerical simulation operation method

Country Status (1)

Country Link
JP (1) JP2767818B2 (en)

Also Published As

Publication number Publication date
JPH0217505A (en) 1990-01-22

Similar Documents

Publication Publication Date Title
JP2883784B2 (en) Microcomputer
JP2767818B2 (en) Sequencer numerical simulation operation method
JPH0221616B2 (en)
JPS63822B2 (en)
JP2767817B2 (en) Simulated operation method of sequencer contacts
US5233697A (en) PLC processor and PLC
JPS60217448A (en) Data input system
JPS5949609A (en) Programmable controller equipped with simulation performing function
JPS6148174B2 (en)
JP2961781B2 (en) Data processing device
JPH07253876A (en) Program generating device
JPS60241135A (en) Address producing system
JPH0233173B2 (en)
JPS62274303A (en) Sequence control method
JP3406410B2 (en) Test equipment for information processing equipment
JPH05297913A (en) Programmable controller
JPS59153247A (en) Debugging device
JPS63177205A (en) Programming device for programmable controller
JPS59106017A (en) Testing of input/output controller
JPH08185342A (en) Program evaluating device
JPH0264828A (en) Address trace circuit
JPH0413736B2 (en)
JPS6046747B2 (en) Initial program loading method
JPS63635A (en) Generating method for module operated by svc mode
JPH0643959A (en) Computer system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees