JP2000357004A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JP2000357004A
JP2000357004A JP11169303A JP16930399A JP2000357004A JP 2000357004 A JP2000357004 A JP 2000357004A JP 11169303 A JP11169303 A JP 11169303A JP 16930399 A JP16930399 A JP 16930399A JP 2000357004 A JP2000357004 A JP 2000357004A
Authority
JP
Japan
Prior art keywords
programmable controller
program
circuit element
comparator circuit
user program
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
JP11169303A
Other languages
Japanese (ja)
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 Ltd
Original Assignee
Hitachi 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 Ltd filed Critical Hitachi Ltd
Priority to JP11169303A priority Critical patent/JP2000357004A/en
Publication of JP2000357004A publication Critical patent/JP2000357004A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a programmable controller with which a user can freely and surely control the timing of a program change in real time. SOLUTION: Concerning the programmable controller composed of a microcomputer 6 capable of executing sequence control, a memory 1 for storing control contents as a user program and an input/output interface or bus 7 for inputting/outputting an external signal, this device is equipped with a register part 4 capable of presetting comparison conditions from the outside, a comparator circuit element 2 for outputting an interruption signal 5 at the time of condition establishment is provided separately from the microcomputer 6 and when the interruption signal 5 outputted from the comparator circuit element 2 is recognized, even while the user program is run, the microcomputer 6 temporarily stops user program processing under execution at present and executes a change condition establishment discrimination routine under RUN.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、外部の周辺機器か
ら通信により転送されるユーザプログラムを実行するこ
とにより所望のシーケンス制御を実行するプログラマブ
ルコントローラに関し、特に、ユーザプログラムを実行
中(RUN中)にそのプログラムの変更を行うことの可
能なプログラマブルコントローラに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller for executing a desired sequence control by executing a user program transferred by communication from an external peripheral device, and more particularly to executing a user program (during RUN). And a programmable controller capable of changing the program.

【0002】[0002]

【従来の技術】従来のプログラマブルコントローラ(以
下、単にPLC)では、メモリ部の一部に記憶されたユ
ーザプログラムとしてのシーケンスプログラムに従って
演算装置の制御内容を演算装置が実行しているが、その
制御内容を変更する際には、外部の周辺機器から通信機
能により転送されるユーザプログラムに書き換えること
が行われる。ところで、その際、ユーザは、通常、上記
PLCと周辺装置(パソコン等)を11RS−232C
等の通信インターフェースを介してオンライン接続し、
その周辺装置よりユーザプログラムの変更をPLCに指
示する。
2. Description of the Related Art In a conventional programmable controller (hereinafter simply referred to as "PLC"), an arithmetic unit executes control contents of an arithmetic unit according to a sequence program as a user program stored in a part of a memory unit. When the content is changed, it is rewritten to a user program transferred from an external peripheral device by a communication function. By the way, at this time, the user usually attaches the PLC and peripheral devices (such as a personal computer) to the 11RS-232C.
Online via a communication interface such as
The peripheral device instructs the PLC to change the user program.

【0003】この時、従来では、上記周辺装置よりユー
ザプログラムの変更指示を、そのキーボード等から入力
し、そして、その通信機能によりPLCに情報(変更す
るユーザプログラム)を送る。一方、これを受け取った
PLCは、直ちにそのプログラムの変更処理を行わず、
実行中のユーザプログラムを1サイクル実行し終わった
後、すなわち、一定周期のタイミングでのみ、このプロ
グラム変更処理を行っていた。なお、かかる従来のPL
Cにおけるユーザプログラムの変更の一例は、例えば、
特願平8−57431号公報などにより既に知られてい
る。
At this time, conventionally, an instruction to change the user program is input from the keyboard or the like from the peripheral device, and information (user program to be changed) is transmitted to the PLC by the communication function. On the other hand, the PLC receiving this does not immediately perform the change processing of the program,
This program change process has been performed only after one cycle of the running user program has been executed, that is, only at a certain period. Note that such a conventional PL
An example of the change of the user program in C is, for example,
It is already known from Japanese Patent Application No. 8-57431.

