JPH0526201B2 - - Google Patents

Info

Publication number
JPH0526201B2
JPH0526201B2 JP58043877A JP4387783A JPH0526201B2 JP H0526201 B2 JPH0526201 B2 JP H0526201B2 JP 58043877 A JP58043877 A JP 58043877A JP 4387783 A JP4387783 A JP 4387783A JP H0526201 B2 JPH0526201 B2 JP H0526201B2
Authority
JP
Japan
Prior art keywords
sequencer
sequencers
command
control data
data
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
Application number
JP58043877A
Other languages
Japanese (ja)
Other versions
JPS59188703A (en
Inventor
Yasuhisa Masuo
Mamoru Hatakawa
Kazuhiko Mitsuo
Tatsuo Kondo
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP4387783A priority Critical patent/JPS59188703A/en
Publication of JPS59188703A publication Critical patent/JPS59188703A/en
Publication of JPH0526201B2 publication Critical patent/JPH0526201B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/052Linking several PLC's
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/11Plc I-O input output
    • G05B2219/1105I-O
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/15Plc structure of the system
    • G05B2219/15017Optical fiber

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 技術分野 本発明は、シーケンサを並列運転する制御シス
テムに関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a control system for operating sequencers in parallel.

従来技術 従来の小型シーケンサでは、被制御機器の制御
入出力点数が多く、1台では足りずに複数台数で
被制御機器を制御する場合、例えば、被制御機器
のリミツトスイツチ信号X1を内部のプログラム
でシーケンサが使つている場合、リミツトスイツ
チ信号X1はシーケンサの3台の入力端子へ接続
しなければならない。また、一つのシーケンサの
演算結果を他のシーケンサが使う場合は、演算結
果を出力端子に出力し、その出力端子を演算結果
を必要とするシーケンサの入力端子に接続しなけ
ればならない。
Conventional technology In conventional small sequencers, the number of control input/output points for controlled devices is large, and when controlling multiple controlled devices because one device is not enough, for example, limit switch signal X1 of the controlled device can be controlled by an internal program. If a sequencer is used, the limit switch signal X1 must be connected to the three input terminals of the sequencer. Furthermore, if the calculation results of one sequencer are to be used by another sequencer, the calculation results must be output to an output terminal, and that output terminal must be connected to the input terminal of the sequencer that requires the calculation results.

このように、従来の小型シーケンサを複数台使
つて一つの設備を動かす場合、入力や出力の使用
効率が悪くなり、拡張性に欠けるという問題があ
つた。
As described above, when a single piece of equipment is operated using a plurality of conventional small sequencers, there is a problem in that input and output usage efficiency becomes poor and scalability is lacking.

一方、大型シーケンサ1台で設備を制御する場
合、制御部分が故障すると設備全体がダウンして
しまうという欠点や、リミツトスイツチやソレノ
イドバルブ等への入出力信号線を全部1個所まで
引つ張つてこなければならない。また、大型であ
るため、設置場所も広くとる等の欠点があつた。
On the other hand, when controlling equipment with a single large sequencer, there are disadvantages in that if the control part breaks down, the entire equipment goes down, and the input/output signal lines to limit switches, solenoid valves, etc. must be pulled to one location. There must be. In addition, since it is large, it has disadvantages such as requiring a large installation space.

目 的 したがつて、本発明の目的は、入出力信号線の
配線距離を短くできるとともに信頼性を高くで
き、しかも入出力の使用効率が高く拡張性に富ん
だ制御システムを提供することである。
OBJECTIVES Therefore, an object of the present invention is to provide a control system that can shorten the wiring distance of input/output signal lines, increase reliability, and has high efficiency in input/output use and is rich in expandability. .

実施例 以下、この発明の実施例を図面に基づいて説明
する。この制御システムは、第1図に示すよう
に、シリアルデータを光信号に返換してシリアル
データ伝送路である光フアイバOFに送り出す光
信号出力部OUTと、光フアイバOFから送られて
きたシリアルデータを電気信号に返換する光信号
入力部INを持つ複数のシーケンサPC1〜PCnか
らなり、1台のシーケンサ、例えばPC1の光信
号出力部OUTとつぎのシーケンサPCnの光信号
入力部INとを光フアイバOFで接続し、シーケン
サPC1〜PCnを光フアイバOFで環状に接続して
いる。そして、シーケンサPC1〜PCnの各々は、
内部の制御データメモリにシリアルデータ伝送系
に接続できる数に相当する第2図に示すようなシ
ーケンサPC1〜PCnの制御データ領域を持ち、
実際の稼動時は、第3図に示すように、ユーザプ
ログラムの実行→演算結果の出力→入力信号取込
み→各シーケンサPC1〜PCnの制御データの伝
送、受信→のステツプをエンドレスで繰り返す。
この場合、制御データとは、各シーケンサPC1
〜PCnの入力信号、出力信号数値データ等のユー
ザのシーケンスプログラムで使用される信号を言
う。
Embodiments Hereinafter, embodiments of the present invention will be described based on the drawings. As shown in Figure 1, this control system consists of an optical signal output section OUT that converts serial data into an optical signal and sends it to the optical fiber OF, which is a serial data transmission path, and a serial It consists of a plurality of sequencers PC1 to PCn each having an optical signal input section IN that converts data into an electrical signal. The sequencers PC1 to PCn are connected in a ring through the optical fiber OF. And each of the sequencers PC1 to PCn is
The internal control data memory has control data areas for sequencers PC1 to PCn as shown in Figure 2, corresponding to the number that can be connected to the serial data transmission system.
During actual operation, as shown in FIG. 3, the steps of execution of a user program, output of calculation results, input signal capture, transmission and reception of control data from each sequencer PC1 to PCn are repeated endlessly.
In this case, the control data means each sequencer PC1
- Refers to the signals used in the user's sequence program, such as PCn input signals and output signal numerical data.

シーケンサPC1〜PCnの各々は、具体的には
第4図および第4A図に示すように、(a)光信号入
力部INと、光信号出力部OUTと、シーケンサ制
御部SCと、入力信号変換部CVIと、出力信号変
換部CVOと、これらを接続するデータバスと、
リード信号線やライト信号線などを含むシーケン
サ基本ユニツトU1と、(b)入力信号変換部
CVI′と、出力信号変換部CVO′からなりシーケン
サ基本ユニツトU1と近接配置したシーケンサ入
出力拡張ユニツトU2とで構成され、このシーケ
ンサ入出力拡張ユニツトU2は図では1個である
が、複数個接続可能である。光信号入力部INお
よび光信号出力部OUTは前述のとおりである。
Specifically, as shown in FIGS. 4 and 4A, each of the sequencers PC1 to PCn includes (a) an optical signal input section IN, an optical signal output section OUT, a sequencer control section SC, and an input signal conversion section. section CVI, output signal conversion section CVO, and a data bus connecting these,
Sequencer basic unit U1 including read signal lines, write signal lines, etc., and (b) input signal conversion section
It consists of a sequencer basic unit U1, which consists of a CVI' and an output signal converter CVO', and a sequencer input/output expansion unit U2 placed close to it.Although there is only one sequencer input/output expansion unit U2 in the figure, it is possible to connect multiple sequencer input/output expansion units U2. It is possible. The optical signal input section IN and the optical signal output section OUT are as described above.

シーケンサ制御部SCは、光信号入力部INから
のシリアルデータ入力信号を受けるとともに、シ
リアルデータ出力信号を光信号出力部OUTへ出
し、また第4A図に示されるようにシーケンサ制
御メモリユニツト1や第2図に示される各シーケ
ンサPC1〜PCnの制御データを記憶したり、伝
送のために用い、しかもユーザの外部機器制御用
シーケンスプログラムを記憶するための第4A図
に示された制御データメモリユニツト2を有し、
他のシーケンサとの制御データのやりとり、入力
信号変換部CVI′、CVI′、出力信号変換部CVO、
CVO′とのデータのやりとり等を制御する。
The sequencer control unit SC receives a serial data input signal from the optical signal input unit IN, outputs a serial data output signal to the optical signal output unit OUT, and also outputs a serial data output signal to the optical signal output unit OUT, as shown in FIG. 4A. A control data memory unit 2 shown in FIG. 4A is used for storing and transmitting control data of each of the sequencers PC1 to PCn shown in FIG. has
Exchange of control data with other sequencers, input signal converter CVI′, CVI′, output signal converter CVO,
Controls data exchange with CVO′.

入力信号変換部CVI、CVI′は、近接配置した
外部の制御機器からの複数の信号を内部のIC信
号レベルに変換してシーケンサ制御部SCからの
読み取り信号RD、RD′でパラレルデータバスDB
上に外部の制御機器からの信号を出力する。
The input signal converters CVI and CVI' convert multiple signals from external control devices located close to each other into internal IC signal levels and convert them into parallel data buses DB using read signals RD and RD' from the sequencer control unit SC.
Outputs signals from external control equipment on the top.

出力信号変換部CVOは、シーケンサ制御部SC
からの書き込み信号WT、WT′でパラレルデータ
バスDB上の内容を記憶し、そのIC信号レベルの
信号内容を外部の制御機器の負荷を制御できるレ
ベルに変換して複数の外部負荷を制御する。
The output signal conversion unit CVO is the sequencer control unit SC
The contents on the parallel data bus DB are stored using the write signals WT and WT' from the IC, and the signal contents at the IC signal level are converted to a level that can control the loads of external control equipment to control multiple external loads.

第4A図に基づいて補足的に説明すると、シリ
アル・パラレル変換部3は、光信号入力部INよ
り出力されるシリアルな電気信号をパラレル信号
に変換するユニツトである。このシリアル・パラ
レル変換部3に入つたパラレルデータを制御部
SCによつて読み込み、制御部SCでは、送られて
くるメツセージの処理を行なう。制御動作につい
ては後述する。パラレル・シリアル変換部4で
は、外部に送るべきメツセージがある時にまずラ
イン6を介する切換え信号によつて、切換えスイ
ツチ5はパラレル・シリアル変換部4を光信号出
力部OUTに接続し、パラレルデータをパラレ
ル・シリアル変換部4に書き込む事により送信デ
ータは光信号出力部OUTより送出される。この
後、切換えスイツチ5をライン6からの切換え信
号によりRx′側に倒す。切換えスイツチ5の機械
と動作は後述のとおりである。
To give a supplementary explanation based on FIG. 4A, the serial/parallel converter 3 is a unit that converts a serial electrical signal output from the optical signal input section IN into a parallel signal. The parallel data that has entered this serial/parallel converter 3 is transferred to the control unit.
The message is read by the SC, and the control unit SC processes the message sent. The control operation will be described later. In the parallel/serial converter 4, when there is a message to be sent to the outside, the switch 5 first connects the parallel/serial converter 4 to the optical signal output section OUT by a switching signal via the line 6, and converts the parallel data. By writing in the parallel/serial converter 4, the transmission data is sent out from the optical signal output section OUT. Thereafter, the changeover switch 5 is turned to the Rx' side by a changeover signal from the line 6. The mechanism and operation of the changeover switch 5 will be described later.

ライン7はデータバスえあり、ライン8は送受
信信号制御バスであり、参照符9はリード信号、
ライト信号、制御信号およびアドレス信号等を伝
送するバスであり、ライン10にはプログラマを
制御するための信号が導出される。制御データメ
モリユニツト2は、データ伝送用ストア領域2a
と、ユーザプログラムをストアする領域2bと、
入出力データをストアする領域2cとを有する。
入出力データのストア領域2cでは、シーケンサ
PC1〜PCnの制御データがそれぞれストアされ
る。図中参照符RDはリード信号を示し、WTは
ライト信号をそれぞれ示す。
Line 7 is a data bus, line 8 is a transmission/reception signal control bus, reference numeral 9 is a read signal,
This is a bus for transmitting write signals, control signals, address signals, etc., and signals for controlling the programmer are derived from line 10. The control data memory unit 2 has a storage area 2a for data transmission.
and an area 2b for storing user programs.
It has an area 2c for storing input/output data.
In the input/output data storage area 2c, the sequencer
Control data for PC1 to PCn is stored respectively. Reference mark RD in the figure indicates a read signal, and WT indicates a write signal.

つぎに、この制御システムの動作を第5図A,
Bに示すようなシーケンス制御の例について説明
する。第1図のシーケンサPC1に第5図Aに示
すプログラムを入れ、入力信号X110と出力信
号Y101を外部機器に第4図に示す入力信号変
換部CVIと出力信号変換部CVOとをそれぞれ介
して接続し、シーケンサPC2に第5図Bに示す
プログラムを入れ、入力信号X200と出力信号
Y201,Y202を第4図に示す入力信号変換
部CV1と出力信号変換部CVOを介して外部機器
に接続している。この実施例では各シーケンサ
PC1〜PCnに100番台を機番としているけれど
も、他の実施例として1000番台およびさらに上位
の機番を用いてもよく、また自機内の入出力デー
タとして100番台を0にしてもよく、他のシーケ
ンサを使うときだけ100番台に機番を設定するよ
うにしてもよい。
Next, the operation of this control system is shown in Figure 5A.
An example of sequence control as shown in B will be explained. The program shown in FIG. 5A is inserted into the sequencer PC1 shown in FIG. Then, put the program shown in Figure 5B into the sequencer PC2, and connect the input signal X200 and output signals Y201, Y202 to external equipment via the input signal converter CV1 and output signal converter CVO shown in Figure 4. There is. In this example, each sequencer
Although PC1 to PCn are machine numbers in the 100s, machine numbers in the 1000s and higher order may be used in other embodiments, and the 100s may be set to 0 as input/output data within the own machine. You may set the machine number in the 100s only when using a sequencer.

この状態で第3図に示すような稼動状態の時、
第3図のタイミングT3で、シーケンサPC1,
PC2はそれぞれの入力信号変換部CVIから外部
機器の信号を取り込む。もちろん、シーケンサ
PC1は入力信号X110を、シーケンサPC2は
入力信号X200をシーケンサ制御部SCの第2
図に示すそれぞれの制御データ領域に書き込む。
In this state, when operating as shown in Figure 3,
At timing T3 in Fig. 3, sequencer PC1,
The PC 2 takes in signals from external devices from each input signal converter CVI. Of course, the sequencer
PC1 receives the input signal X110, and the sequencer PC2 receives the input signal X200 from the second controller of the sequencer controller SC.
Write to each control data area shown in the figure.

つぎに、タイミングT4で、各シーケンサPC
1〜PCnは第2図の自分の制御データを送り出
す。たとえばシーケンサPC1は、第2図のPC1
制御データ領域のメモリ内容(タイミングT3で
読み込んだ入力信号110のデータやタイミング
T1で演算されてタイミングT2で書き込みされ
た出力信号Y101のデータを含む)を光信号に
変換して光フアイバOF上に送り出す。この時、
他のシーケンサPC2〜PCnは、送られてくるシ
ーケンサPC1の制御データをそれぞれのシーケ
ンサPC2〜PCnが持つている第2図に示す制御
データメモリのPC1制御データ領域に書き込む。
Next, at timing T4, each sequencer PC
1 to PCn send out their own control data shown in FIG. For example, sequencer PC1 is PC1 in Figure 2.
The memory contents of the control data area (including the input signal 110 data read at timing T3 and the output signal Y101 data calculated at timing T1 and written at timing T2) are converted into optical signals and sent onto the optical fiber OF. send out. At this time,
The other sequencers PC2-PCn write the sent control data of the sequencer PC1 into the PC1 control data area of the control data memory shown in FIG. 2, which each of the sequencers PC2-PCn has.

シーケンサPC1の制御データの伝送が終了す
ると、つぎのシーケンサPC2の制御データ伝送
が始まる。この際のデータ伝送終了の検出は、伝
送制御データの最後に終了コマンドを送つて検出
したり、あるいは伝送の開始前に伝送データ数を
伝送して各受信シーケンサがそのデータ数を数え
てデータ伝送の終了を検出したりする方法があ
る。
When the transmission of control data from the sequencer PC1 is completed, the next transmission of control data from the sequencer PC2 begins. In this case, the end of data transmission can be detected by sending an end command at the end of the transmission control data, or by transmitting the number of data to be transmitted before the start of transmission, and each receiving sequencer counts the number of data and transmits the data. There is a way to detect the end of.

このようにして、シーケンサPC2も自分の制
御データを第2図に示す自分の制御データメモリ
から同じく光フアイバOFに送り出す。この時、
他のシーケンサPC1,PC3〜PCnは各自の制御
データメモリのPC2制御データ領域に送られて
くるシーケンサPC2の制御データ(X200,
Y201,Y202を含む)を書き込む。
In this way, the sequencer PC2 also sends out its own control data from its own control data memory shown in FIG. 2 to the optical fiber OF. At this time,
The other sequencers PC1, PC3 to PCn receive control data (X200,
(including Y201 and Y202).

このようにして、各シーケンサPC1〜PCnの
制御データ伝送を順番に行ない、それが完了する
と、第2図に示す各シーケンサの制御データメモ
リの内容は全部同じになり第3のタイミングT1
で各シーケンサPC1〜PCnがそれぞれのプログ
ラムメモリに書き込まれているユーザプログラム
を実行する。それが終了すると、第3図のタイミ
ングT2でその結果の出力データを各シーケンサ
PC1〜PCnの出力信号変換部CVOにパラレルデ
ータバスDBを通して書き込み、外部機器を制御
する。
In this way, the control data transmission of each sequencer PC1 to PCn is performed in order, and when it is completed, the contents of the control data memory of each sequencer shown in FIG. 2 are all the same, and the third timing T1
Each of the sequencers PC1 to PCn executes the user program written in each program memory. When this is completed, the resulting output data is sent to each sequencer at timing T2 in Figure 3.
Write to the output signal converter CVO of PC1 to PCn through the parallel data bus DB to control external equipment.

このタイミングT1で第5図Aおよび第5図B
に示すユーザプログラムがシーケンサPC1,PC
2で実行される。すなわち、シーケンサPC1で
は、タイミングT3で取り込んだ入力信号X11
0を出力信号Y101に書き込む。シーケンサ
PC2では、タイミングT3で入力信号X200
を取り込み、タイミングT4で伝送されてきた入
力信号X110や前回のユーザプログラム実行に
より書き込まれてタイミングT4で伝送されてき
た出力信号Y101やタイミングT3で取り込ん
だ入力信号X200を使つて第5図Bで示される
ユーザプログラムを実行し、入力信号X110と
X200とのアンド結果を出力信号Y201に書
き込み、シーケンサPC1の出力信号101をシ
ーケンサPC2の出力信号Y202に書き込む。
At this timing T1, FIGS. 5A and 5B
The user program shown in is the programmable controller PC1, PC
It is executed in 2. That is, in the sequencer PC1, the input signal X11 taken in at timing T3
Write 0 to the output signal Y101. sequencer
In PC2, input signal X200 at timing T3
5B using the input signal X110 transmitted at timing T4, the output signal Y101 written by the previous user program execution and transmitted at timing T4, and the input signal X200 fetched at timing T3. The illustrated user program is executed, the AND result of input signals X110 and X200 is written to the output signal Y201, and the output signal 101 of the sequencer PC1 is written to the output signal Y202 of the sequencer PC2.

ユーザプログラムの実行が終ると、その出力信
号をタイミングT2で出力信号変換部CVOから
外部に出力して外部機器を制御する。すなわち、
シーケンサPC1では、入力信号X110に応じ
て出力信号Y101を出し、シーケンサPC2で
は、入力信号X110とX200のアンド結果で
出力信号Y201を出し、出力信号Y101を出
力信号Y202に出す。
When the execution of the user program is finished, the output signal is output from the output signal converter CVO to the outside at timing T2 to control the external device. That is,
The sequencer PC1 outputs an output signal Y101 in response to the input signal X110, and the sequencer PC2 outputs an output signal Y201 as an AND result of the input signals X110 and X200, and outputs the output signal Y101 as an output signal Y202.

このようにして、第1図のような構成で第3図
のような各ステツプを循環的に実行させることに
より、シーケンサPC1に接続されている入力信
号や出力信号をシーケンサPC2でユーザが自由
にプログラムに取り入れて使うことができる。も
ちろん、タイマやカウンタの値や数値データも制
御データに入れて伝送・受信すれば他のシーケン
サで自由にそれらを使うことができる。
In this way, by cyclically executing each step as shown in Fig. 3 with the configuration shown in Fig. 1, the user can freely use the input signal and output signal connected to the sequencer PC1 to use the sequencer PC2. It can be incorporated into a program and used. Of course, if timer and counter values and numerical data are also included in the control data and transmitted/received, they can be freely used by other sequencers.

この実施例では、シーケンサPC2でシーケン
サPC1の制御データを使うだけであつたが、こ
の逆も可能であり、さらにシーケンサPC1〜
PCnは自分の入力信号変換部CVIや出力信号変換
部CVOに接続している以外に、他のシーケンサ
の制御データでも第2図の制御データメモリに書
かれている制御データは自由にユーザプログラム
の中で使え、あたかも1台のシーケンサであるが
ごとくプログラムを組み、実行させることができ
る。
In this embodiment, the control data of the sequencer PC1 was only used by the sequencer PC2, but the reverse is also possible, and the control data of the sequencer PC1 to
In addition to being connected to its own input signal converter CVI and output signal converter CVO, PCn can also freely use the control data of other sequencers written in the control data memory shown in Figure 2 in the user program. It can be used inside the machine, and programs can be created and executed as if it were a single sequencer.

また前述したシステムにおける伝送系の制御に
ついては、伝送を制御する専用の装置を必要とせ
ずに、送信を行なうことのできる主導権(以下
Tokenという)をリング状に配されたシーケン
サに順に引き渡していき、Tokenを保持してい
る局のみが送信を行なうことができるという方式
により行なわれている。
In addition, regarding the control of the transmission system in the system described above, there is an initiative (hereinafter referred to as
This method uses a method in which a token (called a token) is sequentially handed over to sequencers arranged in a ring, and only stations that hold the token can transmit.

以下、具体的に第3図のシーケンス動作を、複
数のシーケンサにより同期運転を行ないながらサ
イクリツクにシーケンス実行動作を行なう手順に
ついて述べる。第6図には、3台のシーケンサ
SQ1〜SQ3がつながつている場合の例を示す。
第7図は、そのときの状態をタイムチヤートで表
わす。第8図は、シーケンサSQ1〜SQ3の動作
のフローチヤートを示す。各シーケンサSQ1〜
SQ3では、現在は実行モードかどうかを判定す
る。実行モードでない場合には(以下、プログラ
ムモードと言う)、第8図のフローチヤートのス
テツプn1、n11、n12、n1のサイクルを繰り返し、
シーケンサ実行動作は行なわない。実行モードの
場合には、ステツプn2において、実行完了フラ
グがセツトされているかどうかを判定する。実行
完了フラグは第3図のユーザープログラム実行−
演算結果出力−入力信号取込みを行なつた際にセ
ツトされる。セツトされている場合は、シーケン
サの状態は第7図のの状態にあるので、プログ
ラマ処理を行なう。この結果、実行完了フラグは
リセツトされる。この後、Tokenが回つてくる
のを持つ。シーケンサSQ2のタイムチヤートの
様にすでにToken保持がなされている場合もあ
るし、シーケンサSQ3の様にプログラマ処理を
終了後にもTokenが到着しておらず、Token待
ち状態を経た後、Tokenを得る場合もある。
Tokenが回つてくると、Token放出処理を行な
う。シーケンサではこの後、再びTokenが回つ
てくるのを待つている。Tokenが回つてくれば、
先ほどシーケンス実行部で作成した入出力データ
を他のすべてのシーケンサに送る。すなわち送り
先をすべてのアドレスとするいわゆるグローバル
アドレスメツセージにより送る。これは、第7図
の参照符12で示す。この後、Tokenを離す。
またi/o転送を行なつていない時には、他のシ
ーケンサから送られてくるi/oデータの読み込
み処理を行ない第2図の制御データ書き込み領域
に対応するシーケンサのi/oデータを書き込
む。各シーケンサでは、i/oデータ転送が終わ
れば、Token待ちの状態に入る。また同時にGO
コマンド待ち状態でもある。例えばGOコマンド
が送られてくるよりも前に、ToKenが送られて
くれば(第7図の例のSQ1の場合)、これによ
り、他のシーケンサにGOコマンドを発する。こ
れは第7図の状態である。この時、他のシーケ
ンサではTokenが保持される前にGOコマンドを
受ける事により、ユーザプログラムの実行動作を
行なう。これは第7図のの状態である。すなわ
ち第4A図のユーザプログラムメモリエリアの内
容を実行していく。シーケンサSQ1では自分の
発したGOコマンドによりシーケンスプログラム
の実行動作を開始する。これは第7図のの状態
である。この後の動作は、再びステツプn1から
動作をつづける。
Hereinafter, the sequence operation shown in FIG. 3 will be specifically described as a procedure for cyclically performing the sequence execution operation while performing synchronized operation by a plurality of sequencers. Figure 6 shows three sequencers.
An example is shown in which SQ1 to SQ3 are connected.
FIG. 7 shows the state at that time as a time chart. FIG. 8 shows a flowchart of the operation of sequencers SQ1 to SQ3. Each sequencer SQ1~
SQ3 determines whether the current mode is execution mode. If it is not in the execution mode (hereinafter referred to as program mode), repeat the cycle of steps n1, n11, n12, and n1 in the flowchart of FIG.
No sequencer execution operation is performed. In the case of execution mode, it is determined in step n2 whether the execution completion flag is set. The execution completion flag is the user program execution shown in Figure 3.
Operation result output - Set when input signal acquisition is performed. If it is set, the sequencer is in the state shown in FIG. 7, so programmer processing is performed. As a result, the execution completion flag is reset. After this, you will receive a Token. There are cases where the token has already been held, as in the time chart of sequencer SQ2, and there are cases where the token has not arrived even after programmer processing has finished and the token is obtained after passing through the token waiting state, as in sequencer SQ3. There is also.
When the token is returned, the token release process is performed. After this, the sequencer waits for the Token to come around again. Once the Token is returned,
Send the input/output data created earlier in the sequence execution section to all other sequencers. In other words, the message is sent using a so-called global address message whose destination is all addresses. This is indicated by reference numeral 12 in FIG. After this, release the Token.
Furthermore, when I/O transfer is not being performed, it reads I/O data sent from other sequencers and writes the I/O data of the sequencer corresponding to the control data write area shown in FIG. In each sequencer, when the I/O data transfer is completed, it enters a state of waiting for a token. Go again at the same time
It is also in a command waiting state. For example, if ToKen is sent before the GO command is sent (in the case of SQ1 in the example in FIG. 7), this will cause the GO command to be issued to other sequencers. This is the state shown in FIG. At this time, other sequencers execute the user program by receiving the GO command before the Token is held. This is the state shown in FIG. That is, the contents of the user program memory area shown in FIG. 4A are executed. Sequencer SQ1 starts executing the sequence program in response to the GO command issued by itself. This is the state shown in FIG. The subsequent operation continues from step n1 again.

以上述べたように本方式では、TokenとGOコ
マンドにより複数のシーケンサ間の同期を取るこ
とができる。また第7図の状態すなわちシーケン
サSQ1が常にSOコマンドを出している状態でシ
ーケンサSQ1がプログラマモードになつた場合
には、シーケンサSQ2がi/o転送終了後、GO
コマンドあるいはTokenを待つている時に
Tokenがくるので、シーケンサSQ2がGOコマン
ドを出す様になり、以下、シーケンサSQ2によ
るGOコマンドにより、複数のシーケンサ間で同
期状態は保たれる。また新しく同期運転に入るシ
ーケンサがある場合にも、Token保持状態とGO
コマンドにより、例えば、Token保持状態でし
かもGOコマンドがきていれば第7図のの状態
でのToken保持状態であるとわかるし、GOコマ
ンドがきていなければ第7のの状態における
Token保持状態であることがわかり、同期運転
を行なう事ができる。
As described above, in this method, multiple sequencers can be synchronized using Token and GO command. In addition, if sequencer SQ1 enters programmer mode in the state shown in Figure 7, that is, in a state where sequencer SQ1 is constantly issuing SO commands, sequencer SQ2
while waiting for a command or token
Since the Token arrives, sequencer SQ2 starts issuing a GO command, and thereafter, the synchronization state is maintained between the plurality of sequencers by the GO command from sequencer SQ2. Also, if there is a sequencer that newly enters synchronous operation, the Token holding state and GO
Depending on the command, for example, if you are in the Token holding state and a GO command has been received, you will know that the Token is being held in the state shown in Figure 7, and if the GO command has not been received, it will be in the state shown in Figure 7.
It can be seen that the token is being held, and synchronized operation can be performed.

また、或るシーケンサにつないだプログラマ
(第6図の接続例参照)により他のシーケンサに
対してプログラムの書き込みや読み出し等のプロ
グラム編集作業を行なう場合についても、データ
伝送機能を用いて容易に行なうことができる。す
なわち第7図ののToken保持状態を利用して
他のシーケンサにメツセージを送る方法で行なえ
る。このことは第7図ののToken保持状態で
も可能である。
In addition, when a programmer connected to one sequencer (see connection example in Figure 6) performs program editing operations such as writing and reading programs to another sequencer, this can be easily done using the data transmission function. be able to. That is, this can be done by sending a message to another sequencer using the Token holding state shown in FIG. This is also possible in the Token holding state shown in FIG.

また本方式によれば、i/oデータ転送時間
は、接続されている実行モードのシーケンサの台
数の量に比例した時間で済み、台数が少なければ
より短かい時間でよい。
Further, according to this method, the I/O data transfer time is proportional to the number of connected sequencers in the execution mode, and the smaller the number of sequencers, the shorter the time.

第9図にメツセージのフオーマツト例を示す。
宛先アドレスは、メツセージの宛先を示す。すべ
てに送る場合には、グローバルアドレスとして
FFH等にして送る。制御コードは、このメツセ
ージの役目等を規定し、本実施例では、i/o転
送フレーム、同期フレームすなわちGOコマン
ド、プログラマー処理用フレーム等にそれぞれコ
ードを割り当てている。送り元アドレスはメツセ
ージを送り出したシーケンサのアドレスを示す。
データ個数は、メツセージ本体であるデータのバ
イト数(ワード数)を示す。データ部は、メツセ
ージ本体であるデータを任意長(データ個数が1
バイトの場合255ワード以下)まで設定できる。
誤りチエツクコードCHKは、メツセージの誤り
検査用に設けられてサムチエツクコード等の値が
書かれている。
FIG. 9 shows an example of the message format.
The destination address indicates the destination of the message. If you want to send to all, use it as a global address.
Send as FFH etc. The control code defines the role of this message, and in this embodiment, a code is assigned to an I/O transfer frame, a synchronization frame, that is, a GO command, a frame for programmer processing, etc., respectively. The source address indicates the address of the sequencer that sent the message.
The number of data indicates the number of bytes (number of words) of data that is the message body. The data part contains the data of the message body of any length (the number of data is 1).
In the case of bytes, it can be set up to 255 words or less.
The error check code CHK is provided for checking errors in messages, and has a value such as a sum check code written therein.

本実施例は、伝送路を光フアイバとしている
が、ツイストペアケーブル、同軸ケーブ等の電線
で構成してもよい。伝送路に光フアイバを使用す
ると、電磁誘導などの電気的な雑音の影響を受け
ないので、複数のシーケンサ間のデータ転送を確
実に行うことができる。また第4A図では切換ス
イツチ5により、Tx′より信号が出ていない場合
には、切換えスイツチ5がRx′につながつている
構成にしてデータのループ内への伝送を受信局で
行なわないで済む様にしているが、切換えスイツ
チ5がなくても受信時に制御部SCより再び受信
データを送信する様にしてもよい。
In this embodiment, the transmission path is an optical fiber, but it may also be configured with an electric wire such as a twisted pair cable or a coaxial cable. When an optical fiber is used as a transmission path, it is not affected by electrical noise such as electromagnetic induction, so data can be transferred reliably between multiple sequencers. In addition, in Fig. 4A, when the signal is not output from Tx' by the changeover switch 5, the changeover switch 5 is connected to Rx', so that the receiving station does not need to transmit data into the loop. However, even without the changeover switch 5, the control unit SC may transmit the received data again at the time of reception.

効 果 本発明によれば、入力装置および出力装置を内
蔵したシーケンサを複数の被制御機器に近接配置
できるので、入出力信号線の配線距離を短くでき
る。
Effects According to the present invention, a sequencer having a built-in input device and an output device can be placed close to a plurality of controlled devices, so that the wiring distance of input/output signal lines can be shortened.

また本発明では、同一構成を有するシーケンサ
を、希望する数だけ環状に接続することによつ
て、全体の動作が行われるので、規模の拡大、縮
小が容易である。しかも1台のシーケンサが故障
を生じたときには、それだけを交換すればよく、
補修が容易であり、動作がすべて不可能になつて
しまうということはない。
Furthermore, in the present invention, the entire operation is performed by connecting a desired number of sequencers having the same configuration in a ring, so that it is easy to expand or reduce the scale. Moreover, if one sequencer malfunctions, you only need to replace it.
It is easy to repair and does not completely disable operation.

各々のシーケンサは、複数のシーケンサの制御
データをすべて記憶するための制御データメモリ
およびプログラムの演算を行う制御ユニツトを内
臓し、他のシーケンサの入力信号および出力信号
を制御データメモリに記憶し、自己の入力信号と
および出力信号と同等に取り扱うことができるの
で、複数のシーケンサ相互間では入出力端子間の
配線が不要であり、入力や出力の使用効率が高
い。
Each sequencer has a built-in control data memory for storing all the control data of multiple sequencers and a control unit that performs program calculations, stores the input signals and output signals of other sequencers in the control data memory, and has a control data memory for storing all the control data of multiple sequencers. Since input signals and output signals can be treated equally, there is no need for wiring between input and output terminals between multiple sequencers, and input and output usage efficiency is high.

複数のシーケンサ間は光フアイバからなるシリ
アルデータ伝送路で連絡しているので、シーケン
サ相互間の接続が容易であり、耐ノイズ性に優れ
信頼性が高い。
Since a plurality of sequencers are connected through a serial data transmission line made of optical fiber, connection between the sequencers is easy, and the system has excellent noise resistance and high reliability.

TokenとGOコマンドによつて、複数のシーケ
ンサがプログラムの演算、演算結果の出力、入力
信号の取り込み、および制御データの伝送からな
るスキヤンを同期して繰り返すので、各々のシー
ケンサは同一スキヤン内では同一のデータに基づ
いてユーザープログラムを実行することができ
る。したがつて複数台のシーケンサを並列に動作
させても1台のシーケンサと同様に動作させるこ
とができる。さらに制御データが1スキヤン内で
変化しないことを前提にしたプログラムや、微分
命令のような1スキヤン内の情報にも対応でき
る。またプログラマを或る1つのシーケンサにつ
なぎ、プログラムの書き込みや読み出し等のプロ
グラム編集作業を行う場合についても、同期した
データ伝送機能を用いて容易に行うことができ
る。
Using the Token and GO commands, multiple sequencers synchronously repeat scans consisting of program calculations, output of calculation results, input signal capture, and control data transmission, so each sequencer is identical within the same scan. A user program can be executed based on the data. Therefore, even if a plurality of sequencers are operated in parallel, they can be operated in the same manner as a single sequencer. Furthermore, it can also support programs that assume that control data does not change within one scan, and information such as differential instructions within one scan. Furthermore, when a programmer is connected to a certain sequencer and program editing operations such as program writing and reading are performed, this can be easily done using the synchronized data transmission function.

以上のように本発明によれば、一系統の光フア
イバを用いたシリアル伝送路により複数のシーケ
ンサ間の同期運動、i/o転送、シーケンサ間で
のプログラマによるプログラム編集が可能にな
る。
As described above, according to the present invention, a serial transmission path using a single optical fiber enables synchronous movement between a plurality of sequencers, I/O transfer, and program editing by a programmer between sequencers.

なおi/o転送時間は接続されているシーケン
サの台数に比例した時間のみでよく、台数が少な
ければ、より短い時間で済む。
Note that the I/O transfer time only needs to be a time proportional to the number of connected sequencers, and the smaller the number, the shorter the time.

また本発明では、同一構成を有するシーケンサ
を、希望する数だけ環状に接続することによつ
て、全体の動作が行われるので、規模の拡大、縮
小が容易である。
Furthermore, in the present invention, the entire operation is performed by connecting a desired number of sequencers having the same configuration in a ring, so that it is easy to expand or reduce the scale.

しかも1台のシーケンサが故障を生じたときに
は、それだけを交換すればよく、保守が容易であ
り、動作が全て不可能になつてしまうということ
はない。
Furthermore, when one sequencer malfunctions, only that sequencer needs to be replaced, maintenance is easy, and there is no possibility that all operations will become impossible.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例の全体の構成を示す
ブロツク図、第2図は複数のシーケンサにおける
入出力データのメモリ上における割り付けを示す
図、第3図はシーケンサのサイクリツクに行なわ
れる実行手順を示す図、第4図および第4a図は
シーケンサの構成を示すブロツク図、第5図は複
数台のシーケンサ間で行なわれる入出力データの
使用状態を示す図、第6図は複数シーケンサの接
続状態を示すブロツク図、第7図は複数のシーケ
ンサによる同期運転を示す図、第8図はシーケン
サの動作を説明するためのフローチヤート、第9
図はメツセージのフオーマツトを示す図である。 PC1〜PCn,SQ1,SQ2,SQ3……シーケ
ンサ、U1……シーケンサ基本ユニツト、U2…
…シーケンサ入出力拡張ユニツト、OF……光フ
アイバ、IN…光信号入力部、OUT……光信号出
力部。
FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention, FIG. 2 is a diagram showing the allocation of input/output data in a plurality of sequencers in memory, and FIG. 3 is a diagram showing execution performed during sequencer cycles. Figures 4 and 4a are block diagrams showing the configuration of the sequencer, Figure 5 is a diagram showing how input/output data is used between multiple sequencers, and Figure 6 is a diagram showing the usage of input/output data between multiple sequencers. FIG. 7 is a block diagram showing the connection state, FIG. 7 is a diagram showing synchronous operation by multiple sequencers, FIG. 8 is a flowchart for explaining the operation of the sequencers, and FIG.
The figure shows the format of a message. PC1 to PCn, SQ1, SQ2, SQ3...Sequencer, U1...Sequencer basic unit, U2...
...Sequencer input/output expansion unit, OF...Optical fiber, IN...Optical signal input section, OUT...Optical signal output section.

Claims (1)

【特許請求の範囲】 1 複数のシーケンサを光フアイバから成るシリ
アルデータ伝送路で環状に連絡し、各々のシーケ
ンサは、入力信号を入力する入力装置、複数のシ
ーケンサの制御データをすべて記憶するための制
御データメモリ、前記入力信号とともにプログラ
ムの演算を行う制御ユニツト、その演算結果を出
力信号として出力する出力装置を内臓し、制御ユ
ニツトに対するシーケンスプログラムの書き込
み、読み出し等の編集を行うプログラマを含み、 各シーケンサは、 予め定めるTokenコマンドを保持していると
き、自己の入力信号および出力信号を含む自己の
制御データを他のすべてのシーケンサに転送して
読み込ませ、その後、隣接する次の1つのシーケ
ンサにTokenコマンドを放出して保持させ、 他のシーケンサから転送される制御データを自
己の制御データメモリに記憶し、 再びTokenコマンドを保持したとき、次に、
予め定めるGOコマンドを発生して他の全てのシ
ーケンサに転送し、自己および他の全てのシーケ
ンサはプログラムの演算を一斉に行い、 このGOコマンドを発生したシーケンサは、演
算終了後に、Tokenコマンドを隣接する次の1
つのシーケンサに転送して読み込ませ、この
Tokenコマンドを保持したシーケンサは、演算
動作中であればその演算が終了した後に、また演
算終了後のアイドル状態であれば直ちに、
Tokenコマンドを隣接する次の1つのシーケン
サに与え、このような動作を繰り返すことを特徴
とするシーケンサの制御方法。
[Claims] 1. A plurality of sequencers are connected in a ring through a serial data transmission path made of optical fiber, and each sequencer has an input device for inputting input signals, and an input device for storing all control data of the plurality of sequencers. It includes a control data memory, a control unit that performs program calculations with the input signals, and an output device that outputs the calculation results as output signals, and a programmer that performs editing such as writing and reading sequence programs to the control unit. When a sequencer holds a predetermined Token command, it transfers its own control data, including its own input signals and output signals, to all other sequencers to read them, and then transfers them to the next adjacent sequencer. When the Token command is released and held, the control data transferred from other sequencers is stored in its own control data memory, and the Token command is held again, next:
Generates a predetermined GO command and transfers it to all other sequencers, and the self and all other sequencers perform the program calculations at the same time. After the sequencer that generated this GO command completes the calculation, it transfers the Token command to the adjacent sequencer. Next 1 to do
Transfer it to one sequencer and read it.
The sequencer that holds the Token command will execute the command after the operation is completed if it is in operation, or immediately if it is in an idle state after the operation is completed.
A sequencer control method characterized by giving a Token command to the next adjacent sequencer and repeating such an operation.
JP4387783A 1983-03-15 1983-03-15 Control system Granted JPS59188703A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4387783A JPS59188703A (en) 1983-03-15 1983-03-15 Control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4387783A JPS59188703A (en) 1983-03-15 1983-03-15 Control system

Publications (2)

Publication Number Publication Date
JPS59188703A JPS59188703A (en) 1984-10-26
JPH0526201B2 true JPH0526201B2 (en) 1993-04-15

Family

ID=12675929

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4387783A Granted JPS59188703A (en) 1983-03-15 1983-03-15 Control system

Country Status (1)

Country Link
JP (1) JPS59188703A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101876194B1 (en) * 2015-12-11 2018-07-09 한국과학기술원 System, method and program for calculating blood pressure by plural wearable devices

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61161506A (en) * 1985-01-11 1986-07-22 Toshiba Mach Co Ltd Link system of programmable controller
JPS61161505A (en) * 1985-01-11 1986-07-22 Toshiba Mach Co Ltd Master controller of programmable controller

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57182203A (en) * 1981-05-01 1982-11-10 Hitachi Ltd Programmable sequence controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57182203A (en) * 1981-05-01 1982-11-10 Hitachi Ltd Programmable sequence controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101876194B1 (en) * 2015-12-11 2018-07-09 한국과학기술원 System, method and program for calculating blood pressure by plural wearable devices

Also Published As

Publication number Publication date
JPS59188703A (en) 1984-10-26

Similar Documents

Publication Publication Date Title
JP2016192172A (en) Information processing device, information processing program, and information processing method
US6021356A (en) Control system using programmable logic controller
WO1999022307A1 (en) Data interface and high-speed communication system using the same
JPH0526201B2 (en)
CN111095138A (en) Control device, control method for control device, information processing program, and recording medium
CA1068006A (en) Method and an arrangement intended to execute data processing instructions after each other in function units of a computer
JP3669302B2 (en) Programmable controller
CN214480671U (en) One-to-many communication circuit based on SPI communication
JP3024345B2 (en) Data link method
US11184194B2 (en) Distributed processing of process data
JPH05346810A (en) Output abnormality processing system for programmable controller
JP2000227803A (en) Method and system for controlling transmission in data link system of programmable controller
JPS6244808A (en) Control method for nc working machine group
CN110663230B (en) Local bus master and method for operating a local bus
JP3388246B2 (en) Remote I / O system for programmable controller
JPH0324682B2 (en)
JPS63280977A (en) Electromagnetic valve controller
JPH021411B2 (en)
KR19980083753A (en) Master-Slave Multiplexing Protocol
JPH0576821B2 (en)
JPH11282509A (en) Robot controller and method for controlling the same
JPH0534004Y2 (en)
SU877476A1 (en) Device for technical process program control
KR100368333B1 (en) Method for managing history information of circuit product
JPH07230304A (en) Dual control method for pc system