JPH03246602A - Programmable controller - Google Patents
Programmable controllerInfo
- Publication number
- JPH03246602A JPH03246602A JP2043310A JP4331090A JPH03246602A JP H03246602 A JPH03246602 A JP H03246602A JP 2043310 A JP2043310 A JP 2043310A JP 4331090 A JP4331090 A JP 4331090A JP H03246602 A JPH03246602 A JP H03246602A
- Authority
- JP
- Japan
- Prior art keywords
- program
- execution
- storage unit
- programmable controller
- stores
- 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
Links
- 238000012544 monitoring process Methods 0.000 claims abstract description 23
- 238000013500 data storage Methods 0.000 claims abstract description 19
- 238000000034 method Methods 0.000 abstract description 24
- 238000004891 communication Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Testing And Monitoring For Control Systems (AREA)
- Programmable Controllers (AREA)
Abstract
Description
本発明は、プログラマブルコントローラに関するもので
ある。The present invention relates to a programmable controller.
一般に、この種のプログラマブルコントローラでは、1
スキヤンが終了した後の実行結果を監視するようにして
いる。Generally, in this kind of programmable controller, 1
The execution results are monitored after the scan is completed.
従来のプログラマブルコントローラでは、第6図に示す
ようなプログラムを実行した場合に、次のような問題が
生じる。すなわち、A段階では、入力xOがオンになる
と出力YIOがオンになり、B段階では入力XOがオン
になると出力Y10がオフになる。
したがって、1スキヤンの終了後に実行結果を監視する
従来構成では、上記プログラムについては、出力YIO
がオフになった結果が得られることになる。すなわち、
A段階において、入力xOのオンに対して、出力Y10
がオンになったにもかかわらず、出力Y10がオフにな
ったかのような監視結果が得られることになり、実際の
実行過程と監視結果とが一致しないことになる。
本発明は上記問題点の解決を目的とするものであり、実
行過程の監視を行うことで、実行状態の途中経過が把握
できるようにし、実行過程と監視結果とを一致させるよ
うにしたプログラマブルコントローラを提供しようとす
るものである。In the conventional programmable controller, when a program as shown in FIG. 6 is executed, the following problem occurs. That is, in the A stage, when the input xO is turned on, the output YIO is turned on, and in the B stage, when the input XO is turned on, the output Y10 is turned off. Therefore, in the conventional configuration in which the execution result is monitored after the completion of one scan, the output YIO of the above program is
You will get the result that the is turned off. That is,
In the A stage, when the input xO is turned on, the output Y10
Even though the output Y10 is turned on, a monitoring result will be obtained as if the output Y10 was turned off, and the actual execution process and the monitoring result will not match. The present invention aims to solve the above-mentioned problems, and provides a programmable controller that monitors the execution process so that the intermediate progress of the execution state can be grasped, and the execution process and the monitoring results are made to match. This is what we are trying to provide.
請求項1の構成では、上記目的を達成するために、プロ
グラムを格納したプログラム記憶部と、プログラムに従
って制御を実行する演算装置と、実行状態に関するデー
タを格納するデータ記憶部とを具備したプログラマブル
コントローラにおいて、監視が必要なステップの次にデ
ータ記憶部の所定領域に実行結果を格納させるステ・ン
ブを挿入しているのである。
請求項2の構成では、監視すべきステ・ンブのプログラ
ム記憶部内でのアドレスを記憶するモニタ用記憶部と、
プログラムを実行しているアドレスがモニタ用記憶部に
格納されたアドレスと一致すると実行結果をモニタ用記
憶部の所定領域に格納させるアドレス一致判定部とを付
加しているのである。
請求項3の構成では、各ステップの実行直後にデータ記
憶部から読み出したデータを格納するモニタ用記憶部を
付加しているのである。In the configuration of claim 1, in order to achieve the above object, there is provided a programmable controller comprising a program storage section storing a program, an arithmetic unit executing control according to the program, and a data storage section storing data related to the execution state. In this method, a step is inserted to store the execution result in a predetermined area of the data storage section next to the step that requires monitoring. In the structure of claim 2, a monitoring storage unit stores an address in a program storage unit of a step to be monitored;
An address matching determination section is added that stores the execution result in a predetermined area of the monitoring storage section when the address at which the program is being executed matches the address stored in the monitoring storage section. In the configuration of claim 3, a monitoring storage section is added that stores data read from the data storage section immediately after execution of each step.
上記構成によれば、いずれの構成においてもプログラム
の実行過程における所要ステップでの実行結果を記憶部
に格納するようにしているから、1スキヤンが終了した
後に、記憶部に格納された実行結果を参照すれば、プロ
グラムの実行過程の各時点での動作を正確に監視するこ
とができるのである。According to the above configuration, in either configuration, the execution results of the required steps in the program execution process are stored in the storage unit, so after one scan is completed, the execution results stored in the storage unit are stored in the storage unit. By referring to it, you can accurately monitor the operation at each point in the program execution process.
【実施例1】
プログラマブルコントローラは、基本的には、第1図に
示すように、プログラム(システムを含む)が格納され
るプログラム記憶部1と、プログラムを実行する演算装
置2と、プログラムの実行に必要なデータ、あるいは実
行中の状態や演算の中間結果を格納するデータ記憶部3
と、被制御機器などを接続する入出力部4とを備えてい
る1本実施例は、第2図に示すように、プログラム記憶
部1に格納されたプログラムのうちで、出力の監視を必
要とするステップの後に、出力結果をデータ記憶部3に
書き込むステップSo、SLを挿入しているものである
。ステップSO,Slを実行したときの結果は、データ
記憶部3内において監視用に割り当てられた監視用領域
に格納される。
このようにして、1スキヤンの間のプログラムの実行過
程で、必要箇所の実行結果がデータ記憶部3に格納され
るから、1スキヤンの終了後に入出力部4に設けた通信
ボートを介して、データ記憶部3内の監視用領域を外部
から参照すれば、各時点での出力Y10の状態を知るこ
とができるのである。
上述のように、データ記憶部3に対して出力Y10の結
果を書き込むステップSO,Slを付加することによっ
て実行過程の監視を行うようにしているから、被制御機
器の動作にはなんら影響はない。ただし、動作に変化が
ないにもかかわらず、ステップSO,Slが付加される
ことによって動作の異なるプログラムになっているかの
ような印象を使用者に与えるのが不都合である場合には
、プログラム記憶部1内に使用者が参照できない領域を
設けたり、使用者が参照できない記憶部を別途に設け、
その部分にステップSo、Slを付加するようにすれば
よい。[Embodiment 1] As shown in FIG. 1, a programmable controller basically includes a program storage unit 1 in which programs (including a system) are stored, an arithmetic unit 2 that executes the programs, and a computer that executes the programs. a data storage unit 3 that stores the data necessary for the process, or the status of execution or intermediate results of calculations;
As shown in FIG. 2, this embodiment is equipped with an input/output unit 4 for connecting controlled equipment, etc., and is configured to perform a program storing a program stored in the program storage unit 1 that requires output monitoring. After this step, steps So and SL for writing the output result into the data storage section 3 are inserted. The results obtained when steps SO and SL are executed are stored in a monitoring area allocated for monitoring within the data storage unit 3. In this way, during the program execution process during one scan, the execution results of necessary parts are stored in the data storage unit 3, so that after the completion of one scan, the execution results are transmitted via the communication port provided in the input/output unit 4. By referring to the monitoring area in the data storage section 3 from the outside, it is possible to know the state of the output Y10 at each point in time. As mentioned above, the execution process is monitored by adding steps SO and SL that write the result of output Y10 to the data storage unit 3, so there is no effect on the operation of the controlled equipment. . However, if it is inconvenient to give the user the impression that the program has a different operation due to the addition of steps SO and SL, even though there is no change in the operation, the program storage An area that cannot be referenced by the user is provided in part 1, or a storage section that cannot be referenced by the user is provided separately.
Steps So and Sl may be added to that portion.
【実施例2】
本実施例では、第3図に示すように、基本構成に対して
、モニタ用記憶部5と、アドレス一致判定部6とを付加
している。モニタ用記憶部5には、監視したいステップ
の位置のプログラム記憶部1内でのアドレスがあらかじ
め格納される。プログラムの実行を開始すると、演算装
置2はプログラム記憶部1のアドレスを順次歩進しなが
らプログラムを読み出して実行を継続する。プログラム
の実行過程において、プログラム記憶部1における実行
中のアドレスと、モニタ用記憶部5に格納されたアドレ
スとが一致するかどうかがアドレス−致判定部6によっ
て監視され、両アドレスが一致するとアドレス一致判定
部6から一致信号が出力される。演算装置2では一致信
号を受けると、その時点での出力をモニタ用記憶部5に
格納するのである。この動作は1スキヤンが終了するま
で続けられる。
以上の動作により、1スキヤンの終了時にはモニタ用記
憶部らに、所要箇所の監視結果が格納されているから、
モニタ用記憶部5の内容を参照すれば実行過程の動作を
監視できるのである。ここにおいて、モニタ用記憶部5
には監視を要する箇所のアドレスが格納されているから
、このアドレスに対応して監視結果を格納する領域を設
定しておけばよい。また、アドレス一致判定部6はハー
ドウェアを別途に設けなくとも、ソフトウェアでも実現
できるから、システムプログラムとして組み込んでおい
てもよい。Embodiment 2 In this embodiment, as shown in FIG. 3, a monitor storage section 5 and an address match determination section 6 are added to the basic configuration. The monitor storage unit 5 stores in advance the address within the program storage unit 1 of the position of the step to be monitored. When the execution of the program is started, the arithmetic unit 2 sequentially increments the addresses in the program storage section 1, reads out the program, and continues execution. During the program execution process, the address-matching unit 6 monitors whether the address being executed in the program storage unit 1 and the address stored in the monitor storage unit 5 match, and if the two addresses match, the address A coincidence signal is output from the coincidence determination section 6. When the arithmetic unit 2 receives the coincidence signal, the output at that time is stored in the monitor storage unit 5. This operation continues until one scan is completed. Through the above operations, the monitoring results of the required locations are stored in the monitor storage unit at the end of one scan.
By referring to the contents of the monitor storage unit 5, the operation of the execution process can be monitored. Here, the monitor storage unit 5
Since the address of the location that requires monitoring is stored in , it is sufficient to set an area for storing the monitoring results corresponding to this address. Further, since the address matching determination unit 6 can be realized by software without providing additional hardware, it may be incorporated as a system program.
【実施例3】
本実施例では、第4図に示すように、基本構成に対して
モニタ用記憶部5を付加した点で異なっている。モニタ
用記憶部5は、監視結果の格納のために設けられている
ものであって、実行過程の監視は以下のように行われる
。
すなわち、本実施例ではプログラムの実行手順に実行過
程の監視を行う手順が含まれるようにしているのであっ
て、各ステップでは命令の続出、解読、実行を行った直
後に、データ記憶部3からその命令に対応するデータの
読出を行い、次に、モニタ用記憶部5において命令に対
応した領域に読み出したデータを格納するのである。こ
の実行手順を縁り返して、各ステップに対応するデータ
をモニタ用記憶部5の対応アドレスに格納するのである
。
たとえば、第5図に示すプログラムであれば、味ず、r
STRT XOJを読み出して命令を解読して実行し
た後(XOを読み込む)、データ記憶部3からXOに対
応するデータを読み出す1次に、モニタ用記憶部5にお
いて、この命令に対応するアドレスに読み出したデータ
を格納し、次のステップに移ってrOUT YIOJ
を読み出すのである。
以上の動作によれば、1スキヤンが終了した後には、全
実行過程に対応するデータがモニタ用記憶部5に格納さ
れることになるがら、モニタ用記憶部5の内容を参照す
れば、実行過程を正確に把握することができるのである
。Embodiment 3 As shown in FIG. 4, this embodiment differs from the basic configuration in that a monitor storage section 5 is added. The monitor storage unit 5 is provided to store monitoring results, and the execution process is monitored as follows. That is, in this embodiment, the program execution procedure includes a procedure for monitoring the execution process, and in each step, immediately after the instructions are successively issued, decoded, and executed, data is stored from the data storage unit 3. The data corresponding to the command is read out, and then the read data is stored in the area corresponding to the command in the monitor storage section 5. This execution procedure is repeated, and data corresponding to each step is stored in the corresponding address of the monitor storage unit 5. For example, in the program shown in Figure 5, Ajizu, r
STRT After reading the XOJ, decoding and executing the instruction (reading the XO), read the data corresponding to the XO from the data storage unit 3. Next, read the data to the address corresponding to this instruction in the monitor storage unit 5. Store the data and move to the next step
is read out. According to the above operation, after one scan is completed, data corresponding to the entire execution process will be stored in the monitor storage unit 5, but if the contents of the monitor storage unit 5 are referred to, the data corresponding to the entire execution process will be stored in the monitor storage unit 5. This allows you to accurately understand the process.
本発明は上述のように、プログラムの実行過程における
所要ステップでの実行結果を記憶部に格納するようにし
ているから、1スキヤンが終了した後に、記憶部に格納
された実行結果を参照すれば、プログラムの実行過程の
各時点での動作を正確に監視することができるという利
点を有するのである。As described above, in the present invention, the execution results of required steps in the program execution process are stored in the storage unit, so that after one scan is completed, the execution results stored in the storage unit can be referred to. , it has the advantage of being able to accurately monitor the operation at each point in the program execution process.
第1図は本発明に係るプログラマブルコントローラの基
本構成を示すブロック図、第2図は本発明の実施例1を
示す概略構成図、第3図は本発明の実施例2を示すブロ
ック図、第4図は本発明の実施例3を示すブロック図、
第5図は同上における実行プログラムの一例を示す動作
説明図、第6図は従来の問題点を示す説明図である。
1・・・プログラム記憶部、2・・・演算装!、3・・
・データ記憶部、4・・・入出力部、5・・・モニタ用
記憶部、6・・・アドレス一致判定部。FIG. 1 is a block diagram showing the basic configuration of a programmable controller according to the present invention, FIG. 2 is a schematic configuration diagram showing a first embodiment of the present invention, and FIG. 3 is a block diagram showing a second embodiment of the present invention. 4 is a block diagram showing Embodiment 3 of the present invention,
FIG. 5 is an explanatory diagram of the operation of an example of the execution program in the above, and FIG. 6 is an explanatory diagram of the conventional problem. 1...Program storage unit, 2...Arithmetic unit! , 3...
- Data storage section, 4... Input/output section, 5... Monitoring storage section, 6... Address match determination section.
Claims (3)
グラムに従って制御を実行する演算装置と、実行状態に
関するデータを格納するデータ記憶部とを具備したプロ
グラマブルコントローラにおいて、監視が必要なステッ
プの次にデータ記憶部の所定領域に実行結果を格納させ
るステップが挿入されて成ることを特徴とするプログラ
マブルコントローラ。(1) In a programmable controller equipped with a program storage unit that stores a program, an arithmetic unit that executes control according to the program, and a data storage unit that stores data related to the execution state, data storage is performed next to a step that requires monitoring. 1. A programmable controller, characterized in that a step is inserted for storing an execution result in a predetermined area of a programmable controller.
グラムに従って制御を実行する演算装置と、実行状態に
関するデータを格納するデータ記憶部とを具備したプロ
グラマブルコントローラにおいて、監視すべきステップ
のプログラム記憶部内でのアドレスを記憶するモニタ用
記憶部と、プログラムを実行しているアドレスがモニタ
用記憶部に格納されたアドレスと一致すると実行結果を
モニタ用記憶部の所定領域に格納させるアドレス一致判
定部とが付加されて成ることを特徴とするプログラマブ
ルコントローラ。(2) In a programmable controller equipped with a program storage unit that stores a program, an arithmetic unit that executes control according to the program, and a data storage unit that stores data related to the execution state, the steps to be monitored are stored in the program storage unit. A monitor memory unit that stores addresses and an address match determination unit that stores the execution result in a predetermined area of the monitor memory unit when the address at which the program is being executed matches the address stored in the monitor memory unit are added. A programmable controller characterized by comprising:
グラムに従って制御を実行する演算装置と、実行状態に
関するデータを格納するデータ記憶部とを具備したプロ
グラマブルコントローラにおいて、各ステップの実行直
後にデータ記憶部から読み出したデータを格納するモニ
タ用記憶部が付加されて成ることを特徴とするプロブラ
マブルコントローラ。(3) In a programmable controller equipped with a program storage section that stores a program, an arithmetic unit that executes control according to the program, and a data storage section that stores data related to the execution state, immediately after execution of each step, the data storage section A programmable controller characterized in that a monitor storage section for storing read data is added.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2043310A JPH03246602A (en) | 1990-02-23 | 1990-02-23 | Programmable controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2043310A JPH03246602A (en) | 1990-02-23 | 1990-02-23 | Programmable controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03246602A true JPH03246602A (en) | 1991-11-05 |
Family
ID=12660229
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2043310A Pending JPH03246602A (en) | 1990-02-23 | 1990-02-23 | Programmable controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03246602A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1131004A (en) * | 1997-07-09 | 1999-02-02 | Howa Mach Ltd | Programmable controller |
-
1990
- 1990-02-23 JP JP2043310A patent/JPH03246602A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1131004A (en) * | 1997-07-09 | 1999-02-02 | Howa Mach Ltd | Programmable controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2526688B2 (en) | Programmable controller and partial execution method of sequence program | |
JPH03246602A (en) | Programmable controller | |
JPS63138403A (en) | Data transfer system | |
JPS595931B2 (en) | Address stop method for arithmetic processing system | |
JP3341061B2 (en) | Programmable controller | |
JPS6041133A (en) | Correcting method of control program | |
JPH01223504A (en) | Sampling trace system for programmable controller | |
JP2767817B2 (en) | Simulated operation method of sequencer contacts | |
JPS63249206A (en) | Programmable controller | |
JPS58221405A (en) | Programmable controller | |
JPH02125303A (en) | Programmable controller | |
JPH02183330A (en) | Data processor | |
JPH0330029A (en) | Input/output simulation device of computer | |
JPH01169504A (en) | Programmable controller | |
JPH0312747A (en) | Microprocessor diagnostic system | |
JPH04367004A (en) | Numerical controller | |
JPH01266642A (en) | Memory controller | |
JPH01232446A (en) | Program development assisting device for computer | |
JPH05150976A (en) | Microprogram rewriting method in central processing unit | |
JPH01292402A (en) | Signal referencing system for pc device | |
JPH05314081A (en) | Information processor provided with two processors | |
JPS6023367B2 (en) | Instruction change method in programmable logic controller | |
JPH02138606A (en) | Programmable controller | |
JPH07271608A (en) | Interruption generating circuit | |
JPH08263108A (en) | Programmable controller |