【0004】しかしながら、上記のような従来の技術で
は、PLCに対してそのユーザプログラムの変更を周辺
装置から指示してから、実際にPLC内のユーザプログ
ラムが変更されるまでに要する時間は、各種の条件によ
り異なる。そのため、ユーザは、ユーザプログラムの変
更タイミングを予想することが難しくなる。
However, in the above-described conventional technology, the time required from when a peripheral device instructs the PLC to change the user program to when the user program in the PLC is actually changed is various. Depends on the conditions. This makes it difficult for the user to predict the timing of changing the user program.

【0005】ところで、ユーザプログラム実行中に、そ
のプログラムを変更する場合がある。かかるユーザプロ
グラム実行中におけるプログラムの変更を行う理由とし
ては、例えば、それまでのプログラム実行結果の情報
(例えば、その制御パラメータ等)を保持しつつ、変更
後のプログラムを実行する必要があるといった理由のた
めである。また、それまでのプログラム実行結果の情報
のまま、変更後のプログラムを実行するため、現在実行
中の動作に関してどのように影響するか予想できない場
合があることによる。
In some cases, a user program is changed during execution. The reason for changing the program during the execution of the user program is, for example, the reason that it is necessary to execute the changed program while retaining information (for example, control parameters and the like) of the program execution result up to that time. For. In addition, since the changed program is executed with the information of the program execution result up to that time, there is a case that it may not be possible to predict how the operation being executed is affected.

【0006】その一例として、例えばPLCがベルトコ
トンベアを制御中においてそのプログラム変更を行った
場合、ベルトコンベアが動作したままになり、停止位置
検出信号の取り込みによる停止処理が行えないというこ
とも想定される。しかしながら、搬送中の品物を所定の
位置で停止させてからプログラム変更を実行すれば、プ
ログラム変更の影響によりベルトコンベアが動作された
ままになって品物を衝突させてしまうことにはならな
い。
As an example, it is assumed that, for example, if a program is changed while a PLC is controlling a belt cotton belt, the belt conveyor remains operating, and a stop process cannot be performed by receiving a stop position detection signal. Is done. However, if the program being changed is stopped after the article being transported is stopped at a predetermined position, the program change does not cause the belt conveyor to be operated and cause the article to collide.

【0007】そこで、例えば、特願平9−24471号
公報によれば、プログラム格納後、リアルタイムにプロ
グラムを変更でき、かつ、プログラムの変更タイミング
および変更条件を任意に指定できる制御装置が提案され
て知られている。なお、この従来の技術では、プログラ
ムの変更タイミングおよび変更条件を任意に指定できる
が、この変更タイミングや変更条件の成立は、PLC側
の動作中のプログラムの一部を新プログラムに変更する
制御装置側(すなわち、周辺装置側)において、例え
ば、特定の接点の接点入力情報や時間情報を基にして、
ソフトウェアにより判定するものである。
Thus, for example, Japanese Patent Application No. 9-24471 proposes a control device that can change a program in real time after storing the program, and can arbitrarily specify a change timing and a change condition of the program. Are known. In this prior art, the change timing and the change condition of the program can be arbitrarily specified. However, the establishment of the change timing and the change condition is performed by a control device that changes a part of the operating program on the PLC side to a new program. On the side (ie, the peripheral device side), for example, based on contact input information and time information of a specific contact,
This is determined by software.

【0008】[0008]

【発明が解決しようとする課題】すなわち、上記の従来
技術では、プログラムの変更タイミングや変更条件を任
意に指定することはできるが、この変更タイミングや変
更条件の成立は、PLCの動作中のプログラムの一部を
新プログラムに変更する制御装置側(すなわち、周辺装
置側)において、例えば、特定の接点の接点入力情報や
時間情報を基にして、ソフトウェアによって判定する。
That is, in the above-mentioned prior art, it is possible to arbitrarily designate a change timing and a change condition of a program. Is determined by software based on, for example, contact input information or time information of a specific contact on the control device side (that is, the peripheral device side) that changes a part of the program into a new program.

