JP2943434B2 - Programmable controller - Google Patents
Programmable controllerInfo
- Publication number
- JP2943434B2 JP2943434B2 JP21681091A JP21681091A JP2943434B2 JP 2943434 B2 JP2943434 B2 JP 2943434B2 JP 21681091 A JP21681091 A JP 21681091A JP 21681091 A JP21681091 A JP 21681091A JP 2943434 B2 JP2943434 B2 JP 2943434B2
- Authority
- JP
- Japan
- Prior art keywords
- action
- execution
- program
- data
- memory
- 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 - Lifetime
Links
Landscapes
- Programmable Controllers (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、迅速な非実行処理を実
現するプログラマブル・コントローラに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller for realizing quick non-execution processing.
【0002】[0002]
【従来の技術】従来より、プログラマブル・コントロー
ラ(以下、PCと記載する)は、作業現場等における様
々な物量的情報(例えばベルトコンベアの出口を通過し
た製品が所定数量に達した、すなわち受口にある転送用
バケット等が一杯になった)、或いは論理的情報(例え
ば裁断機が稼動中であることを示しているときに危険領
域を走査するセンサが移動物を検出した)等に対応して
所定の出力制御(シーケンス制御)を行うようにプログ
ラミングできるようになっている。通常、工程の進行状
況、作業手順等の現場の態様は流動的なものである。こ
のため、作業現場のシーケンス制御の手順は、元来、初
めから仕様が決められるわけのものではなく、PCの試
運転中であれ実際の運転中であれ、現場の実情に合わせ
て変更や修正を絶えず繰り返すことのよって決められて
行く。このためPCには、これらの変化に容易に対処で
きるように、必要な制御要素が全て内蔵され、それらの
制御要素を組み合せて1つの出力を決定する複数の処理
要素が予め設定されていて、現場では、ユーザプログラ
ムによって、その中からいずれか1つの処理を選択し実
行させることを繰り返し行って、シーケンス制御を行う
というものが多い。2. Description of the Related Art Conventionally, a programmable controller (hereinafter abbreviated as a PC) has been used for various physical information at a work site or the like (for example, when the number of products passing through an outlet of a belt conveyor reaches a predetermined quantity, ie, a receiving port). Or the logical information (for example, a sensor that scans the danger area when the cutting machine is in operation detects a moving object), or the like. Can be programmed to perform predetermined output control (sequence control). Normally, the on-site aspects such as the progress of the process and the work procedure are fluid. For this reason, the sequence of the sequence control at the work site was not originally determined from the beginning, and changes and corrections were made according to the actual conditions of the site, whether during PC trial operation or actual operation. It is decided by the constant repetition. For this reason, the PC incorporates all necessary control elements so that these changes can be easily dealt with, and a plurality of processing elements that determine one output by combining those control elements are set in advance. In many cases, sequence control is performed at a site by repeatedly selecting and executing one of the processes from a user program.
【0003】上記PCのプログラミングの記述は、従来
コンピュータに関してはハードウエア、ソフトウエア共
に疎遠であった現場の人々が、抵抗なく且つ容易に制御
プログラムを構築できるようにするというPC開発当初
からの目的に基づいて、通常は、コンピュータプログラ
ミングとは全く異なる記述形式を伴う。すなわち、PC
化以前に現場で用いられていた接点(リミットスイッ
チ)やコイル(リレー)のシンボルマークによる展開接
続図(リレー回路図)と同様のものが用いられる。PC
では、上記のように記述されたプログラムは機械語に翻
訳され、ワード単位のビット情報となって、RAM等の
プログラム格納メモリにアドレス順に順次書き込まれ
る。PCは、クロック信号でカウントされるアドレスカ
ウンタにより、上記プログラムをアドレス順に逐次読み
出し、デコーダで解析し、その解析された信号に基づい
てデータメモリから対応するデータを読み出し、論理演
算を行うということを繰り返して1個の出力信号を決定
する。その出力信号はデータメモリの出力データ領域に
書き込まれた後、出力部に読み出されてシーケンス制御
の出力信号となる。すなわち、これが従来のリレー回路
の最終出力と同じものとなる。そして、PCは上記動作
を繰り返す。[0003] The above description of the programming of the PC is an object from the beginning of the development of the PC to enable people in the field who were distant in hardware and software in the related art to easily build a control program without difficulty. , Usually involves a completely different description format than computer programming. That is, PC
The same thing as the development connection diagram (relay circuit diagram) using the symbol mark of the contact (limit switch) or coil (relay) used in the field before the change is used. PC
Then, the program described above is translated into a machine language, and is written as bit information in word units in a program storage memory such as a RAM in order of addresses. The PC sequentially reads the programs in the order of addresses by an address counter counted by a clock signal, analyzes the programs by a decoder, reads corresponding data from a data memory based on the analyzed signals, and performs a logical operation. One output signal is determined repeatedly. The output signal is written to the output data area of the data memory and then read out to the output section to become an output signal for sequence control. That is, this is the same as the final output of the conventional relay circuit. Then, the PC repeats the above operation.
【0004】また、PCのプログラム記述方法について
は、近年、SFC(Sequencial Functiont Chart)とい
う国際規格(IEC SC65A/WG6)の記述形式が知られて
いる。図9(a)は、このSFCのプログラム記述の構成
概念図である。同図に示すように、プログラムは、ST
EPと呼ばれる記述部とTRANSITIONと呼ばれ
る記述部とがリンクによって接続され、交互にS0,T
N0,S1,TN1,S2,・・・と配列されている。
PCは、TRANSITIONがオンであれば続くST
EPを選択し、TRANSITIONがオフであれば続
くSTEPを非選択と判別する。[0004] As for a method of describing a program on a PC, a description format of an international standard (IEC SC65A / WG6) called SFC (Sequential Functiont Chart) has recently been known. FIG. 9 (a) is a conceptual diagram of the configuration of the SFC program description. As shown in FIG.
A description section called EP and a description section called TRANSITION are connected by a link, and are alternately S0, T
N0, S1, TN1, S2,...
The PC continues ST if TRANSITION is on.
EP is selected, and if TRANSITION is OFF, the next STEP is determined to be non-selected.
【0005】同図(b) に、TRANSITION(TN
0,TN1)及びSTEP(S0,S1,S2)のプロ
グラム記述例を示す。各TRANSITIONのオン/
オフは、各TRANSITIONプログラムの論理演算
の結果の出力値TN0,TN1により決定される。例え
ばTRANSITION(A)の出力値TN0がオンで
あれば、STEP(D)が選択され、TRANSITI
ON(B)の出力値TN1がオフであれば、STEP
(E)は非選択となる。1個のSTEP内には、複数の
ACTIONがあり、1つのACTIONは、結果とし
て1つの出力又は命令語を伴う一連の論理演算を行う多
数の命令からなる。そして、ACTIONの先頭には、
そのステップ内のACTIONの実行タイミングを指示
するACTION−QUALIFIERSが記述され
る。この指示によって、選択されたACTIONが実行
され、選択されないACTIONは非実行となる。FIG. 1B shows a TRANSITION (TN).
0, TN1) and STEP (S0, S1, S2). ON / OFF of each TRANSITION
The OFF state is determined by the output values TN0 and TN1 of the result of the logical operation of each TRANSITION program. For example, if the output value TN0 of TRANSITION (A) is ON, STEP (D) is selected, and TRANSITION (A) is selected.
If the output value TN1 of ON (B) is off, STEP
(E) is not selected. Within a single STEP, there are a plurality of ACTIONs, each of which consists of a number of instructions that perform a series of logical operations with a single output or instruction word. And at the beginning of the ACTION,
ACTION-QUALIFIERS indicating the execution timing of ACTION in the step is described. By this instruction, the selected ACTION is executed, and the unselected ACTION is not executed.
【0006】図10に、そのACTION−QUALI
FIERSの記述例を示す。図11は、上記のように記
述されたプログラムが機械語に翻訳されプログラム・メ
モリに格納された場合の配置を模式的に示したものであ
る。このようなSFC記述に基づくプログラムも、従来
同様にプログラム・メモリから逐次読み出されて演算が
実行される。同図において、PCは、先ず、センサ等か
ら自動入力するオン/オフ・データ、またはスイッチ等
から手動入力するオン/オフ・データに基づいてTRA
NSITION詳細群のプログラムを実行し、上述のよ
うに各TRANSITIONのオン/オフ情報を出力す
る。次にSTEP移行プログラム群を実行し、上記オン
/オフ情報に基づくSTEP移行指示情報(選択情報)
を出力する。同図のSTEP移行プログラム群の例で
は、TRANSITION(TN0)がオンであればS
TEP(S0)からSTEP(S1)へ、TRANSI
TION(TN1)がオンであればSTEP(S1)か
らSTEP(S2)へと移行指示が出力される。続いて
ACTION−QUALIFIERSプログラム群を実
行し、各ACTIONの実行タイミング出力する。この
実行タイミングと上記移行指示とに基づいて、ACTI
ON詳細群のプログラム(C),(D),(E)・・・
を順次読み出しては実行、又は非実行として処理し、A
CTION詳細群の終点に到る。ここから、再びTRA
NSITION詳細群のプログラムに戻り、入力される
データ(情報)に基づいて各TRANSITIONのオ
ン/オフ情報を出力する演算を行うということを繰り返
す。FIG. 10 shows the ACTION-QUALILI.
The description example of FIERS is shown. FIG. 11 schematically shows an arrangement when the program described above is translated into a machine language and stored in a program memory. Such a program based on the SFC description is also sequentially read from the program memory and executed in the same manner as in the related art. In the figure, the PC first performs TRA based on on / off data automatically input from a sensor or the like or on / off data manually input from a switch or the like.
The program of the NSITION detail group is executed, and the ON / OFF information of each TRANSITION is output as described above. Next, a STEP transition program group is executed, and STEP transition instruction information (selection information) based on the ON / OFF information is provided.
Is output. In the example of the STEP transfer program group shown in FIG. 11, if TRANSITION (TN0) is on, S
From TEP (S0) to STEP (S1), TRANSI
If TION (TN1) is on, a transition instruction is output from STEP (S1) to STEP (S2). Subsequently, the ACTION-QUALIFIERS program group is executed, and the execution timing of each ACTION is output. Based on this execution timing and the shift instruction, the ACTI
ON detail group programs (C), (D), (E) ...
Are sequentially read and processed as execution or non-execution.
It reaches the end point of the CION detail group. From here, TRA again
Returning to the program of the NSITION detail group, the operation of outputting ON / OFF information of each TRANSITION based on the input data (information) is repeated.
【0007】一般に上記1巡の処理を1スキャンとい
う。PCの演算処理に標準的な汎用マイクロプロセッサ
を用いた場合、各アクション(ACTION)の実行、
非実行に要する時間はほぼ同時間とみて大きな違いはな
い。これは、非実行の場合もそのプログラムを順次読み
出して、演算によりそのプログラムが非実行であること
を判断しているためである。したがって、1スキャンに
要する時間はほぼ一定とみてよく、例えば、1スキャン
のプログラムメモリ内に50個のアクションが存在し、
1アクション内に平均100個の命令が存在するとし、
実行、非実行に要する時間をTとし、TRANSITI
ON詳細群、STEP移行プログラム群、及びACTI
ON−QUALIFIERSプログラム群の演算処理時
間を合計してKとすれば、1スキャンに要する時間は1
00T×50+Kで表すことができる。[0007] Generally, the one round of processing is called one scan. When a standard general-purpose microprocessor is used for the arithmetic processing of the PC, execution of each action (ACTION),
The time required for non-execution is almost the same and there is no significant difference. This is because the program is sequentially read even in the case of non-execution, and it is determined by operation that the program is not executed. Therefore, it can be considered that the time required for one scan is almost constant. For example, there are 50 actions in the program memory of one scan,
Assuming that there are an average of 100 instructions in one action,
T is the time required for execution and non-execution, and
ON detail group, STEP transfer program group, and ACTI
If the total of the processing time of the ON-QUALIFIERS program group is defined as K, the time required for one scan is 1
It can be represented by 00T × 50 + K.
【0008】このように、PCは、1スキャン毎にトラ
ンジション(TRANSITION)で選択されたステ
ップ(STEP)のACTION−QUALIFIER
Sで選択されたアクションを実行する。そして、現在発
生した入力情報に基づいて予め設定された多数の制御条
件の中から適応する制御を行うというシーケンス制御の
性質上、上記1スキャンで選択されるアクションは、多
数用意されている中の1乃至数個のアクションであり、
残る他の多くのアクションは選択されず非実行となる。As described above, the PC performs the ACTION-QUALIFIER of the step (STEP) selected by the transition for each scan.
Execute the action selected in S. Then, due to the nature of sequence control in which adaptive control is performed from among a large number of preset control conditions based on currently generated input information, a large number of actions selected in one scan are prepared. One or several actions,
Many other actions that remain are not selected and are not performed.
【0009】[0009]
【発明が解決しようとする課題】ところで、PCが、い
ま1スキャンで1つのアクションのみを選択したたとす
れば、PCが制御実行のために実効ある演算に費やした
時間は100×T(1アクションの演算時間)+Kであ
り、1スキャン中の残りの時間100×T×49は制御
に直接関係が無く無駄な時間となって問題が残る。By the way, if the PC selects only one action in one scan, the time that the PC spends on an effective operation for executing the control is 100 × T (one action). Is the calculation time) + K, and the remaining time 100 × T × 49 during one scan is a wasteful time because there is no direct relation to the control and a problem remains.
【0010】近年、PCで制御する現場の状態は従来の
ように単純ではなく、自動化に応じて制御する条件も多
種多様となり、その分1スキャンに用意すべきアクショ
ンも増加する必要があるが、上述したように、1スキャ
ンに要する時間がアクションの実行、非実行に係わりな
く一定であるので、アクションを増加すれば1スキャン
の時間も増加し、必要な制御出力のタイミングが時間的
に適応できない恐れがでてくる。また、制御条件が同じ
であっても、自動化などによって現場の作業スピードが
向上すれば、やはり制御出力が時間的に間に合わない恐
れが出てくる。In recent years, the condition of a site controlled by a PC is not as simple as in the past, and the conditions to be controlled in accordance with the automation are also various, and the actions to be prepared for one scan must be increased accordingly. As described above, the time required for one scan is constant irrespective of the execution or non-execution of an action. Therefore, if the number of actions is increased, the time of one scan is also increased, and the timing of a required control output cannot be adapted in time. Fear comes out. Further, even if the control conditions are the same, if the work speed at the site is improved by automation or the like, there is a possibility that the control output may not be enough in time.
【0011】本発明の目的は、実行するプログラムのみ
をメモリから読み出し非実行のプログラムはメモリから
読み出さないようにして、1スキャンの処理を高速に行
うプログラマブル・コントローラを提供することであ
る。An object of the present invention is to provide a programmable controller which performs one scan processing at high speed by reading only a program to be executed from a memory and not reading a non-executable program from the memory.
【0012】[0012]
【課題を解決するための手段】図1は、本発明のブロッ
ク図である。本発明は、SFC(Sequencial Functiont
Chart)記述に基づいてアクションの実行または非実行
を設定して動作するプログラマブル・コントローラ1に
適用される。アクション先頭データ2は、該アクション
から次のアクションまでの命令数を設定された命令数デ
ータを予め有する。上記アクション先頭データ2は、例
えば、RAM(Random Access Memory)等に格納されたシ
ーケンスプログラムのアクションの先頭データである。
アドレス移行手段3は、上記アクションが非実行に設定
されているときはアクション先頭データの命令数データ
が示す命令数をオフセットアドレスとして次のアクショ
ンの先頭へ移行する。同手段3は、例えば、汎用プロセ
ッサ等からなる。FIG. 1 is a block diagram of the present invention. The present invention relates to an SFC (Sequential Functiont).
Chart) is applied to the programmable controller 1 which operates by setting execution or non-execution of an action based on the description. The action head data 2 has instruction number data in which the number of instructions from the action to the next action is set in advance. The action head data 2 is, for example, the head data of an action of a sequence program stored in a RAM (Random Access Memory) or the like.
When the action is set to non-execution, the address shift means 3 shifts to the head of the next action using the number of instructions indicated by the instruction number data of the action head data as an offset address. The means 3 comprises, for example, a general-purpose processor.
【0013】記憶手段2は、アクションの先頭から次の
アクションまでの命令数を設定されたアクション先頭デ
ータを記憶する。同手段2は、例えば、RAM(Random
Access Memory)等からなる。The storage means 2 stores action head data in which the number of instructions from the head of an action to the next action is set. The means 2 is, for example, a RAM (Random
Access Memory).
【0014】アドレス移行手段3は、上記アクションが
非実行に設定されているときは記憶手段2に記憶された
アクション先頭データの命令数をオフセットアドレスと
して次のアクションの先頭へ移行する。同手段3は、例
えば、汎用プロセッサ等からなる。When the above action is set to non-execution, the address shift means 3 shifts to the head of the next action using the number of instructions of the action head data stored in the storage means 2 as an offset address. The means 3 comprises, for example, a general-purpose processor.
【0015】[0015]
【作用】本発明では、アドレス移行手段3が、非実行に
設定されているアクションの、アクション先頭データに
記憶されたアクションの先頭から次のアクションまでの
命令数をオフセットアドレスとして、次のアクションの
先頭へ移行する。According to the present invention, the address transfer means 3 sets the offset address to the number of instructions from the head of the action stored in the action head data to the next action of the action set as non-executable. Move to the top.
【0016】したがって、非実行のプログラムをメモリ
から読み出すことがなくなり、1スキャンの処理を高速
に行うことができるようになる。Therefore, a non-executed program is not read from the memory, and one-scan processing can be performed at high speed.
【0017】[0017]
【実施例】以下、図2〜図8を参照しながら本発明の実
施例について詳細に述べる。本実施例の構成において
は、PC内に、移行条件記録メモリ22、ステップON
/OFF記録メモリ32、及びACTION実行/非実
行記録メモリ52が設けられる。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to FIGS. In the configuration of the present embodiment, the transition condition recording memory 22 and the step ON
A / OFF recording memory 32 and an ACTION execution / non-execution recording memory 52 are provided.
【0018】図2に、上記移行条件メモリ22を示す。
同図において、特には図示しないPCの汎用プロセッサ
は、プログラム・メモリに格納されたトランジション詳
細群21を順次演算し、その演算結果として出力した各
トランジションのオン/オフ・データ、すなわち「0」
または「1」となっているビット・データを、移行条件
メモリ22に順次書き込む。FIG. 2 shows the transition condition memory 22.
In the figure, a general-purpose processor of a PC (not shown) sequentially calculates the transition detail group 21 stored in the program memory, and outputs on / off data of each transition output as the calculation result, that is, “0”.
Alternatively, the bit data of “1” is sequentially written to the transition condition memory 22.
【0019】図3には、ステップON/OFF記録メモ
リ32を示す。汎用プロセッサは、プログラム・メモリ
に格納されたステップ移行プログラム群31を、上記移
行条件メモリ22に書き込まれた各トランジションのオ
ン/オフ・データに基づいて順次演算し、その演算結果
として出力した各ステップ移行プログラムのオン/オフ
・データをステップON/OFF記録メモリ32に順次
書き込む。FIG. 3 shows the step ON / OFF recording memory 32. The general-purpose processor sequentially computes the step transition program group 31 stored in the program memory based on the on / off data of each transition written in the transition condition memory 22, and outputs each step outputted as the computation result. The on / off data of the transition program is sequentially written into the step ON / OFF recording memory 32.
【0020】図4は、上記移行条件記録メモリ22及び
ステップON/OFF記録メモリ32と、SFC記述4
1との関係を示したものである。同図に示すように、S
FC記述41においては、演算が記述の流れに従って順
次行われて、その演算結果が逐次出力されるように記述
されるが、実際のプログラムにおいては、先ず、移行条
件演算がまとめて行われて、その結果が移行条件記録メ
モリ22に書き込まれる。そして、次にステップ・オン
/オフ条件がまとめて演算され、その演算結果がステッ
プON/OFF記録メモリ32に書き込まれる。FIG. 4 shows the transition condition recording memory 22 and the step ON / OFF recording memory 32 and the SFC description 4
This shows the relationship with 1. As shown in FIG.
In the FC description 41, calculations are sequentially performed in accordance with the flow of the description, and the calculation results are described so as to be sequentially output. However, in an actual program, first, transition condition calculations are collectively performed, The result is written to the transition condition recording memory 22. Then, the step ON / OFF conditions are collectively calculated, and the calculation result is written to the step ON / OFF recording memory 32.
【0021】図5に、ACTION実行/非実行記録メ
モリ52を示す。汎用プロセッサは、プログラム・メモ
リに格納されたアクション・クォリファイア・プログラ
ム群51を、上記ステップON/OFF記録メモリ32
に書き込まれたステップ・オン/オフ条件に基づいて順
次演算し、その演算結果として出力した各アクション・
クォリファイアのオン/オフ・データを、ACTION
実行/非実行記録メモリ52に順次書き込む。FIG. 5 shows the ACTION execution / non-execution recording memory 52. The general-purpose processor stores the action qualifier program group 51 stored in the program memory in the step ON / OFF recording memory 32.
Each action is calculated sequentially based on the step on / off conditions written in
The qualifier on / off data is stored in ACTION
The data is sequentially written to the execution / non-execution recording memory 52.
【0022】図6は、上述の移行条件記録メモリ22、
ステップON/OFF記録メモリ32及びACTION
実行/非実行記録メモリ52と、SFC記述41′との
関係を示したものである。FIG. 6 shows the above-mentioned transition condition recording memory 22,
Step ON / OFF recording memory 32 and ACTION
The relationship between the execution / non-execution recording memory 52 and the SFC description 41 'is shown.
【0023】このようにして、プログラム・メモリの後
尾に一括して格納されているACTION詳細群のアク
ション・プログラムの実行/非実行が選択されるように
なっている。In this way, the execution / non-execution of the action program of the ACTION detail group stored collectively at the end of the program memory is selected.
【0024】図7に、本発明の特徴である各アクション
の先頭に配置されるアクション先頭データの構成を示
す。同図に示すように、アクション先頭データは、これ
がアクションの先頭であることを示すヘッダー部と命令
部からなるセクション71及び次のアクション先頭デー
タまでの命令数を示すオペランド部72で構成される。FIG. 7 shows the structure of action head data arranged at the head of each action, which is a feature of the present invention. As shown in the figure, the action head data is composed of a section 71 including a header part indicating that this is the head of the action and an instruction part, and an operand part 72 indicating the number of instructions up to the next action head data.
【0025】上記構成において、汎用プロセッサによる
プログラム・メモリに格納されたアクション詳細群の処
理の動作を、図8に示すフローチャートを用いて説明す
る。この処理は、上述したプログラム・メモリに格納さ
れたトランジション詳細群21、ステップ移行プログラ
ム群31、及びアクション・クォリファイア・プログラ
ム群51を順次演算処理して、その演算結果の出力を、
それぞれの出力に対応する図6に示す各メモリ領域に書
き込んだ後、各アクション毎に順次開始される。The operation of the general-purpose processor for processing the detailed action group stored in the program memory in the above configuration will be described with reference to the flowchart shown in FIG. In this process, the transition detail group 21, the step shift program group 31, and the action qualifier program group 51 stored in the above-described program memory are sequentially processed, and the output of the calculation result is output.
After writing in each memory area shown in FIG. 6 corresponding to each output, it is sequentially started for each action.
【0026】図8のフローチャートにおいて、汎用プロ
セッサは、アクション先頭データを読み出すと共に、A
CTION実行/非実行記録メモリ52から、いま読み
出した先頭データのアクションに対応する実行指示ビッ
ト情報(オン/オフ情報)を読み出し、その読み出した
ビット情報がオンとなっているか否か判別する(ステッ
プS81)。これにより、ACTION実行/非実行記
録メモリ52のビット情報に基づいて、いま読み出した
先頭データのアクションが実行するものであるか又は非
実行となるものであるかが決定される。In the flowchart of FIG. 8, the general-purpose processor reads out the action head data and
The execution instruction bit information (on / off information) corresponding to the action of the head data that has just been read is read from the CION execution / non-execution recording memory 52, and it is determined whether or not the read bit information is turned on (step). S81). Thereby, based on the bit information of the ACTION execution / non-execution recording memory 52, it is determined whether the action of the currently read head data is to be executed or not to be executed.
【0027】そして、ビット情報がオンとなっていれ
ば、いま読み出したアクション先頭データに続くアクシ
ョン命令を実行して処理を終わる(ステップS82)。
これにより、上記トランジション詳細群21からアクシ
ョン・クォリファイア・プログラム群51までの演算処
理で実行が決定されているアクションの演算が実行され
る。If the bit information is ON, the action instruction following the currently read action head data is executed, and the process ends (step S82).
As a result, the operation of the action determined to be executed in the arithmetic processing from the transition detail group 21 to the action qualifier program group 51 is executed.
【0028】一方、上記ステップS81で、ビット情報
がオフとなっていれば、いま読み出した先頭データのオ
ペランド部72により示される数を、現在のアドレス・
データに加算して次のアドレス・データを作成し、その
アドレスに移行して処理を終わる(ステップS83)。
これにより、上記トランジション詳細群21からアクシ
ョン・クォリファイア・プログラム群51までの演算処
理で非実行とされたアクションは、プログラム格納メモ
リから読み出されることなく、直ちに次のアクションの
実行/非実行の判別が行われる。On the other hand, if the bit information is turned off in step S81, the number indicated by the operand section 72 of the head data just read is replaced by the current address
The data is added to the data to create the next address data, and the process proceeds to that address to end the process (step S83).
As a result, an action that has been made non-executed in the arithmetic processing from the above-mentioned transition detail group 21 to the action qualifier program group 51 is not immediately read out from the program storage memory, and the execution / non-execution of the next action is immediately determined. Is performed.
【0029】上述したように、本実施例では、図8のス
テップS81、S82又はS83の処理が、アクション
毎に繰り返され、非実行となっているアクションは、プ
ログラム格納メモリから読み出されることがなく、直ち
に次のアクションに処理が移行する。したがって、例え
ば1スキャンで実行されるアクションが1個のみの場
合、例えばプログラム格納メモリ内に50個のアクショ
ン・プログラムが存在し、1つのアクション・プログラ
ムが平均100個の命令からなるものとすれば、命令の
実行又はアクションの移行に要する時間をTとし、トラ
ンジション詳細群からアクション・クォリファイア・プ
ログラム群までの演算処理時間をKとして、1スキャン
に要する時間は「100(実行)×T+49(移行)×
T+K」すなわち「149T+K」で表すことができ
る。これを、従来通りに、非実行のアクションも順次命
令を読み出してNOP(Non Operation) 処理を行った場
合「100(実行)×T+100(NOP)×T×49
+K」すなわち「5000T+K」となるのに比較し
て、「(5000T+K)−(149T+K)」すなわ
ち「4851T」もの時間が短縮される。As described above, in this embodiment, the processing of step S81, S82 or S83 in FIG. 8 is repeated for each action, and the non-executed action is not read out from the program storage memory. Then, the process immediately shifts to the next action. Therefore, for example, when only one action is executed in one scan, for example, if there are 50 action programs in the program storage memory, and one action program consists of an average of 100 instructions, Assuming that the time required for executing an instruction or shifting an action is T, the calculation processing time from the transition detail group to the action qualifier program group is K, and the time required for one scan is “100 (execution) × T + 49 (migration) ) ×
T + K ”, that is,“ 149T + K ”. In the same manner as in the prior art, when a non-executed action is sequentially read out from an instruction and subjected to NOP (Non Operation) processing, “100 (execution) × T + 100 (NOP) × T × 49”
+ K ”, that is,“ 5000T + K ”, compared to“ (5000T + K) − (149T + K) ”, that is,“ 4851T ”.
【0030】[0030]
【発明の効果】本発明によれば、実行するプログラムの
みをメモリから読み出し非実行のプログラムはメモリか
ら読み出さないようにできるので、1スキャンの処理を
高速に行うことが可能となる。したがって、アクション
の数を増加しても処理時間が長くなることがなく、より
複雑な制御を構築することができる。また、作業スピー
ドの向上にも十分追随できる。さらに、短縮された時間
を利用して、汎用プロセッサに、割り込みにより制御の
演算処理以外の処理をさせることもでき、多様な制御方
式を構成することが可能となる。According to the present invention, since only the program to be executed is read from the memory and the non-executable program is not read from the memory, the processing of one scan can be performed at high speed. Therefore, even if the number of actions is increased, the processing time does not increase, and more complicated control can be constructed. In addition, it can sufficiently follow the improvement of work speed. Further, by utilizing the shortened time, the general-purpose processor can cause the general-purpose processor to perform processing other than the arithmetic processing of the control by the interruption, so that various control methods can be configured.
【図1】本発明のブロック図である。FIG. 1 is a block diagram of the present invention.
【図2】移行条件記録メモリを説明する図である。FIG. 2 is a diagram illustrating a transition condition recording memory.
【図3】ステップON/OFF記録メモリを説明する図
である。FIG. 3 is a diagram illustrating a step ON / OFF recording memory.
【図4】SFC記述とメモリとの関係を示す図である。FIG. 4 is a diagram showing a relationship between an SFC description and a memory.
【図5】ACTION実行/非実行記録メモリを説明す
る図である。FIG. 5 is a diagram illustrating an ACTION execution / non-execution recording memory.
【図6】SFC記述と各メモリとの関係を示す図であ
る。FIG. 6 is a diagram illustrating a relationship between an SFC description and each memory.
【図7】アクション先頭データの構成図である。FIG. 7 is a configuration diagram of action head data.
【図8】アクションの実行又は移行の処理を説明するフ
ローチャートである。FIG. 8 is a flowchart illustrating processing for executing or shifting an action.
【図9】従来のPCのSFC記述を説明する図である。FIG. 9 is a diagram illustrating an SFC description of a conventional PC.
【図10】従来のPCのSFC記述を説明する図であ
る。FIG. 10 is a diagram illustrating an SFC description of a conventional PC.
【図11】従来のPCのプログラム実行方法を説明する
図である。FIG. 11 is a diagram illustrating a conventional program execution method of a PC.
1 プログラマブルコントローラ 2 記憶手段 3 アドレス移行手段 DESCRIPTION OF SYMBOLS 1 Programmable controller 2 Storage means 3 Address transfer means
Claims (1)
述に基づいてアクションの実行または非実行を設定して
動作するプログラマブル・コントローラ(1) において、アクションの先頭データ(2) に該アクションの先頭から
次のアクションまでの命令数を設定した命令数データを
予め有し、 前記アクションが非実行に設定されているときは前記ア
クションの先頭データ(2) の命令数データが示す命令数
をオフセットアドレスとして次のアクションの先頭へ直
ちに移行するアドレス移行手段(3) と、 を備えたことを特徴とするプログララマブル・コントロ
ーラ。1. A SFC (Sequencial Functiont Chart) programmable controller that operates by setting the execution or non-execution of actions based on the description (1), from the beginning of the action to the head data of the action (2)
The instruction count data that sets the instruction count until the next action
Previously it has straight to the top of the next action the number of instructions indicated by the instruction number of data beginning data (2) of the A <br/> action as an offset address when the action is set to a non-execution
Program Lama Bull controller characterized by comprising an address transition means (3) to migrate to Chi, a.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21681091A JP2943434B2 (en) | 1991-08-28 | 1991-08-28 | Programmable controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21681091A JP2943434B2 (en) | 1991-08-28 | 1991-08-28 | Programmable controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0553615A JPH0553615A (en) | 1993-03-05 |
| JP2943434B2 true JP2943434B2 (en) | 1999-08-30 |
Family
ID=16694247
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP21681091A Expired - Lifetime JP2943434B2 (en) | 1991-08-28 | 1991-08-28 | Programmable controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2943434B2 (en) |
-
1991
- 1991-08-28 JP JP21681091A patent/JP2943434B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0553615A (en) | 1993-03-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4802116A (en) | Programmed controller | |
| JP2943434B2 (en) | Programmable controller | |
| EP0190358A1 (en) | System for controlling a programmable controller | |
| US4907190A (en) | Computer control system and method for effecting sequence controls and servo-controls | |
| JP3013619B2 (en) | Programmable controller | |
| EP0256149B1 (en) | Computer system | |
| JP3018814B2 (en) | Programmable controller | |
| US5148531A (en) | System for executing a conditional statement without reading program data part that does not satisfy the conditional clause | |
| JP2921228B2 (en) | Programmable controller | |
| JP3363168B2 (en) | Numerical control unit | |
| JP2970142B2 (en) | Programmable controller | |
| JP3018790B2 (en) | Programmable controller | |
| JP3018732B2 (en) | Programmable controller | |
| JP2529429B2 (en) | Programmable controller | |
| JP2005115969A (en) | Programmable controller | |
| JP2731166B2 (en) | Programmable controller | |
| JP3074809B2 (en) | Programmable controller | |
| JPH08286717A (en) | Numerical control unit | |
| JPS616704A (en) | Programmable controller | |
| JPS62162107A (en) | Program changing method for programmable controller | |
| JP3493525B2 (en) | Programmable controller | |
| JPS60241104A (en) | Arithmetic method of digital controller | |
| JPH08314509A (en) | Monitor device | |
| JPH05224919A (en) | Program execution system for microprocessor | |
| JPH04262402A (en) | Programmable controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19990525 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080625 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090625 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100625 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100625 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110625 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120625 Year of fee payment: 13 |
|
| EXPY | Cancellation because of completion of term | ||
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120625 Year of fee payment: 13 |