JP2970142B2 - Programmable controller - Google Patents
Programmable controllerInfo
- Publication number
- JP2970142B2 JP2970142B2 JP31715691A JP31715691A JP2970142B2 JP 2970142 B2 JP2970142 B2 JP 2970142B2 JP 31715691 A JP31715691 A JP 31715691A JP 31715691 A JP31715691 A JP 31715691A JP 2970142 B2 JP2970142 B2 JP 2970142B2
- Authority
- JP
- Japan
- Prior art keywords
- program
- transition
- action
- group
- programs
- 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]
【産業上の利用分野】本発明はSFC(Sequencial Fun
ctiont Chart)記述及びニーモニック表現の両方でプロ
グラミング可能なプログラマブルコントローラに関す
る。BACKGROUND OF THE INVENTION The present invention relates to an SFC (Sequencial Fun
ctiont Chart) relates to a programmable controller that can be programmed in both description and mnemonic representation.
【0002】[0002]
【従来の技術】プログラマブルコントローラ(以下、P
Cと略称する)は、例えば作業現場などにおいて、様々
な物量的情報(例えばベルトコンベアの出口を通過した
製品が所定数量に達したなどという情報)、あるいは論
理的情報(例えば裁断機が稼働中であることを示してい
るときに、危険領域を走査するセンサが移動物を検出し
たというような情報)などに対応して、出力制御(シー
ケンス制御)を行うようにプログラミングできるように
なっている。2. Description of the Related Art Programmable controllers (hereinafter referred to as P
For example, at the work site, various physical information (for example, information that the number of products that have passed through the outlet of the belt conveyor has reached a predetermined amount) or logical information (for example, when the cutting machine is operating) , It can be programmed to perform output control (sequence control) in response to information such as that a sensor that scans a dangerous area has detected a moving object). .
【0003】このようなPCのプログラム記述方法とし
ては、近年、SFCという国際規格(IEC SC65
A/WG6)の記述形式が知られている。図3(a)はこ
のSFCのプログラム記述の構成概念図であり、同図に
示すようにステップ(STEP)と呼ばれる記述部とト
ランジション(TRANSITION)と呼ばれる記述
部とがリンク(LINK)によって接続され、交互にS
20,TN21,S21,TN22,・・・と配列され
ている。そしてPCは移行条件でありトランジションが
オンであれば、続くステップを選択し、トランジション
がオフであれば続くステップを非選択と判別する。Recently, as a method of describing a program for a PC, an international standard called SFC (IEC SC65) has been proposed.
A / WG6) is known. FIG. 3A is a conceptual diagram of the structure of the SFC program description. As shown in FIG. 3A, a description portion called “STEP” and a description portion called “TRANSITION” are connected by a link (LINK). , Alternately S
20, TN21, S21, TN22,... If the transition is on and the transition is on, the PC selects the next step. If the transition is off, the PC determines that the subsequent step is not selected.
【0004】図3(b)は上記SFC記述における従来の
プログラム例を示すもので、このプログラムは、動作状
態や命令の性質などを適格に表す略記号などを使って表
現した、いわゆるニーモニック表現を用いたプログラム
記述例にて示されている。このように記述されたプログ
ラムは機械語に翻訳され、ワード単位のビット情報とな
って、RAMなどのプログラム格納メモリにアドレス順
に順次書き込まれる。FIG. 3 (b) shows an example of a conventional program in the SFC description. This program uses a so-called mnemonic expression that expresses an operation state, the nature of an instruction, and the like using appropriate abbreviations. This is shown in the program description example used. The program described in this manner is translated into a machine language, converted into word-based bit information, and sequentially written into a program storage memory such as a RAM in the order of addresses.
【0005】ところで、図3(b)のプログラムは、ステ
ップS20が活性になるとアクションのプログラム(入
力X10の内容をY110に出力)を実行したのち、移
行条件のトランジションTN21がオン(入力X1のオ
ン/オフでのこのTN21もオン/オフする)であれ
ば、次のステップS21に進む。そして、このステップ
21のアクションプログラム(入力X11の内容をY1
11に出力)を実行したのち、移行条件のトランジショ
ンがオン(入力X2のオン/オフでこのTN22もオン
/オフする)であれば、次のステップに進むという動作
を示している。The program shown in FIG. 3B executes an action program (outputs the contents of input X10 to Y110) when step S20 is activated, and then turns on transition TN21 of the transition condition (turns on input X1). If the TN 21 is turned on / off), the process proceeds to the next step S21. Then, the action program of this step 21 (the content of the input X11 is changed to Y1
11), if the transition of the transition condition is on (the TN 22 is also turned on / off by turning on / off the input X2), the operation proceeds to the next step.
【0006】すなわち、まずステップの活性/非活性を
調べて、次にアクションのプログラムを行ったのち、移
行条件をオンさせるためのプログラムを行う。そして、
次のステップに移ると、上記同様のプログラムを順番に
実行して行く。That is, first, the activation / inactivation of the step is checked, then the action program is executed, and then the program for turning on the transition condition is executed. And
In the next step, programs similar to the above are sequentially executed.
【0007】このように従来では、アクションのプログ
ラムとトランジションのプログラムとを交互にプログラ
ミングすることにより、1つの全体のプログラムが構成
されていた。As described above, conventionally, an entire program is constituted by alternately programming an action program and a transition program.
【0008】[0008]
【発明が解決しようとする課題】しかしながら、上記の
ような従来のプログラム構成では、ステップS20が活
性状態で、なおかつ平行条件プログラムのX1がオンし
ていると、ステップS21への移行が行われるが、この
ステップS21に移行する瞬間(1演算周期)だけステ
ップS20とステップS21が同時に活性状態となって
しまうことになる。この問題は移行条件がオンして移行
が終了し、移行前のステップを非活性にするよりも前
に、アクションの内容がプログラムされているために起
こるものである。However, in the conventional program configuration as described above, if step S20 is in an active state and X1 of the parallel condition program is turned on, the process proceeds to step S21. Then, only at the moment of shifting to step S21 (one operation cycle), step S20 and step S21 are simultaneously activated. This problem occurs because the contents of the action are programmed before the transition condition is turned on, the transition is completed, and the step before the transition is deactivated.
【0009】このように、連続する2つのステップ(こ
の場合はS20,S21)のアクション内容による出力
(この場合はY110,Y111)を同時にオンさせな
い方法として、従来では2つのステップS20,S21
に図4に示すように、互いのアクションの出力、つまり
ステップS20においてはステップS21のアクション
出力Y111によってインタロックをかけ、ステップS
21においては、ステップS20のアクション出力Y1
10によってインタロックをかける回路を追加する方法
を用いていた。しかし、このように回路を追加する方法
はハード構成が複雑になり好ましいものではなかった。As described above, as a method for not simultaneously turning on the outputs (in this case, Y110 and Y111) based on the action contents of two consecutive steps (in this case, S20 and S21), two steps S20 and S21 are conventionally used.
As shown in FIG. 4, the output of each other's actions, that is, in step S20, an interlock is applied by the action output Y111 of step S21,
21, the action output Y1 of step S20
The method of adding an interlocking circuit according to No. 10 was used. However, such a method of adding a circuit is not preferable because the hardware configuration becomes complicated.
【0010】本発明は、SFC記述に沿ったプログラム
展開ではなく、プログラム全体を全トランジション群、
全リンク群、全アクション群の各プログラムに分離し
て、これら各プログラムの順に沿ってプログラム展開す
ることにより、次のステップのアクションを実行する前
にステップの移行を完了させ、連続する2つのアクショ
ンの内容が同時に実行されるのを防止することを目的と
している。According to the present invention, the program is not expanded according to the SFC description, but the entire program is converted into all transition groups,
By separating the program into all the link groups and all the action groups and developing the programs in the order of these programs, the step transition is completed before the next step action is executed, and two consecutive actions are performed. The purpose of this is to prevent the contents from being executed simultaneously.
【0011】[0011]
【課題を解決するための手段】図1は本発明の原理を説
明するためのブロック図であり、本発明はSFC記述お
よびニーモニック表現の両方でプログラミング可能なプ
ログラマブルコントローラ10に適用される。FIG. 1 is a block diagram for explaining the principle of the present invention. The present invention is applied to a programmable controller 10 which can be programmed in both SFC description and mnemonic expression.
【0012】全トランジション群プログラム1は、全体
のプログラムにおいて、移行条件を示すプログラムのみ
で構成される。また、全リンク群プログラム2は、全体
のプログラムにおいて、どのステップとどのステップが
接続されるかという接続関係を示すプログラムのみで構
成される。また、全アクション群プログラム3は、全体
のプログラムにおいて、各ステップにおける実際の動き
(アクション)を示すプログラムのみで構成される。The entire transition group program 1 is composed of only a program indicating a transition condition in the entire program. In addition, the all link group program 2 is composed of only a program indicating a connection relationship of which step is connected to which step in the entire program. Further, the entire action group program 3 is composed of only a program indicating an actual movement (action) in each step in the entire program.
【0013】[0013]
【作用】このように本発明では、図3(a) で示したSF
C記述に沿って、上から下へと順にプログラム展開する
のではなく、まず全トランジション群プログラム1によ
って移行条件プログラムを実行し、この全トランジショ
ン群プログラム1の実行が全て終了したら、次の全リン
ク群プログラム2によって、隣接するステップ間でどの
ステップとどのステップが接続されるかという接続関係
を示すプログラムの実行を行い、この接続関係を示すプ
ログラムの実行が全て終了したら、次に全アクション群
プログラム3に移る。そして、この全アクション群プロ
グラム3のプログラム内容に沿って活性状態となってい
るステップのみのアクション群のプログラムの実行を行
う。As described above, according to the present invention, the SF shown in FIG.
Instead of developing the programs in order from top to bottom in accordance with the C description, first, the transition condition program is executed by all the transition group programs 1, and when the execution of all the transition group programs 1 is completed, the next all links are executed. The group program 2 executes a program indicating a connection relationship between adjacent steps, which steps are connected to each other. When all the programs indicating the connection relationship have been executed, an all action group program is executed. Move to 3. Then, the program of the action group of only the steps that are in the active state is executed in accordance with the program contents of the all action group program 3.
【0014】このように、アクションの内容を実行する
前に、移行を完了させておき、活性中のステップが1つ
だけとなるようなプログラム設定とすることにより、連
続する2つのステップのアクションの内容が同時に実行
されることはなくなる。As described above, the transition is completed before executing the content of the action, and the program is set so that only one step is active. The content will not be executed simultaneously.
【0015】[0015]
【実施例】次に本発明の実施例を説明する。図2は同実
施例のプログラム例を示すものであり、図1と同様、全
体のプログラムの中で移行条件を示すプログラムのみで
構成されるトランジション群プログラム1、全体のプロ
グラムの中でどのステップとどのステップが接続される
かの接続関係を示すプログラムのみで構成される全リン
ク群プログラム2、全体のプログラムの中で、各ステッ
プのアクションを示すプログラムのみで構成される全ア
クション群プログラム3により構成されている。Next, embodiments of the present invention will be described. FIG. 2 shows an example of the program of the embodiment. As in FIG. 1, a transition group program 1 consisting of only a program indicating a transition condition in the whole program. An all link group program 2 composed of only a program indicating a connection relation of which steps are connected, and a total action group program 3 composed of only a program indicating an action of each step in the entire program. Have been.
【0016】これらの各プログラム1,2,3の具体的
な内容は次のようになっている。まず、全トランジショ
ン群プログラム1は、入力X1のオン/オフにより移行
条件(トランジション)TN21もオン/オフし、入力
X2のオン/オフにより移行条件TN22もオン/オフ
する。例えば、入力X1がオンしていれば移行条件TN
21もオンであり、ステップS20からステップS21
へ移行する条件が成立していると判断する(これらステ
ップS20、移行条件TN21などの関係は図3(a) 参
照)。The specific contents of these programs 1, 2 and 3 are as follows. First, in the entire transition group program 1, the transition condition (transition) TN21 is also turned on / off by turning on / off the input X1, and the transition condition TN22 is also turned on / off by turning on / off the input X2. For example, if the input X1 is on, the transition condition TN
21 is also on, and steps S20 to S21
It is determined that the condition for shifting to (1) is satisfied (see FIG. 3 (a) for the relationship between these steps S20 and the shifting condition TN21).
【0017】また、全リンク群プログラム2は、SIN
GLE命令からE TRA命令までの間が、どのステッ
プとどのステップとが接続されるかという内容を示して
いる。この場合、移行条件TN21がオンしていれば、
ステップS20からステップS21に移行し、移行条件
TN22がオンしていればステップS21からステップ
S22に移行することを示している。なお、SINGL
E命令は、すぐ下のステップと接続されることを意味
し、分岐・合流のときは別の命令が用意されている。ま
たE TRA命令は1つの接続が終了したことを意味
し、ステップとステップの接続が終了する毎に用いるも
のである。Further, the all link group program 2 has a SIN
GLE instruction to E The steps up to the TRA instruction indicate what steps are connected to each other. In this case, if the transition condition TN21 is on,
The process proceeds from step S20 to step S21, and indicates that the process proceeds from step S21 to step S22 if the transition condition TN22 is on. In addition, SINGL
The E instruction means that it is connected to the step immediately below, and another instruction is prepared for branching / merging. Also E The TRA command means that one connection has been completed, and is used every time the connection between steps is completed.
【0018】次に全アクション群プログラム3は、AC
EXE命令からE ACT命令までの間が実際のアクシ
ョンの内容であり、ACEXEに付随するS番号(S2
0,S21,・・・)がどのステップでの内容であるか
を意味している。この場合、ステップS20では、入力
X10の内容をY110に出力し、ステップS21で
は、入力X11の内容をY110に出力するという例を
示している。Next, all the action group programs 3
From the EXE instruction to E The contents up to the ACT instruction are the contents of the actual action, and the S number (S2
0, S21,...) Means the content of which step. In this case, in step S20, the content of the input X10 is output to Y110, and in step S21, the content of the input X11 is output to Y110.
【0019】このようなプログラム構成とすることによ
り、まず、全トランジション群プログラム1を実行した
時点では、移行条件TN21,TN22のオン/オフが
確定しているため、現在活性中のステップがわかれば次
のステップに進める準備ができている。次に全リンク群
プログラム2を実行した時点で、ステップ毎の活性/非
活性状態が判断できると共に移行が完了すれば移行前の
ステップは非活性することが可能となる。By adopting such a program configuration, first, when the all transition group program 1 is executed, the on / off of the transition conditions TN21 and TN22 is determined. You are ready to take the next step. Next, when the all link group program 2 is executed, the active / inactive state of each step can be determined, and if the transition is completed, the step before the transition can be deactivated.
【0020】そして最後に全アクション群プログラム3
の実行では、活性しているステップのみのアクション内
容を実行し、非活性のステップのアクション内容は実行
しないようにする。Finally, all action group programs 3
Is executed, the action content of only the active step is executed, and the action content of the inactive step is not executed.
【0021】これにより、連続するステップのそれぞれ
のアクションのプログラムが同時に実行されることはな
くなる。As a result, the programs for the respective actions in the successive steps are not executed simultaneously.
【0022】[0022]
【発明の効果】本発明によれば、SFC記述に沿ってプ
ログラム展開するのではなく、全トランジション群プロ
グラム、全リンク群プログラム、全アクション群プログ
ラムの順にプログラム展開し、次のステップのアクショ
ンの内容を実行する前に、移行を完了させて活性中のス
テップが1つだけになるようにすることで、連続する2
つのアクションが同時に実行されることがなくなり、従
来の如く連続する2つのステップのそれぞれのアクショ
ン出力によって、互いにインタロックをかける回路が不
要となり、ハード構成の簡略化が図れる。また、全体の
プログラムがトランジション群、リンク群、アクション
群とで分かれているため、ユーザにとって非常にメンテ
ナンス性の良いプログラムとすることができる。According to the present invention, instead of developing the program according to the SFC description, the program is developed in the order of all transition group programs, all link group programs, and all action group programs, and the contents of the action in the next step Before executing the process, by completing the transition so that only one step is active,
The two actions are not executed at the same time, and a circuit for interlocking with each other by the action output of each of two successive steps is unnecessary, and the hardware configuration can be simplified. In addition, since the entire program is divided into a transition group, a link group, and an action group, the program can be very easy for the user to maintain.
【図1】本発明の原理を示すブロック図である。FIG. 1 is a block diagram showing the principle of the present invention.
【図2】本発明の実施例を説明するプログラム構成例を
示す図である。FIG. 2 is a diagram showing an example of a program configuration for explaining an embodiment of the present invention.
【図3】SFC記述を説明する構成図および従来のプロ
グラム例を示す図である。FIG. 3 is a configuration diagram illustrating an SFC description and a diagram illustrating a conventional program example.
【図4】従来においてアクションプログラムにインタロ
ックを追加した例を示す図である。FIG. 4 is a diagram showing an example in which an interlock is added to an action program in the related art.
1 全トランジション群プログラム 2 全リンク群プログラム 3 全アクション群プログラム 10 プログラマブルコントローラ 1 All transition group programs 2 All link group programs 3 All action group programs 10 Programmable controller
Claims (1)
述及びニーモニック表現の両方でのプログラミング可能
なプログラマブルコントローラ(10)において、 全体のプログラムを、移行条件を示す全トランジション
群プログラム(1)、ステップ間の接続関係を示す全リ
ンク群プログラム(2)、ステップの動作を示す全アク
ション群プログラム(3)とに分離した構成とし、全ト
ランジション群プログラム(1)、全リンク群プログラ
ム(2)、全アクションプログラム(3)の順にプログ
ラムを展開することを特徴とするプログラマブルコント
ローラ。In a programmable controller (10) that can be programmed in both SFC (Sequencial Functiont Chart) description and mnemonic expression, the entire program is connected to all transition group programs (1) indicating transition conditions and steps. The structure is separated into an all-link group program (2) indicating the relationship and an all-action group program (3) indicating the operation of the step. All transition group programs (1), all link group programs (2), and all action programs ( A programmable controller characterized in that the program is developed in the order of 3).
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP31715691A JP2970142B2 (en) | 1991-11-30 | 1991-11-30 | Programmable controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP31715691A JP2970142B2 (en) | 1991-11-30 | 1991-11-30 | Programmable controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH05150814A JPH05150814A (en) | 1993-06-18 |
| JP2970142B2 true JP2970142B2 (en) | 1999-11-02 |
Family
ID=18085077
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP31715691A Expired - Lifetime JP2970142B2 (en) | 1991-11-30 | 1991-11-30 | Programmable controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2970142B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4747990B2 (en) * | 2006-08-10 | 2011-08-17 | 株式会社明電舎 | Programmable controller |
-
1991
- 1991-11-30 JP JP31715691A patent/JP2970142B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH05150814A (en) | 1993-06-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3168682B2 (en) | Numerical control unit | |
| JP2970142B2 (en) | Programmable controller | |
| JPH11272310A (en) | Emulation device for programmable controller | |
| US5758164A (en) | Method and system for processing language | |
| JP3013619B2 (en) | Programmable controller | |
| JP2526703B2 (en) | Programmable controller | |
| JP3018790B2 (en) | Programmable controller | |
| JPH0553615A (en) | Programmable controller | |
| JP2731166B2 (en) | Programmable controller | |
| JP3344020B2 (en) | Programmable controller | |
| JPH0679245B2 (en) | Programmable controller sequence program execution method | |
| JP2921228B2 (en) | Programmable controller | |
| JPS59170907A (en) | Instructing method of group robots | |
| KR900005548B1 (en) | Programmble controller | |
| JP3018732B2 (en) | Programmable controller | |
| JPH01291305A (en) | Detecting system for state change of pc | |
| JPS62154005A (en) | Programmable controller | |
| JPS6249502A (en) | Programmable controller | |
| JPH04257934A (en) | System for measuring comprehensive rate of program | |
| JPH0337201B2 (en) | ||
| JPH0385604A (en) | Method and device for determining arithmetic operation order for ladder diagram input part | |
| JPH02284206A (en) | Programmable controller | |
| JPS6388609A (en) | Sequence program monitoring method for sequence controller | |
| JPH01194003A (en) | Control system for pc device | |
| 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: 19990727 |
|
| 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: 20070827 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080827 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080827 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090827 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090827 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100827 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110827 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110827 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120827 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: 20120827 Year of fee payment: 13 |