【0009】そのため、ユーザプログラムを編集して変
更する周辺装置側(例えば、パーソナルコンピュータ等
による)でこの変更タイミングや変更条件の成立を検出
するためには、特に、PLC側の動作を基にして条件の
成立を検出する場合、PLC側における条件(例えば、
特定の接点の接点入力情報)を周辺装置側に転送する必
要があり、これでは、やはりリアルタイムにプログラム
を変更することは困難であった。また、制御装置側の演
算装置に対する負荷が増大してしまい、これではやは
り、ユーザプログラムの変更タイミングをリアルタイム
に制御して、ユーザがプログラム変更のタイミングを自
由に制御することは難しかった。
Therefore, in order to detect the timing of the change and the satisfaction of the change condition on the peripheral device side (for example, by a personal computer or the like) which edits and changes the user program, the operation is particularly performed on the PLC side. When the satisfaction of the condition is detected, the condition on the PLC side (for example,
It is necessary to transfer the contact input information of a specific contact to the peripheral device side, and it is still difficult to change the program in real time. In addition, the load on the arithmetic unit on the control device side is increased, which again makes it difficult to control the change timing of the user program in real time, so that the user can freely control the timing of the program change.

【0010】そこで、本発明では、上記の従来技術にお
ける問題点に鑑み、ユーザにてプログラム変更のタイミ
ングを自由にかつリアルタイムに確実に制御することが
出来るプログラマブルコントローラを提供し、さらに
は、ユーザプログラムの実行中(RUN中)にプログラ
ム変更を行う際、変更するタイミングをユーザにて簡単
に行うことの可能なプログラマブルコントローラを提供
することを目的とする。
In view of the above-mentioned problems in the prior art, the present invention provides a programmable controller which allows a user to freely and reliably control the timing of program change in real time. It is an object of the present invention to provide a programmable controller which allows a user to easily perform a change timing when a program is changed during execution of a program (during RUN).

【0011】[0011]

【課題を解決するための手段】本発明によれば、上記の
本発明の目的を達成するため、シーケンス制御が実行可
能な演算装置と、前記演算装置の制御内容をユーザプロ
グラムとしてシーケンスプログラムの形で少なくともそ
の一部に記憶するメモリ部と、前記制御のための外部信
号を入出力する入出力インターフェース部とで構成され
るプログラマブルコントローラにおいて、さらに、予め
外部から比較条件が設定可能であり、かつ、前記条件が
成立した場合に前記演算装置に割込み信号を出力するコ
ンパレータ回路素子を、前記演算装置とは個別に設け、
前記演算装置は、前記コンパレータ回路素子から出力さ
れる割込み信号を認識した時には、前記ユーザプログラ
ムを実行中においても、現在実行しているユーザプログ
ラム処理を一時中止し、RUN中変更条件成立判定ルー
チンを実行し、当該RUN中変更条件成立判定ルーチン
による判定結果に従ってユーザプログラムの変更を実行
するように構成されているプログラマブルコントローラ
が提案されている。
According to the present invention, in order to achieve the above-mentioned object of the present invention, an arithmetic unit capable of executing sequence control, and a control program of the arithmetic unit as a user program in the form of a sequence program In a programmable controller composed of a memory unit storing at least a part of the memory unit and an input / output interface unit for inputting / outputting an external signal for the control, further, comparison conditions can be set from outside in advance, and A comparator circuit element that outputs an interrupt signal to the arithmetic device when the condition is satisfied, provided separately from the arithmetic device;
When the arithmetic unit recognizes the interrupt signal output from the comparator circuit element, it temporarily suspends the currently executing user program process even during the execution of the user program, and executes a RUN change condition satisfaction determination routine. There has been proposed a programmable controller configured to execute and change a user program in accordance with a result of a determination made by the RUN change condition satisfaction determination routine.

【0012】また、本発明によれば、前記したプログラ
マブルコントローラにおいて、前記コンパレータ回路素
子はレジスタ部を備えており、かつ、前記レジスタ部に
予め外部から設定された比較条件に基づいて前記条件の
比較動作を行うように構成されている。
Further, according to the present invention, in the above-mentioned programmable controller, the comparator circuit element has a register section, and the comparator circuit element compares the condition based on a comparison condition set in advance in the register section from outside. It is configured to perform an operation.

【0013】さらに、本発明によれば、前記に記載した
プログラマブルコントローラにおいて、前記コンパレー
タ回路素子は、前記レジスタ部に設定された比較条件に
基づいて前記メモリ部におけるアクセスアドレスを比較
して前記条件の比較動作を行うように構成されている。
Further, according to the present invention, in the programmable controller described above, the comparator circuit element compares an access address in the memory section based on a comparison condition set in the register section, and satisfies the condition. It is configured to perform a comparison operation.

【0014】また、本発明によれば、前記に記載したプ
ログラマブルコントローラにおいて、さらに、前記演算
装置と前記メモリ部との間にバスを設けられており、前
記コンパレータ回路素子は、前記バスを介して前記メモ
リ部のアクセスアドレスを比較するように構成されてい
る。
According to the present invention, in the programmable controller described above, a bus is further provided between the arithmetic unit and the memory unit, and the comparator circuit element is connected via the bus. The memory unit is configured to compare access addresses.

【0015】加えて、本発明によれば、前記に記載した
プログラマブルコントローラにおいて、前記コンパレー
タ回路素子のレジスタ部は、ユーザが作成するユーザプ
ログラムの専用命令に対応して設定可能であるように構
成されている。
In addition, according to the present invention, in the programmable controller described above, the register section of the comparator circuit element is configured so as to be set corresponding to a dedicated instruction of a user program created by a user. ing.

【0016】すなわち、本発明によれば、PLCの内部
メモリのアクセスアドレスを比較するハード(コンパレ
ータ回路素子)を設け、このコンパレータ回路素子2の
情報によりPLCのマイコンに割込み信号を出力し、R
UN中変更条件成立判定ルーチン(割込みソフト)を起
動し、RUN中変更条件8が成立したか否かを判別し、
もしも条件が成立していた場合には、即ユーザプログラ
ムの変更を行えるようにしたものである。
That is, according to the present invention, a hardware (comparator circuit element) for comparing the access address of the internal memory of the PLC is provided, and an interrupt signal is output to the microcomputer of the PLC based on the information of the comparator circuit element 2.
Activate the UN change condition satisfaction determination routine (interrupt software) to determine whether the RUN change condition 8 is satisfied,
If the condition is satisfied, the user program can be changed immediately.

【0017】また、本発明によれば、RUN中変更を実
行する専用命令を設け、その専用命令の実行条件をユー
ザプログラム(接点入出力情報、内部入出力情報、内部
時刻データ等の組み合せ)にて指定することが出来るよ
うにしている。
Further, according to the present invention, a dedicated instruction for executing the change during RUN is provided, and the execution condition of the dedicated instruction is set in a user program (combination of contact input / output information, internal input / output information, internal time data, etc.). Can be specified.

【0018】[0018]

【発明の実施の形態】以下、本発明の実施の形態につい
て、添付の図を参照しながら詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

【0019】図2には、本発明の一実施の形態になるプ
ログラマブルコントローラ(以下、単にPLC)10の
外観と、このPLCにより実行可能なシーケンス制御プ
ラグラムを変更するため、通信手段である、例えば、1
1RS−232C等の通信インターフェース12を介し
てオンライン接続された周辺装置(例えば、パーソナル
コンピュータ等)11とが示されている。
FIG. 2 shows an external view of a programmable controller (hereinafter simply referred to as a PLC) 10 according to an embodiment of the present invention and communication means for changing a sequence control program executable by the PLC. , 1
A peripheral device (for example, a personal computer or the like) 11 connected online via a communication interface 12 such as 1RS-232C is shown.

【0020】次に、図1は、本発明の一実施の形態にな
るPLC10の具体的なハード構成を示しており、この
図からも明らかなように、このPLC10は、基本的に
は、シーケンス制御を実行するための、例えばマイクロ
コンピュータ(以下、単にマイコン)6等による演算部
と、その一部にシーケンス制御を前記演算部が実行可能
なシーケンスプログラムとして記憶する記憶手段であ
る、例えばRAM等から構成されるメモリ部1と、これ
らの間に設けられたバス7とから構成されている。な
お、上記のマイコン6は、プラグラムに従ってこのメモ
リ部1内の所定のアドレスにアクセスしながら(図中で
は、このメモリ部1のアクセスアドレスを符号3で示
す)PLCのシーケンス制御を実行することとなる。
FIG. 1 shows a specific hardware configuration of a PLC 10 according to an embodiment of the present invention. As is apparent from FIG. A computing unit for performing control, such as a microcomputer (hereinafter simply referred to as a microcomputer) 6 or the like, and storage means for partially storing sequence control as a sequence program executable by the computing unit, such as a RAM And a bus 7 provided therebetween. The microcomputer 6 executes PLC sequence control while accessing a predetermined address in the memory unit 1 according to a program (in the figure, an access address of the memory unit 1 is indicated by reference numeral 3). Become.

【0021】さらに、図1には示しないが、外部の周辺
装置(パソコン)から通信により伝送される外部信号を
入出力するための入出力インターフェース部(11RS
−232C等の通信インターフェースが接続される端子
等)を備えており、かつ、この入出力インターフェース
部も、やはり上記バス7に接続されている。
Although not shown in FIG. 1, an input / output interface (11RS) for inputting / outputting an external signal transmitted by communication from an external peripheral device (personal computer).
And a terminal to which a communication interface such as −232C is connected), and the input / output interface unit is also connected to the bus 7.

