JP2010003038A - Method of automatically assigning id to each unit in serial connection - Google Patents
Method of automatically assigning id to each unit in serial connection Download PDFInfo
- Publication number
- JP2010003038A JP2010003038A JP2008160094A JP2008160094A JP2010003038A JP 2010003038 A JP2010003038 A JP 2010003038A JP 2008160094 A JP2008160094 A JP 2008160094A JP 2008160094 A JP2008160094 A JP 2008160094A JP 2010003038 A JP2010003038 A JP 2010003038A
- Authority
- JP
- Japan
- Prior art keywords
- expansion
- stage
- signal
- plc
- level
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Programmable Controllers (AREA)
Abstract
Description
本発明は、複数段に拡張I/O等のユニットがシリアル接続してあるシステムにおいてシリアル接続内での各段のユニットのIDを自動割付する方式に関するものである。 The present invention relates to a system for automatically assigning IDs of units at each stage in a serial connection in a system in which units such as expansion I / O are serially connected to a plurality of stages.
プログラマブルコントローラ(以下、PLC)はシーケンスプログラムを実行してそれに接続された制御機器をシーケンス制御するようになっている。このようなPLCには、システム設置時に接続された各種ユニットに対してシステム拡張時に増設された各種ユニットがある。この増設されたユニットを以後、本明細書では、拡張ユニットと称する。例えば入出力ユニットでは拡張I/Oと称する。このような拡張I/Oは増設されるごとに相互にPLCに対してシリアル接続される。拡張I/Oは、PLCからのデータ送信要求に応答してセンサなどの入力デバイスからのデータをPLCに送信したり、PLCからの制御指令に応答してアクチュエータなどの出力デバイスを制御する。こうしたPLCとの間での送受信には、各段の拡張I/Oを識別する必要があり、従来では、ディップスイッチでIDの設定が行われる(特許文献1参照)。しかしながら、このようなディップスイッチによるID設定はユーザにとり面倒であると共に、折角、ディップスイッチでID設定しても、PLCにシリアル接続する段階でその接続順序を間違えてしまう可能性もあるなど、の課題がある。
本発明においては、PLCに拡張I/O等のユニットをシリアル接続しさえすれば、シリアル接続内での各段のユニットに対するIDを自動割付できるようにすることを課題とする。 An object of the present invention is to enable automatic assignment of IDs to units at each stage within a serial connection as long as a unit such as an expansion I / O is serially connected to the PLC.
本発明は、PLCにユニットを、複数段、シリアル接続する際に各段のユニットにIDを自動割付する方式であって、PLCは、初段のユニットに所定レベルの信号を送信すると共に、この送信に同期して各段のユニットにこの信号の送信タイミングをラッチさせ、各段のユニットは、入力される信号のレベルを変化させて次段のユニットに伝送させることで、各段のユニットに、入力される信号のレベルと、上記送信タイミングとから、上記シリアル接続内での自身接続位置を示すIDを自動割付することを特徴とするものである。 The present invention is a method of automatically assigning an ID to each stage unit when serially connecting a unit to a PLC in a plurality of stages. The PLC transmits a signal of a predetermined level to the first stage unit and transmits the signal. The transmission timing of this signal is latched in each stage unit in synchronization with each other, and each stage unit changes the level of the input signal and transmits it to the next stage unit. Based on the level of the input signal and the transmission timing, an ID indicating its own connection position in the serial connection is automatically assigned.
好ましくは、上記入力される信号のレベルの変化は、レベルが反転する変化である。 Preferably, the change in the level of the input signal is a change in which the level is inverted.
本発明によると、PLCに対して複数段の拡張ユニットそれぞれをシリアル接続するだけで識別用信号のレベルとラッチタイミングとからそれぞれのIDを自動割り付けすることができるので、従来のようにユーザ−がディップスイッチで各段の拡張ユニットにわざわざID設定をして割り付ける必要がなくなり、PLCシステムでの拡張ユニットの増設作業が極めて効率化することに加えて、PLCに所要のIDをもつ拡張ユニットの接続位置に別のIDの拡張ユニットを誤接続してしまうようなこともなくなる。 According to the present invention, each ID can be automatically assigned based on the level of the identification signal and the latch timing by simply serially connecting each of a plurality of expansion units to the PLC. There is no need to set and assign IDs to expansion units at each stage with DIP switches. In addition to making the expansion of expansion units in the PLC system extremely efficient, connecting expansion units with the required IDs to the PLC There is no possibility that an extension unit with another ID is erroneously connected to the position.
以下、添付した図面を参照して、本発明の実施の形態に係るシリアル接続内での拡張ユニットのID自動割付方式を説明する。なお、実施の形態では拡張ユニットとして拡張I/Oを参照して説明するが、拡張ユニットはこの拡張I/Oに限定されるものではなく他のユニットも含む。図1はPLCに対して複数段、実施の形態では4段の拡張I/Oがシリアル接続されてなるPLCシステムを示し、図2は(a)にシリアル接続内での拡張I/O識別に用いる信号(識別用信号)、(b)にその識別信号のラッチタイミング、(c)に識別用信号のレベル反転状態を示す。これらの図を参照して、PLC10に対して複数段、実施の形態では4段になって、拡張I/O20−23がバス30−33と識別用信号線40−43とでシリアル接続されている。PLC10から各段拡張I/O20−23にはラッチ信号線50を介してラッチ信号が入力される。各段の拡張I/O20−23はラッチ信号のラッチタイミングを記憶する。
Hereinafter, with reference to the accompanying drawings, an automatic ID assignment method for expansion units in a serial connection according to an embodiment of the present invention will be described. In the embodiment, the expansion unit is described with reference to the expansion I / O. However, the expansion unit is not limited to the expansion I / O and includes other units. FIG. 1 shows a PLC system in which a plurality of stages of expansion I / Os are connected to a PLC, and in the embodiment, four stages of expansion I / Os are serially connected. FIG. 2A shows expansion I / O identification in a serial connection. The signal to be used (identification signal), (b) shows the latch timing of the identification signal, and (c) shows the level inversion state of the identification signal. Referring to these figures, the PLC 10 has a plurality of stages, in the embodiment, four stages, and the expansion I / O 20-23 is serially connected by the bus 30-33 and the identification signal line 40-43. Yes. A latch signal is input from the PLC 10 to each stage expansion I / O 20-23 via a
各段の拡張I/O20−23には図示略の入力デバイスや出力デバイスが接続されている。PLC10から各段の拡張I/O20−23への制御指令送信や、各段の拡張I/O20−23からPLC10へのデータ送信はバス30−33を介して行われる。 An input device and an output device (not shown) are connected to the expansion I / O 20-23 at each stage. Control command transmission from the PLC 10 to the expansion I / O 20-23 of each stage and data transmission from the expansion I / O 20-23 of each stage to the PLC 10 are performed via the bus 30-33.
PLC10からの識別用信号0は初段の拡張I/O20に対してのみである。それ以降の段の拡張I/O21−23への識別用信号1−3は、前段の拡張I/O20−22から与えられる。
The
以下、図2(a)−(c)を参照して各段の拡張I/O20−23のシリアル接続内での識別を説明する。 Hereinafter, the identification within the serial connection of the expansion I / O 20-23 of each stage will be described with reference to FIGS.
PLC10は、制御指令送信時またはデータ送信要求時等において初段拡張I/O20に識別用信号線40を通じて図2(a)で示すハイレベルの識別用信号0を送信する一方、ラッチ信号線50にラッチ信号を上記送信に同期したタイミングt0で送信する。この制御指令やデータ送信要求にはその目的先の拡張I/O20−23のIDを含む。各段の拡張I/O20−23はPLC10からのラッチ信号を図2(b)のタイミングt0でラッチし、そのタイミングt0をラッチ時刻としそのラッチ時刻からの遅れ時間を演算する。
The PLC 10 transmits the high-
拡張I/O20は、PLC10に対してシリアル接続内で初段接続位置に接続されるが、この初段の接続位置ではタイミングt0で受信したときの識別用信号0のレベルがハイレベルであれば、時刻t0で遅れ時間無しでの受信なので、その接続位置の拡張I/O20は初段のIDであると識別することができる。これにより、PLC10に初段の接続位置に拡張I/O20を接続するだけで、その拡張I/O20に初段の拡張I/OとしてのIDを自動割り付けすることができることとなる。
The extension I /
次に、拡張I/O20は識別用信号0のレベルを図2(a)で示すようにハイレベルからローレベルに反転させ、その反転させた信号を識別用信号1として信号線41に出力する。次の段の拡張I/O21は、識別用信号1がローレベルであることと、このハイレベルからローレベルに反転するまでに経過した時間、すなわち、図2(b)で示すタイミングt0からの遅れ時間Δtと、により、PLC10からシリアル接続内で2段目の接続位置の拡張I/O20は、2段目の拡張I/O21であると識別することができる。これにより、PLC10に2段目の接続位置に拡張I/O21を接続するだけで、その拡張I/O21に2段目の拡張I/OとしてのIDを自動割り付けすることができることとなる。
Next, the expansion I /
次に、拡張I/O21は信号1のレベルを図2(a)で示すようにローレベルからハイレベルに反転させ、その反転させた信号を識別用信号2として信号線42に出力する。次の段の拡張I/O22は、識別用信号2がハイレベルであることと、このハイレベルに変化した時刻の、最初のラッチタイミングt0からの遅れ時刻差が2Δtであることと、により、PLC10からシリアル接続内で3段目の接続位置の拡張I/O22は、3段目の拡張I/O22であると識別することができる。これにより、PLC10に3段目の接続位置に拡張I/O22を接続するだけで、その拡張I/O22に3段目の拡張I/OとしてのIDを自動割り付けすることができることとなる。
Next, the extension I /
最後に、拡張I/O22は信号2のレベルをハイレベルからローレベルに反転させ、その反転させた信号を識別用信号3として信号線43に出力する。終段の拡張I/O23は、識別用信号3がローレベルであることと、このローレベルに変化した時刻の、最初のラッチタイミングt0からの遅れ時刻差が3Δtであることと、により、PLC10からシリアル接続内で4段目の接続位置の拡張I/O23は、終段の拡張I/O23であると識別することができる。これにより、PLC10に最後の接続位置に拡張I/O23を接続するだけで、その拡張I/O23に終段の拡張I/OとしてのIDを自動割り付けすることができることとなる。
Finally, the expansion I /
そして、それぞれの拡張I/O20−23はシリアル接続内で自身がPLC10から何段目の拡張I/Oであるかを示す自身IDを上記のように識別することができるようになると共に、制御指令先やデータ送信要求先の拡張I/OのIDと照合して自身IDと一致すれば、その制御指令や送信要求に応答処理する。 Each extension I / O 20-23 can identify itself as an ID indicating the number of extension I / Os from the PLC 10 within the serial connection as described above. If the ID of the extended I / O of the command destination or the data transmission request destination is checked to match the ID itself, a response process is performed for the control command or transmission request.
以上説明したように本実施形態においては、ユーザは、各段の拡張I/O20−23をPLC10に単にシリアル接続するのみで自動的に各段の拡張I/O20−23にそれぞれIDを自動割付することが行われるようになり、PLCシステムでの拡張ユニットの増設作業が極めて効率化することに加えて、PLCに所要のIDをもつ拡張ユニットの接続位置に別のIDの拡張ユニットを誤接続してしまうようなこともなくなる。 As described above, in this embodiment, the user automatically assigns an ID to each expansion I / O 20-23 automatically by simply serially connecting each expansion I / O 20-23 to the PLC 10. In addition to making the expansion unit expansion work in the PLC system extremely efficient, the expansion unit with another ID is erroneously connected to the connection position of the expansion unit having the required ID for the PLC. There will be no such thing.
10 PLC
20−23 拡張I/O
30−33 バス
40−43 信号線
50 ラッチ信号
10 PLC
20-23 Extended I / O
30-33 bus 40-43
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008160094A JP2010003038A (en) | 2008-06-19 | 2008-06-19 | Method of automatically assigning id to each unit in serial connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008160094A JP2010003038A (en) | 2008-06-19 | 2008-06-19 | Method of automatically assigning id to each unit in serial connection |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010003038A true JP2010003038A (en) | 2010-01-07 |
Family
ID=41584728
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008160094A Pending JP2010003038A (en) | 2008-06-19 | 2008-06-19 | Method of automatically assigning id to each unit in serial connection |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010003038A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011216085A (en) * | 2010-03-15 | 2011-10-27 | Omron Corp | Programmable controller |
JP2018127303A (en) * | 2017-02-07 | 2018-08-16 | 株式会社プレッシオ | Control system |
CN108663983A (en) * | 2018-05-02 | 2018-10-16 | 泰州职业技术学院 | A kind of implementation method of express delivery cabinet intelligence system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04112304A (en) * | 1990-09-03 | 1992-04-14 | Fanuc Ltd | I/o module check system |
WO2005033812A1 (en) * | 2003-10-06 | 2005-04-14 | Mitsubishi Denki Kabushiki Kaisha | Sequence control device |
-
2008
- 2008-06-19 JP JP2008160094A patent/JP2010003038A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04112304A (en) * | 1990-09-03 | 1992-04-14 | Fanuc Ltd | I/o module check system |
WO2005033812A1 (en) * | 2003-10-06 | 2005-04-14 | Mitsubishi Denki Kabushiki Kaisha | Sequence control device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011216085A (en) * | 2010-03-15 | 2011-10-27 | Omron Corp | Programmable controller |
JP2018127303A (en) * | 2017-02-07 | 2018-08-16 | 株式会社プレッシオ | Control system |
CN108663983A (en) * | 2018-05-02 | 2018-10-16 | 泰州职业技术学院 | A kind of implementation method of express delivery cabinet intelligence system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3076251B1 (en) | Information processing apparatus, information processing program, and information processing method | |
JP6465620B2 (en) | Control system and control method | |
US10284692B2 (en) | Control device and communication device | |
EP3076293A2 (en) | Control apparatus | |
JP6275320B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM | |
JP5987069B2 (en) | Numerical control system with internal register self-reset function by serial communication signal monitoring | |
CN105308570A (en) | Method and apparatus for data transfer to the cyclic tasks in a distributed real-time system at the correct time | |
JP2010003038A (en) | Method of automatically assigning id to each unit in serial connection | |
JP5911044B1 (en) | Program generating apparatus and method thereof | |
JP6230757B2 (en) | Communication device and power conversion device | |
JP4540637B2 (en) | Method and communication module for controlling access time to system bus | |
JP2011191874A (en) | Data signal transmission and reception method | |
US9971326B2 (en) | Sequencer system and address setting method | |
JP2011097124A (en) | Vehicle-mounted network device | |
WO2017047657A1 (en) | Buffer control apparatus, communication node, and relay apparatus | |
JP6026051B1 (en) | CPU unit, target unit and PLC system | |
JP5107153B2 (en) | Programmable controller system | |
CN104062938A (en) | Method For Initializing Expended Modules In Programmable Logic Controller System | |
CN108541307B (en) | Programmable controller and synchronization control method | |
JP2020101995A (en) | Control system and control apparatus | |
JP2006209646A (en) | Distributed control system | |
JP2011191875A (en) | Signal transmission control method in plc system and the plc system | |
CN109997338B (en) | Relay device, relay method, and computer-readable storage medium | |
JP2006157271A (en) | Synchronization method of serial transmission system | |
CN116137951A (en) | Communication device, communication system, communication control method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110614 |
|
A977 | Report on retrieval |
Effective date: 20120828 Free format text: JAPANESE INTERMEDIATE CODE: A971007 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120925 |
|
A02 | Decision of refusal |
Effective date: 20130226 Free format text: JAPANESE INTERMEDIATE CODE: A02 |