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 PDF

Info

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
Application number
JP2008160094A
Other languages
Japanese (ja)
Inventor
Masahiko Yokoo
雅彦 横尾
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.)
Koyo Electronics Industries Co Ltd
Original Assignee
Koyo Electronics Industries Co 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 Koyo Electronics Industries Co Ltd filed Critical Koyo Electronics Industries Co Ltd
Priority to JP2008160094A priority Critical patent/JP2010003038A/en
Publication of JP2010003038A publication Critical patent/JP2010003038A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To automatically set an ID of an extension unit of each stage only by serially connecting the extension unit. <P>SOLUTION: The extension unit of each stage transmits a signal from a preceding extension unit to a subsequent extension unit while inverting the level of the signal and latches the signal at an transmission initial time. The extension unit of each stage performs ID assignment in a connecting position within the serial connection of the extension unit of each stage based on the level inversion state of the signal input thereto and the delay state from the latch timing, whereby the extension unit of each stage can be serially connected to a PLC without requiring a user to set the ID. <P>COPYRIGHT: (C)2010,JPO&INPIT

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にシリアル接続する段階でその接続順序を間違えてしまう可能性もあるなど、の課題がある。
特開2001−024673号公報
A programmable controller (hereinafter referred to as PLC) executes a sequence program and controls a control device connected thereto. Such a PLC includes various units added at the time of system expansion to various units connected at the time of system installation. This expanded unit is hereinafter referred to as an expansion unit in this specification. For example, the input / output unit is referred to as expansion I / O. Such extended I / Os are serially connected to the PLC each time they are added. The extended I / O transmits data from an input device such as a sensor to the PLC in response to a data transmission request from the PLC, or controls an output device such as an actuator in response to a control command from the PLC. For transmission and reception with such a PLC, it is necessary to identify the extended I / O at each stage, and conventionally, an ID is set by a DIP switch (see Patent Document 1). However, such ID setting by the dip switch is troublesome for the user, and even if the ID setting is made by the dip switch, the connection order may be mistaken at the stage of serial connection to the PLC. There are challenges.
JP 2001-024673 A

本発明においては、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 latch signal line 50. The expansion I / O 20-23 at each stage stores the latch timing of the latch signal.

各段の拡張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 identification signal 0 from the PLC 10 is only for the first expansion I / O 20. The identification signal 1-3 for the subsequent stage expansion I / O 21-23 is given from the previous stage expansion I / O 20-22.

以下、図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-level identification signal 0 shown in FIG. 2A to the first-stage expansion I / O 20 through the identification signal line 40 at the time of control command transmission or data transmission request, etc., while being sent to the latch signal line 50. The latch signal is transmitted at timing t0 synchronized with the transmission. This control command or data transmission request includes the ID of the destination expansion I / O 20-23. The expansion I / O 20-23 in each stage latches the latch signal from the PLC 10 at the timing t0 in FIG. 2B, and calculates the delay time from the latch time using the timing t0 as the latch time.

拡張I/O20は、PLC10に対してシリアル接続内で初段接続位置に接続されるが、この初段の接続位置ではタイミングt0で受信したときの識別用信号0のレベルがハイレベルであれば、時刻t0で遅れ時間無しでの受信なので、その接続位置の拡張I/O20は初段のIDであると識別することができる。これにより、PLC10に初段の接続位置に拡張I/O20を接続するだけで、その拡張I/O20に初段の拡張I/OとしてのIDを自動割り付けすることができることとなる。   The extension I / O 20 is connected to the PLC 10 in the first stage connection position within the serial connection. If the level of the identification signal 0 when received at the timing t0 is high at the first stage connection position, the time Since the reception is performed without a delay time at t0, the extended I / O 20 at the connection position can be identified as the first-stage ID. As a result, by simply connecting the expansion I / O 20 to the connection position of the first stage to the PLC 10, an ID as the first expansion I / O can be automatically assigned to the expansion I / O 20.