【0022】そして、本発明では、上記の構成におい
て、さらに、ハード装置である半導体回路チップ素子か
らなるコンパレータ回路素子2が設けられており、そし
て、このコンパレータ回路素子2も、やはり、上記バス
7を介して上記マイコン6とメモリ部1との間に接続さ
れている。なお、このコンパレータ回路素子2は、上記
メモリ部1のアクセスアドレス3を比較するためのもの
であり、図からも明らかなように、このコンパレータ回
路素子2は、その一部に、予めユーザにより設定可能な
レジスタ部4を備えている。これにより、コンパレータ
2は、レジスタ部4のレジスタ値に対応するアクセスア
ドレス3を監視する。
In the present invention, in the above configuration, a comparator circuit element 2 comprising a semiconductor circuit chip element as a hardware device is further provided, and the comparator circuit element 2 is also connected to the bus 7. Is connected between the microcomputer 6 and the memory unit 1 via the. The comparator circuit element 2 is for comparing the access address 3 of the memory unit 1, and as apparent from the figure, the comparator circuit element 2 is partially set by the user in advance. A possible register unit 4 is provided. Thus, the comparator 2 monitors the access address 3 corresponding to the register value of the register section 4.

【0023】すなわち、上記メモリ部1のアクセスアド
レス3がこの設定したアドレスへの値と一致した場合、
このコンパレータ回路素子2は、上記マイコン6に対し
て条件の一致を知らせるための割込み信号5を発生させ
る。
That is, when the access address 3 of the memory unit 1 matches the value to the set address,
The comparator circuit element 2 generates an interrupt signal 5 for notifying the microcomputer 6 of a condition match.

【0024】このように、上記のPLC10の構成にお
いて、さらに、ハード装置である半導体回路チップ素子
からなるコンパレータ回路素子2を設けることにより、
PLC10側におけるプログラム変更の条件を確実かつ
迅速に判定することが可能となることから、ユーザはユ
ーザプログラムの変更タイミングをリアルタイムに制御
することが可能になる。
As described above, in the above-described configuration of the PLC 10, by further providing the comparator circuit element 2 composed of a semiconductor circuit chip element as a hardware device,
Since the program change condition on the PLC 10 side can be reliably and promptly determined, the user can control the change timing of the user program in real time.

【0025】続いて、図3は、上記コンパレータ2から
の割込み信号5を受けてからの上記マイコン6における
処理内容を示すフロー図である。なお、この処理は、上
記マイコン6が上記コンパレータ回路素子2からの割込
み信号5を認識した場合には、ユーザプログラムを実行
中であっても、これを中断して実行するものである。
FIG. 3 is a flowchart showing the processing contents of the microcomputer 6 after receiving the interrupt signal 5 from the comparator 2. When the microcomputer 6 recognizes the interrupt signal 5 from the comparator circuit element 2, this process is interrupted and executed even if the user program is being executed.

【0026】すなわち、図にも示すように、マイコン6
は上記割込み信号5(IREQ)を受け取った後、ま
ず、現在実行中のユーザプログラムを一時中断し、RU
N中変更条件成立判定ルーチン(割込みソフト)を実行
し(ステップS1)、次いで、変更条件が成立したか否
かを判定する(ステップS2)。このステップS2の判
定の結果、変更条件が成立した(すなわち、「YE
S」)と判定された場合には、上記周辺機器11から転
送されるユーザプログラム、すなわち、変更しようとす
るユーザプログラムへのプログラム変更を開始する(ス
テップS3)。そして、このプログラム変更が完了した
時点でメインルーチンへ戻る(ステップS4)こととな
る。なお、上記のステップS2での判定の結果、変更条
件が成立した(すなわち、「NO」)と判定された場合
にも、やはり、メインルーチンへ戻る(ステップS4)
こととなる。
That is, as shown in FIG.
After receiving the interrupt signal 5 (IREQ), first, the currently executing user program is temporarily suspended, and the RU
The N-time change condition satisfaction determination routine (interrupt software) is executed (step S1), and then it is determined whether the change condition is satisfied (step S2). As a result of the determination in step S2, the change condition is satisfied (that is, “YE
If "S") is determined, a program change to the user program transferred from the peripheral device 11, that is, the user program to be changed is started (step S3). When the program change is completed, the process returns to the main routine (step S4). If it is determined that the change condition is satisfied (ie, "NO") as a result of the determination in step S2, the process also returns to the main routine (step S4).
It will be.