次に、拡張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 / O 20 inverts the level of the identification signal 0 from the high level to the low level as shown in FIG. 2A and outputs the inverted signal to the signal line 41 as the identification signal 1. . The expansion I / O 21 in the next stage is that the signal 1 for identification is at the low level and the time elapsed until the signal is inverted from the high level to the low level, that is, from the timing t0 shown in FIG. Based on the delay time Δt, the expansion I / O 20 at the second connection position in the serial connection from the PLC 10 can be identified as the second expansion I / O 21. As a result, simply by connecting the expansion I / O 21 to the connection position of the second stage to the PLC 10, an ID as the expansion I / O of the second stage can be automatically assigned to the expansion I / O 21.

次に、拡張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 / O 21 inverts the level of the signal 1 from the low level to the high level as shown in FIG. 2A, and outputs the inverted signal to the signal line 42 as the identification signal 2. The expansion I / O 22 in the next stage is based on the fact that the identification signal 2 is at a high level and that the delay time difference from the first latch timing t0 is 2Δt at the time when the identification signal 2 changes to the high level. The expansion I / O 22 at the third connection position in the serial connection from the PLC 10 can be identified as the third expansion I / O 22. As a result, simply by connecting the expansion I / O 22 to the connection position of the third stage to the PLC 10, an ID as the expansion I / O of the third stage can be automatically assigned to the expansion I / O 22.

最後に、拡張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 / O 22 inverts the level of the signal 2 from the high level to the low level, and outputs the inverted signal to the signal line 43 as the identification signal 3. The expansion I / O 23 at the final stage is based on the fact that the identification signal 3 is at the low level and the delay time difference from the first latch timing t0 is 3Δt at the time when the identification signal 3 changes to the low level. From the serial connection, the expansion I / O 23 at the fourth connection position can be identified as the final expansion I / O 23. As a result, simply by connecting the extension I / O 23 to the PLC 10 at the last connection position, an ID as the last-stage extension I / O can be automatically assigned to the extension I / O 23.

そして、それぞれの拡張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.

図1は本発明の実施形態に係る拡張I/O識別方式により拡張I/Oを識別するPLCシステムのブロック構成を示す図である。FIG. 1 is a diagram showing a block configuration of a PLC system that identifies extended I / O by an extended I / O identification method according to an embodiment of the present invention. 図2は(a)にシリアル接続内での拡張I/O識別に用いる信号(識別用信号)、(b)にその識別信号のラッチタイミング、(c)に識別用信号のレベル反転状態を示す図である。2A shows a signal (identification signal) used for extension I / O identification within a serial connection, FIG. 2B shows a latch timing of the identification signal, and FIG. 2C shows a level inversion state of the identification signal. FIG.

符号の説明Explanation of symbols

10 PLC
20−23 拡張I/O
30−33 バス
40−43 信号線
50 ラッチ信号
10 PLC
20-23 Extended I / O
30-33 bus 40-43 signal line 50 latch signal

Claims (2)

PLCにユニットを、複数段、シリアル接続する際に各段のユニットにIDを自動割付する方式であって、PLCは、初段のユニットに所定レベルの信号を送信すると共に、この送信に同期して各段のユニットにこの信号の送信タイミングをラッチさせ、各段のユニットは、入力される信号のレベルを変化させて次段のユニットに伝送させることで、各段のユニットに、入力される信号のレベルと、上記送信タイミングとから、上記シリアル接続内での自身接続位置を示すIDを自動割付する、ことを特徴とする拡張ユニットのID自動割付方式。   This is a system that automatically assigns IDs to units in each stage when serially connecting units to the PLC in multiple stages. The PLC sends a signal of a predetermined level to the first stage unit and synchronizes with this transmission. Each stage unit latches the transmission timing of this signal, and each stage unit changes the level of the input signal and transmits it to the next stage unit, whereby the signal input to each stage unit. An automatic ID assignment method for an expansion unit, wherein an ID indicating its own connection position within the serial connection is automatically assigned based on the level of the transmission and the transmission timing. 上記入力される信号のレベルの変化は、レベルが反転する変化である、ことを特徴とする請求項1に記載の方式。   The method according to claim 1, wherein the level change of the input signal is a level inversion.
JP2008160094A 2008-06-19 2008-06-19 Method of automatically assigning id to each unit in serial connection Pending JP2010003038A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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