【0027】次に、上記にそのフローを示したRUN中
変更条件成立判定ルーチンを起動する(すなわち、IR
EQを出力する)ための手段として、専用命令の一例に
ついて説明する。PLC10に対して制御内容をシーケ
ンスプログラムとして転送され、もって、PLCのシー
ケンス制御を実行可能にするユーザプログラムは、外部
の周辺装置11(パソコン)により編集可能であり、例
えばその一例として、所謂、ラダープログラムが知られ
ており、ここでは、このラダープログラムによる一例を
添付の図4により説明する。
Next, the RUN change condition satisfaction determination routine showing the above flow is started (that is, IR
An example of a dedicated instruction will be described as a means for outputting the EQ). A user program which transfers control contents to the PLC 10 as a sequence program and enables the PLC to perform sequence control can be edited by an external peripheral device 11 (personal computer). For example, as an example, a so-called ladder A program is known, and an example of the ladder program will be described with reference to FIG.

【0028】すなわち、このラダープログラムによれ
ば、ユーザは、所定の処理の(この図4の例では「EN
D」)に続いて、「RUN中変更条件成立判定ルーチ
ン」を設定し、さらに、その起動条件を、接点入出力情
報8(この例では、接点R0と接点R100)からなる
ザプログラムにより、RUN中変更条件成立判定ルーチ
ンのための専用命令9(図の破線)を設定する。なお、
起動条件である接点入出力情報に加え、さらに、内部入
出力情報、内部時刻データ等の組み合せでもよい。すな
わち、このようなラダープログラムによれば、RUN中
変更条件成立判定ルーチンの判断手段として専用命令9
をユーザに提供し、これにより、ユーザは、RUN中変
更を実行するための起動条件を、専用命令9のユーザプ
ログラム(例えば、上記接点入出力情報、内部入出力情
報、内部時刻データ等の組み合せ)により変更タイミン
グを自由に指定できることとなる。
That is, according to the ladder program, the user can execute a predetermined process (“EN” in the example of FIG. 4).
D)), a “run-time change condition satisfaction determination routine” is set, and the activation condition is further set to RUN by the program including the contact input / output information 8 (contact R0 and contact R100 in this example). A dedicated instruction 9 (broken line in the figure) for the medium change condition satisfaction determination routine is set. In addition,
In addition to the contact input / output information, which is a start condition, a combination of internal input / output information, internal time data, and the like may be used. That is, according to such a ladder program, the dedicated instruction 9 is used as a determination unit of the RUN change condition satisfaction determination routine.
Is provided to the user, whereby the user sets the start condition for executing the change during the RUN by using the user program of the dedicated instruction 9 (for example, a combination of the contact input / output information, the internal input / output information, the internal time data, etc.). ) Allows the change timing to be freely specified.

【0029】なお、上記起動条件が成立していたと判断
された場合、PLC10側においては、その時点でプロ
グラム変更を行い、条件が成立していない場合には一時
中断していたユーザプログラムの実行を再開する。
When it is determined that the above-mentioned start condition is satisfied, the PLC 10 changes the program at that time, and when the condition is not satisfied, executes the temporarily suspended user program. To resume.

【0030】なお、この図4に示す例では、接点R0と
接点R100が閉じた状態をRUN中変更条件成立判定
としている。一方、変更するユーザプログラムと共に、
上記のRUN中変更条件成立判定ルーチンを含むザプロ
グラムは、通信インターフェース12を介してオンライ
ン接続された周辺装置(例えば、パソコン等)11から
PLC10に転送される。その際、RUN中変更条件成
立判定条件である接点R0と接点R100に対応して、
PLC10側のマイコン6によってアクセスされるメモ
リ1内のアクセスアドレス3が、上記コンパレータ回路
素子2のレジスタ部4に設定されることとなる。
In the example shown in FIG. 4, the state in which the contact points R0 and R100 are closed is determined to be the satisfaction of the RUN change condition. On the other hand, along with the user program to change,
The program including the above-described RUN change condition satisfaction determination routine is transferred from the peripheral device (for example, a personal computer) 11 connected online via the communication interface 12 to the PLC 10. At this time, corresponding to the contact point R0 and the contact point R100 which are the RUN change condition satisfaction determination conditions,
The access address 3 in the memory 1 accessed by the microcomputer 6 on the PLC 10 is set in the register section 4 of the comparator circuit element 2.

【0031】[0031]

【発明の効果】以上の詳細な説明からも明らかなよう
に、本発明になるプログラマブルコントローラによれ
ば、ユーザにてプログラム変更のタイミングを自由にか
つリアルタイムに確実に制御することが出来、さらに
は、ユーザプログラムの実行中(RUN中)にプログラ
ム変更を行う際、変更するタイミングをユーザにて簡単
に行うことの可能となり、プログラマブルコントローラ
の利用分野を拡大することが可能となると共に、プログ
ラム変更の際のユーザの負担をも大幅に軽減することが
可能になるという優れた効果を発揮する。
As is clear from the above detailed description, according to the programmable controller of the present invention, the user can freely and reliably control the timing of changing the program in real time. When a program is changed during execution of a user program (during RUN), it is possible for the user to easily perform the change timing, thereby expanding the field of use of the programmable controller and improving the program change. In this case, an excellent effect that the burden on the user can be significantly reduced is exhibited.

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

【図1】本発明になるプログラマブルコントローラの内
部ハード構成の一例を示す回路図である。
FIG. 1 is a circuit diagram showing an example of an internal hardware configuration of a programmable controller according to the present invention.

【図2】上記プログラマブルコントローラのプログラム
変更のために周辺装置と接続した状態を示す図である。
FIG. 2 is a diagram showing a state where the above-mentioned programmable controller is connected to a peripheral device for program change.

【図3】本発明のプログラマブルコントローラにおける
プログラム変更時の制御フローを示すフローチャート図
である。
FIG. 3 is a flowchart showing a control flow when a program is changed in the programmable controller of the present invention.

【図4】本発明のプログラマブルコントローラにおける
ユーザプログラム変更条件成立判定条件を設定する専用
命令のラダープログラムによる一例を示す図である。
FIG. 4 is a diagram showing an example of a dedicated instruction for setting a user program change condition satisfaction determination condition in a programmable controller according to the present invention by a ladder program.

【符号の説明】[Explanation of symbols]

1 メモリ 2 コンパレータ回路素子 3 アクセスアドレス 4 レジスタ部 5 割込み信号 6 マイコン(制御部) 7 バス 1 memory 2 comparator circuit element 3 access address 4 register section 5 interrupt signal 6 microcomputer (control section) 7 bus

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 シーケンス制御が実行可能な演算装置
と、前記演算装置の制御内容をユーザプログラムとして
シーケンスプログラムの形で少なくともその一部に記憶
するメモリ部と、前記制御のための外部信号を入出力す
る入出力インターフェース部とで構成されるプログラマ
ブルコントローラにおいて、さらに、予め外部から比較
条件が設定可能であり、かつ、前記条件が成立した場合
に前記演算装置に割込み信号を出力するコンパレータ回
路素子を、前記演算装置とは個別に設け、前記演算装置
は、前記コンパレータ回路素子から出力される割込み信
号を認識した時には、前記ユーザプログラムを実行中に
おいても、現在実行しているユーザプログラム処理を一
時中止し、RUN中変更条件成立判定ルーチンを実行
し、当該RUN中変更条件成立判定ルーチンによる判定
結果に従ってユーザプログラムの変更を実行するように
構成されていることを特徴とするプログラマブルコント
ローラ。
An arithmetic unit capable of executing sequence control, a memory unit for storing at least a part of a control content of the arithmetic unit as a user program in the form of a sequence program, and an external signal for inputting the control. In a programmable controller comprising an input / output interface unit for outputting, further, a comparison condition can be set in advance from the outside, and a comparator circuit element for outputting an interrupt signal to the arithmetic unit when the condition is satisfied is provided. The arithmetic device is provided separately from the arithmetic device, and when the arithmetic device recognizes the interrupt signal output from the comparator circuit element, the user program process currently being executed is suspended even while the user program is being executed. The RUN change condition satisfaction determination routine is executed, and the RUN change condition is determined. A programmable controller configured to execute a change of a user program in accordance with a result of determination by a case satisfaction determination routine.
【請求項2】 前記請求項1に記載したプログラマブル
コントローラにおいて、前記コンパレータ回路素子はレ
ジスタ部を備えており、かつ、前記レジスタ部に予め外
部から設定された比較条件に基づいて前記条件の比較動
作を行うように構成されていることを特徴とするプログ
ラマブルコントローラ。
2. The programmable controller according to claim 1, wherein said comparator circuit element includes a register unit, and said condition comparing operation is performed based on a comparison condition set in advance in said register unit from outside. A programmable controller configured to perform the following.
【請求項3】 前記請求項2に記載したプログラマブル
コントローラにおいて、前記コンパレータ回路素子は、
前記レジスタ部に設定された比較条件に基づいて前記メ
モリ部におけるアクセスアドレスを比較して前記条件の
比較動作を行うように構成されていることを特徴とする
プログラマブルコントローラ。
3. The programmable controller according to claim 2, wherein the comparator circuit element comprises:
A programmable controller configured to compare an access address in the memory unit based on a comparison condition set in the register unit and perform a comparison operation of the condition.
【請求項4】 前記請求項3に記載したプログラマブル
コントローラにおいて、さらに、前記演算装置と前記メ
モリ部との間にバスを設けられており、前記コンパレー
タ回路素子は、前記バスを介して前記メモリ部のアクセ
スアドレスを比較するように構成されていることを特徴
とするプログラマブルコントローラ。
4. The programmable controller according to claim 3, further comprising a bus provided between said arithmetic unit and said memory unit, wherein said comparator circuit element is connected to said memory unit via said bus. A programmable controller configured to compare the access addresses of the programmable controllers.
【請求項5】 前記請求項2に記載したプログラマブル
コントローラにおいて、前記コンパレータ回路素子のレ
ジスタ部は、ユーザが作成するユーザプログラムの専用
命令に対応して設定可能であるように構成されているこ
とを特徴とするプログラマブルコントローラ。
5. The programmable controller according to claim 2, wherein the register section of the comparator circuit element is configured to be set in accordance with a dedicated instruction of a user program created by a user. Features a programmable controller.
JP11169303A 1999-06-16 1999-06-16 Programmable controller Pending JP2000357004A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11169303A JP2000357004A (en) 1999-06-16 1999-06-16 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11169303A JP2000357004A (en) 1999-06-16 1999-06-16 Programmable controller

Publications (1)

Publication Number Publication Date
JP2000357004A true JP2000357004A (en) 2000-12-26

Family

ID=15884037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11169303A Pending JP2000357004A (en) 1999-06-16 1999-06-16 Programmable controller

Country Status (1)

Country Link
JP (1) JP2000357004A (en)

Similar Documents

Publication Publication Date Title
KR950005217B1 (en) Clock signal control method and data processing system
KR920006826A (en) Programmable Controller and Manufacturing Method
US20060053350A1 (en) Semiconductor circuit device and method of detecting runaway
JP2000357004A (en) Programmable controller
JPH10333789A (en) Computer
JPH10207586A (en) Power-off control system for computer
JP2000029719A (en) Interrupt controller
JPS603217B2 (en) Memory dump startup method
KR100302566B1 (en) Apparatus for interpreting SFC in a control system
JPH0635757A (en) Abnormality detector of cpu
JPH1083232A (en) Automatic power-off method and information processor using the same
JPH0573296A (en) Microcomputer
JPH06119087A (en) Power supply off system
JPH0589049A (en) Command executing device
CN110764818A (en) Method and device for automatically switching Swagger, computer equipment and storage medium
JP2716274B2 (en) In-circuit emulator
JPH0628067A (en) Information apparatus
JPS6027419B2 (en) interrupt control device
JPH05324495A (en) Input/output monitor system
JPH02137054A (en) Information processor
JPH02125303A (en) Programmable controller
JPH0651826A (en) Teaching device for robot
JP2001216005A (en) Programmable controller
JPH0588794A (en) System for controlling automatic display off function
JPH04195316A (en) Power saving circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051107

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20051107

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20051107

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080731

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080805

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090407