WO2020204281A1 - 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법 - Google Patents
모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법 Download PDFInfo
- Publication number
- WO2020204281A1 WO2020204281A1 PCT/KR2019/012080 KR2019012080W WO2020204281A1 WO 2020204281 A1 WO2020204281 A1 WO 2020204281A1 KR 2019012080 W KR2019012080 W KR 2019012080W WO 2020204281 A1 WO2020204281 A1 WO 2020204281A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- slave
- communication
- modbus
- master
- serial number
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40052—High-speed IEEE 1394 serial bus
- H04L12/40078—Bus configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40169—Flexible bus arrangements
- H04L12/40176—Flexible bus arrangements involving redundancy
- H04L12/40195—Flexible bus arrangements involving redundancy by using a plurality of nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40228—Modbus
Definitions
- the present invention relates to a communication setting method of a network device connected in a Modbus multi-drop method.
- Industrial devices such as inverters or programmable logic controllers (PLCs) provide mutual communication connectivity through various fieldbus communications to be monitored or controlled by users.
- Fieldbus is a collective name for industrial computer network protocols used for real-time distributed control.
- the user monitors or controls an intermediate control system such as PLC in the uppermost control system through fieldbus communication, and the intermediate control system monitors or controls the lowest-level devices such as inverters through fieldbus communication.
- the user can directly monitor or control the lowest order devices such as inverters in the highest level control system through fieldbus communication.
- FIG. 1 shows a network connection configuration between a master and a slave connected by a conventional RS485 Modbus.
- the user checks the communication speed of the Master 100 and adjusts the communication speed of all the slaves 120, 130, 140, 150 connected to the master 100. After manual adjustment, the communication IDs of the slaves 120, 130, 140, 150 had to be manually set so that they were different from each other.
- the communication setting between the master and the slave requires time and cost as the user must manually set the communication setting.
- the communication speed of each slave ID can be automatically registered, so that the communication speed and ID of the slaves can be quickly set.
- a method for setting communication between a master and a plurality of slaves connected by a Modbus multi-drop method includes the steps of requesting serial number transmission from the master to all slaves, and receiving serial numbers from each slave according to the request. And, generating an ID of each slave based on the serial number, registering the slave of the ID in a blacklist, providing the ID to the corresponding slave to request ID registration, and the ID registration It may include the step of removing the slave from the blacklist.
- the receiving of the serial number includes initializing a random number generator with its own serial number in each of the slaves, and after a time delay by a time delay value corresponding to a random number generated through the initialized random number generator. Transmitting the own serial number to the master, and receiving a serial number of each slave transmitted at different times according to the time delay value from the master.
- the step of removing from the blacklist includes receiving an ID normal registration response from a corresponding slave that has normally registered the ID as its own ID, and removing the corresponding slave that transmitted the ID normal registration response from the blacklist. It may include steps.
- the master may further include the step of requesting ID registration by transmitting the serial number and ID of the corresponding slave again after a predetermined time elapses.
- the step of storing and managing information on the slaves for which ID registration has been completed as a white list may be further included.
- the steps of transmitting data for setting the communication speed at different communication speeds preset by the IDs of all the slaves from the master, identifying the ID of the slave corresponding to the data for each communication speed, and the identified It may include the step of setting the communication speed with the slave corresponding to the ID as the communication speed at which the data is transmitted.
- a different ID for each serial number may be set based on the serial number of each slave.
- a master in communication setting of a network device connected by a Modbus multi-drop method, automatically generates and registers a slave ID based on the serial number of the slave, and communicates using the registered slave ID.
- the communication speed for each slave ID can be automatically registered, so that the communication speed and ID of the slaves can be set quickly.
- FIG. 1 is a block diagram of a network connection between a master and a slave connected by a conventional RS485 Modbus.
- FIG. 2 is a diagram illustrating a network connection configuration between a master and a slave connected by RS485 Modbus according to an embodiment of the present invention.
- FIG. 3 is a signal processing flow diagram for setting an ID between a master and a slave connected in a Modbus multi-drop method according to an embodiment of the present invention.
- FIG. 4 is a signal processing flow diagram for setting a communication speed between a master and a slave connected in a Modbus multi-drop method according to an embodiment of the present invention.
- FIG. 2 is a diagram showing a network connection configuration between a master and a slave connected by RS485 Modbus according to an embodiment of the present invention.
- the master 200 may be a device capable of communication such as a PLC
- the slaves 220, 230, 240, 250 may be a communication target device capable of communication such as a motor controlled by a PLC, but are not limited thereto. .
- the master 200 may include a control unit 202, a memory unit 204, a communication unit 206, and the like.
- the communication unit 206 communicates with the slave 220 in the RS485 Modbus method under the control of the control unit 202.
- the memory unit 200 stores an operation program that controls the overall operation of the master, and according to an embodiment of the present invention, a black list for which slave ID registration is not completed and a white list for which slave ID registration is completed ( white list).
- the control unit 202 controls the overall operation of the master 200 according to the operation program stored in the memory unit 204.
- control unit 202 is a message requesting transmission of a serial number to all slaves 220, 230, 240, 250 for automatic ID setting of a plurality of slaves connected through a network according to an embodiment of the present invention. Broadcast (broadcast), and receives a serial number from each of the slaves (220, 230, 240, 250). This serial number means a unique number assigned to each slave (220, 230, 240, 250), and each slave (220, 230, 240, 250) when receiving the above request from the master 200 itself The serial number of is transmitted to the master 200.
- control unit 202 generates the ID of each slave 220, 230, 240, 250 based on the received serial number. Then, the control unit 202 removes the slave whose ID registration is normally performed from the black list and registers it in the white list.
- control unit 202 generates IDs of each of the slaves 220, 230, 240, and 250, and then transmits the ID information to the slaves 220 and requests them to be registered as their IDs.
- control unit 202 receives a response indicating that the ID is normally registered from each of the slaves 220, 230, 240, and 250 that have normally registered the ID.
- the controller 200 requests ID registration again by transmitting the serial number and ID of the corresponding slave again after a certain period of time for the slave for which the normal registration response has not been received.
- the controller 202 determines a communication speed with each of the slaves 220, 230, 240, 250 when ID registration for all the slaves 220, 230, 240, 250 is completed. At this time, in determining the communication speed, the control unit 202 transmits the communication speed setting data to each of the slaves 220, 230, 240, 250 at various communication speeds preset through the communication unit 206, and then communicates Identifies the slave ID that responds to the speed setting data. Subsequently, the control unit 202 sets the communication speed with the slave corresponding to the identified ID as the communication speed corresponding to the communication speed setting data.
- each of the slaves 220, 230, 240, 250 has a specific communication speed at the time of manufacture, and the specific communication speed may be the same or different depending on the slaves.
- the master 200 transmits and reports data at a specific communication speed while knowing information about different communication speeds that the slaves 220, 230, 240, 250 connected to the network may have, If there is a slave that responds to data, the communication speed of the slave is set to the transmission speed of the data.
- the slaves 220, 230, 240, 250 may include a control unit 226, a random number generator 224, a communication unit 222, and the like.
- the communication unit 222 communicates with the master 200 in the RS485 Modbus method under the control of the controller 226.
- the controller 226 transmits the serial number of the slave 220 when there is a request from the master 200 for automatic slave ID setting according to an embodiment of the present invention. And when the communication unit 222 receives the slave ID set from the master 200 according to the serial number, the control unit 226 registers it as the ID of the corresponding slave.
- control unit 226 initializes the random number generator 224 with a unique serial number assigned to the slave 220 in transmitting the serial number of the slave 220 at the request of the master 200 After a time delay by the amount of time, it transmits its own serial number to the master 200 through the communication unit 222.
- control unit 226 registers the ID of the slave 220, and when data is transmitted from the master 200 at a specific communication speed, if the data is transmitted at a communication speed set in the slave 220, the corresponding data is It receives and transmits a response to the master 200. Accordingly, the master 200 can check the communication speed set in the slave 220 based on the data response of the slave 220.
- FIG. 3 is a diagram illustrating a signal processing flow for setting an ID between a master and a slave connected in a Modbus multi-drop method according to an embodiment of the present invention.
- the master 200 requests transmission of a serial number to the slave 220 in order to automatically set the ID for the slave 220 (S300).
- the serial number transmission request is transmitted by broadcast so that all slaves can receive it.
- the slave 220 receives a serial number request from the master 200, it initializes the random number generator 224 with a unique serial number assigned to its slave 220, and a time corresponding to a random number time A delay value is generated (S302).
- each slave (220, 230, 240, 250) generates a time delay value with its own serial number
- all time delay values are set differently, and accordingly, the time delay value is transmitted from the slave 220 to the master 200
- the serial number is transmitted at different times to prevent data collision.
- the slave 220 is delayed by a time delay value and transmits the serial number assigned to it to the master 200 (S304).
- the master 200 receives a unique serial number assigned to the slave 220 from the slave 220. Then, the master 200 generates the ID of the slave 220 based on the received serial number, and then registers the slave 220 for which the ID is generated in the blacklist (S306).
- the master 200 transmits the ID information to the corresponding slave 220 and requests to be registered as the ID of the slave 220 (S308).
- the slave 220 registers the ID generated and transmitted from the master 200 as its slave ID (S310). Then, the slave 220 transmits a response notifying that the ID has been normally registered to the master (S312).
- the master 200 removes the slave 220 for which the ID is normally registered from the black list storing the slave list requiring ID registration (S314). Then, the master 200 registers the slave 220 whose ID is normally registered in the white list (S316).
- a white list may mean a list storing a list of slaves for which ID registration is normally performed.
- the master 200 does not remove the slave 220 from the blacklist for the slave 220 that does not receive a response indicating that ID registration has been normally performed. Then, the master 200 transmits the serial number and ID of the slave 220 again after a certain period of time to request ID registration again.
- FIG. 4 is a diagram illustrating a signal processing flow for setting a communication speed between a master and a slave connected in a Modbus multi-drop method according to an embodiment of the present invention.
- the master 200 determines a communication speed with the slave 220.
- the slave 220 connected to the master 200 may have different communication speeds with the master 200 according to characteristics of the corresponding device.
- Information on various communication speeds capable of communication between the master 200 and the slave 220 may be provided to the master 200, but the master 200 does not know which slave is set to which communication speed. .
- the master 200 selects one communication speed among a plurality of preset communication speeds, generates data for setting the communication speed at the selected communication speed, and transmits the data to the slave 220 (S400).
- the slave 220 analyzes the data to check the transmission speed at which the data is transmitted, and then checks whether it matches the communication speed set therein (S402).
- the slave 220 forwards the communication speed setting data to the next adjacent slave (S404).
- the slave 220 transmits an ACK response to the communication speed setting data transmitted from the master 200 to the master 200 (S406).
- the master 200 identifies the ID of the slave 220 in response to the communication speed setting data (S408). And the master 200 registers the communication speed of the identified slave ID as a communication speed corresponding to the data for setting the communication speed (S410).
- the master in the communication setting of a network device connected by a Modbus multi-drop method, automatically generates and registers a slave ID based on the serial number of the slave, and the registered slave
- the communication speed and ID of the slaves can be set quickly by automatically registering the communication speed for each slave ID by identifying the slave ID that responds to the data produced for each communication speed using the ID.
- All of the methods and procedures disclosed herein may be implemented at least partially using one or more computer programs or components. These components include a series of computer instructions on any conventional computer-readable medium or machine-readable medium, including volatile and non-volatile memory such as RAM, ROM, flash memory, magnetic or optical disks, optical memory or other storage devices. Can be provided as Instructions can be provided as software or firmware, and can be implemented in whole or in part on a hardware component such as an ASIC, FPGA, DSP or other similar device. The instructions may be configured to be executed by one or more processors or other hardware components that perform or facilitate the performance of all or part of the disclosed methods and procedures when executing a series of computer instructions.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
본 발명은 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정에 관한 것이다. 본 발명의 일 실시예에 따르면, 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정에 있어서, 마스터에서 슬레이브의 시리얼 번호에 기반하여 슬레이브 ID를 자동 생성하여 등록하고, 등록된 슬레이브 ID를 이용하여 통신 속도별 제작된 데이터에 응답한 슬레이브 ID를 식별하는 것을 통해 슬레이브 ID별 통신 속도를 자동 등록할 수 있도록 함으로써 슬레이브들의 통신 속도와 ID를 신속하게 설정할 수 있다.
Description
본 발명은 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법에 관한 것이다.
인버터 또는 프로그램가능 컨트롤러(programmable logic controller, PLC) 등과 같은 산업용 기기는 사용자에 의해 모니터링 또는 제어되기 위해 다양한 필드버스 통신을 통해 상호간 통신연결성을 제공한다. 필드버스는 실시간 분산제어를 위해 사용되는 산업용 컴퓨터 네트워크 프로토콜의 통칭이다.
사용자는 필드버스 통신을 통해 최상위 제어시스템에서 PLC와 같은 중간 제어시스템을 모니터링 또는 제어하고, 중간 제어시스템은 필드버스 통신을 통해 인버터 등 최하위 기기를 모니터링 또는 제어한다. 또는, 사용자는 필드버스 통신을 통해 최상위 제어시스템에서 인버터 등 최하위 기기를 직접 모니터링 또는 제어할 수 있다.
이러한 산업용 기기를 모니터링 또는 제어하기 위한 다양한 필드버스 통신 방식이 존재하며, 그 중 대표적인 통신 방식으로 RS485 모드버스(Modbus)가 있다.
도 1은 종래 RS485 모드버스로 연결된 마스터와 슬레이브간 네트워크 연결 구성을 도시한 것이다.
도 1에서와 같은 RF485 모드버스 통신 방식에서는 사용자가 마스터(Master)(100)의 통신속도를 확인하여 마스터(100)와 연결된 모든 슬레이브(Slave)(120, 130, 140, 150)의 통신 속도를 수동으로 맞춘 후, 슬레이브(120, 130, 140, 150)의 통신 ID가 서로 다르도록 수동으로 일일이 설정하여야 하였다.
위와 같이 종래에는 통신 설정을 사용자가 일일이 수동으로 설정하여야 함에 따라 마스터와 슬레이브간 통신 설정에 시간 및 비용이 소요되는 문제점이 있었다.
또한, 종래에는 슬레이브에 ID를 표시하여 주는 디스플레이가 없는 경우 ID 확인이 어려워 사용자가 슬레이브에 ID를 설정하는데 어려움이 있었다.
본 발명의 목적은 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정에 있어서, 마스터에서 슬레이브의 시리얼 번호에 기반하여 슬레이브 ID를 자동 생성하여 등록하고, 등록된 슬레이브 ID를 이용하여 통신 속도별 제작된 데이터에 응답한 슬레이브 ID를 식별하는 것을 통해 슬레이브 ID별 통신 속도를 자동 등록할 수 있도록 함으로써 슬레이브들의 통신 속도와 ID를 신속하게 설정할 수 있도록 하는 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법을 제공하는 것이다.
본 발명의 목적들은 이상에서 언급한 목적으로 제한되지 않으며, 언급되지 않은 본 발명의 다른 목적 및 장점들은 하기의 설명에 의해서 이해될 수 있고, 본 발명의 실시예에 의해 보다 분명하게 이해될 것이다. 또한, 본 발명의 목적 및 장점들은 특허 청구 범위에 나타낸 수단 및 그 조합에 의해 실현될 수 있음을 쉽게 알 수 있을 것이다.
본 발명에 따른 모드버스 멀티 드롭 방식으로 연결된 마스터와 복수의 슬레이브간 통신 설정 방법은, 상기 마스터에서 모든 슬레이브로 시리얼 번호 전송을 요청하는 단계와, 상기 요청에 따라 각 슬레이브로부터 시리얼 번호를 수신하는 단계와, 상기 시리얼 번호를 기반으로 상기 각 슬레이브의 ID를 생성하고, 상기 ID의 슬레이브를 블랙리스트에 등록하는 단계와, 상기 ID를 해당 슬레이브에 제공하여 ID 등록을 요청하는 단계와, 상기 ID 등록이 정상적으로 이루어진 해당 슬레이브에 대해서는 상기 블랙리스트에서 제거하는 단계를 포함할 수 있다.
또한, 상기 시리얼 번호를 수신하는 단계는, 상기 각 슬레이브에서 자신의 시리얼 번호로 난수 생성기를 초기화하는 단계와, 상기 초기화된 난수 생성기를 통해 생성된 임의의 난수에 대응하는 시간 지연값만큼 시간 지연 후 상기 자신의 시리얼 번호를 상기 마스터로 전송하는 단계와, 상기 마스터에서 상기 시간 지연값에 따라 서로 다른 시간에 전송되는 상기 각 슬레이브의 시리얼 번호를 수신하는 단계를 포함할 수 있다.
또한, 상기 블랙리스트에서 제거하는 단계는, 상기 ID를 자신의 ID로 정상적으로 등록한 해당 슬레이브로부터 ID 정상등록 응답을 수신하는 단계와, 상기 ID 정상등록 응답을 전송한 해당 슬레이브를 상기 블랙리스트에서 제거하는 단계를 포함할 수 있다.
또한, 상기 ID 정상등록 응답이 수신되지 않은 슬레이브에 대해서는 상기 마스터에서 일정 시간 경과 후 다시 해당 슬레이브의 시리얼 번호와 ID를 전송하여 ID 등록을 요청하는 단계를 더 포함할 수 있다.
또한, 상기 모든 슬레이브에 대한 ID 등록이 완료되는 경우 상기 ID 등록이 완료된 슬레이브에 대한 정보를 화이트리스트로 저장하여 관리하는 단계를 더 포함할 수 있다.
또한, 상기 마스터에서 상기 모든 슬레이브의 ID로 기설정된 서로 다른 통신 속도로 통신속도 설정용 데이터를 전송하는 단계와, 통신 속도별 상기 데이터에 응답하는 해당 슬레이브의 ID를 식별하는 단계와, 상기 식별된 ID에 해당하는 슬레이브와의 통신 속도를 상기 데이터를 전송한 통신 속도로 설정하는 단계를 포함할 수 있다.
또한, 상기 ID를 생성하는 단계에서, 상기 각 슬레이브의 시리얼 번호를 기반으로 각 시리얼 번호별 서로 다른 ID를 설정할 수 있다.
본 발명의 일 실시예에 따르면, 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정에 있어서, 마스터에서 슬레이브의 시리얼 번호에 기반하여 슬레이브 ID를 자동 생성하여 등록하고, 등록된 슬레이브 ID를 이용하여 통신 속도별 제작된 데이터에 응답한 슬레이브 ID를 식별하는 것을 통해 슬레이브 ID별 통신 속도를 자동 등록할 수 있도록 함으로써 슬레이브들의 통신 속도와 ID를 신속하게 설정할 수 있다.
상술한 효과와 더불어 본 발명의 구체적인 효과는 이하 발명을 실시하기 위한 구체적인 사항을 설명하면서 함께 기술한다.
도 1은 종래 RS485 모드버스로 연결된 마스터와 슬레이브간 네트워크 연결 구성도.
도 2는 본 발명의 일 실시예에 따른 RS485 모드버스로 연결된 마스터와 슬레이브간 네트워크 연결 구성도.
도 3은 본 발명의 일 실시예에 따른 모드버스 멀티 드롭 방식으로 연결된 마스터와 슬레이브간 ID 설정을 위한 신호 처리 흐름도.
도 4는 본 발명의 일 실시예에 따른 모드버스 멀티 드롭 방식으로 연결된 마스터와 슬레이브간 통신 속도 설정을 위한 신호 처리 흐름도.
전술한 목적, 특징 및 장점은 첨부된 도면을 참조하여 상세하게 후술되며, 이에 따라 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 것이다. 본 발명을 설명함에 있어서 본 발명과 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 상세한 설명을 생략한다. 이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 실시예를 상세히 설명하기로 한다. 도면에서 동일한 참조부호는 동일 또는 유사한 구성요소를 가리키는 것으로 사용된다.
도 2는 본 발명의 일 실시예에 따른 RS485 모드버스로 연결된 마스터와 슬레이브간 네트워크 연결 구성을 도시한 것이다.
이때, 마스터(200)는 PLC 등과 같은 통신 가능한 기기일 수 있으며, 슬레이브(220, 230, 240, 250)는 PLC에 의해 제어되는 모터 등과 같은 통신 가능한 제어 대상 기기일 수 있으나, 이에 한정되는 것은 아니다.
도 2를 참조하면, 먼저, 마스터(200)는 제어부(202), 메모리부(204), 통신부(206) 등을 포함할 수 있다.
통신부(206)는 제어부(202)의 제어에 따라 RS485 모드버스 방식으로 슬레이브(220)와 통신을 수행한다. 메모리부(200)는 마스터의 전반적인 동작을 제어하는 동작 프로그램이 저장되어 있으며, 본 발명의 일 실시예에 따라 슬레이브 ID 등록이 완료되지 않은 블랙리스트(black list)와 슬레이브 ID 등록이 완료된 화이트리스트(white list)를 포함할 수 있다.
제어부(202)는 메모리부(204)에 저장된 동작 프로그램에 따라 마스터(200)의 전반적인 동작을 제어한다.
또한, 제어부(202)는 본 발명의 실시예에 따라 네트워크로 연결된 복수의 슬레이브에 대한 ID 자동 설정을 위해 모든 슬레이브(220, 230, 240, 250)로 시리얼 번호(serial number) 전송을 요청하는 메시지를 브로드캐스트(broadcast)하고, 각 슬레이브(220, 230, 240, 250)로부터 시리얼 번호를 수신한다. 이러한 시리얼 번호는 각 슬레이브(220, 230, 240, 250)에 할당된 고유한 번호를 의미하며, 각 슬레이브(220, 230, 240, 250)는 마스터(200)로부터 위와 같은 요청을 수신하는 경우 자신의 시리얼 번호를 마스터(200)로 전송하게 된다.
또한, 제어부(202)는 수신된 시리얼 번호를 기반으로 각 슬레이브(220, 230, 240, 250)의 ID를 생성한다. 그리고 제어부(202)는 ID 등록이 정상적으로 이루어진 해당 슬레이브를 블랙리스트에서 제거하고 화이트리스트에 등록한다.
한편, 제어부(202)는 각 슬레이브(220, 230, 240, 250)의 ID를 생성한 후 슬레이브(220)에게 해당 ID 정보를 전송하여 자신의 ID로 등록하도록 요청한다. 그리고 제어부(202)는 ID를 정상적으로 등록한 각 슬레이브(220, 230, 240, 250)로부터 ID를 정상적으로 등록했음을 알리는 응답을 수신하게 된다. 이때, 제어부(200)는 정상등록 응답이 수신되지 않은 슬레이브에 대해서는 일정 시간 경과 후 다시 해당 슬레이브의 시리얼 번호와 ID를 전송하여 ID 등록을 다시 요청하게 된다.
또한, 제어부(202)는 모든 슬레이브(220, 230, 240, 250)에 대한 ID 등록이 완료되는 경우 각 슬레이브(220, 230, 240, 250)와의 통신 속도를 결정한다. 이때 통신 속도를 결정함에 있어서, 제어부(202)는 통신부(206)를 통해 기설정된 여러 가지의 통신 속도로 통신속도 설정용 데이터를 각 슬레이브(220, 230, 240, 250)로 전송한 후, 통신속도 설정용 데이터에 응답하는 해당 슬레이브의 ID를 식별한다. 이어, 제어부(202)는 식별된 ID에 해당하는 슬레이브와의 통신 속도를 통신속도 설정용 데이터에 대응하는 통신 속도로 설정한다.
즉, 각 슬레이브(220, 230, 240, 250)는 제조시 특정 통신 속도를 가지고 있으며, 슬레이브에 따라 이러한 특정 통신 속도는 같거나 다를 수 있다. 이때, 마스터(200)는 네트워크에 연결된 슬레이브(220, 230, 240, 250)가 가질 수 있는 서로 다른 통신 속도에 대한 정보를 알고 있는 상태에서 특정 통신 속도로 데이터를 전송하여 보고, 해당 통신 속도의 데이터에 응답하는 슬레이브가 있는 경우 해당 슬레이브의 통신 속도를 데이터를 전송한 통신 속도로 설정하는 것이다.
다음으로, 슬레이브(220, 230, 240, 250)는 제어부(226), 난수 생성기(224), 통신부(222) 등을 포함할 수 있다.
통신부(222)는 제어부(226)의 제어에 따라 RS485 모드버스 방식으로 마스터(200)와 통신을 수행한다.
제어부(226)는 본 발명의 실시예에 따른 슬레이브 ID 자동 설정을 위해 마스터(200)로부터 요청이 있는 경우 슬레이브(220)의 시리얼 번호를 전송한다. 그리고 통신부(222)가 시리얼 번호에 따라 마스터(200)로부터 설정된 슬레이브 ID를 수신하면, 제어부(226)는 이를 해당 슬레이브의 ID로 등록한다.
이때, 제어부(226)는 마스터(200)의 요청에 따라 슬레이브(220)의 시리얼 번호를 전송함에 있어서, 슬레이브(220)에 할당된 고유의 시리얼 번호로 난수 생성기(224)를 초기화하고 임의의 난수 시간만큼 시간 지연 후 자신의 시리얼 번호를 통신부(222)를 통해 마스터(200)로 전송하게 된다.
또한, 제어부(226)는 슬레이브(220)의 ID 등록 후, 마스터(200)로부터 특정 통신 속도로 데이터가 전송되는 경우 해당 데이터가 슬레이브(220)에 설정된 통신 속도로 전송되는 데이터인 경우 해당 데이터를 수신하고 응답을 마스터(200)로 전송한다. 이에 따라, 마스터(200)에서 슬레이브(220)의 데이터 응답을 기반으로 슬레이브(220)에 설정된 통신 속도를 확인할 수 있게 되는 것이다.
도 3은 본 발명의 일 실시예에 따른 모드버스 멀티 드롭 방식으로 연결된 마스터와 슬레이브간 ID 설정을 위한 신호 처리 흐름을 도시한 것이다.
이하에서는 설명의 편의상 복수의 슬레이브 중 슬레이브(220)와의 동작에 대해 주로 설명하나 복수의 슬레이브 각각에 대해 동일하게 적용 가능하다.
먼저, 마스터(200)는 슬레이브(220)에 대한 ID 자동 설정을 위해 슬레이브(220)로 시리얼 번호의 전송을 요청한다(S300). 이때, 이러한 시리얼 번호 전송 요청은 브로드캐스트(broadcast)로 전송하여 모든 슬레이브에서 수신할 수 있도록 한다.
그러면, 슬레이브(220)는 마스터(200)로부터 시리얼 번호 요청을 수신하는 경우 자신의 슬레이브(220)에 할당된 고유의 시리얼 번호로 난수 생성기(224)를 초기화하고, 임의의 난수 시간에 대응하는 시간 지연값을 생성한다(S302).
이때, 각 슬레이브(220, 230, 240, 250)에서 자신의 고유의 시리얼 번호로 시간 지연값을 생성함에 따라 시간 지연값은 모두 다르게 설정되며, 이에 따라 슬레이브(220)에서 마스터(200)로 전송되는 시리얼 번호가 서로 다른 시간에 전송되어 데이터 충돌이 방지될 수 있다.
이어, 슬레이브(220)는 시간 지연값만큼 지연되어 자신에게 할당된 시리얼 번호를 마스터(200)로 전송한다(S304).
그러면, 마스터(200)는 슬레이브(220)로부터 해당 슬레이브(220)에 할당된 고유의 시리얼 번호를 수신한다. 그리고 마스터(200)는 수신된 시리얼 번호를 기반으로 해당 슬레이브(220)의 ID를 생성한 후, ID가 생성된 슬레이브(220)에 대해서는 블랙리스트에 등록한다(S306).
이어, 마스터(200)는 위와 같이 슬레이브(220)의 ID를 생성한 후 해당 슬레이브(220)에게 ID 정보를 전송하여 해당 슬레이브(220)의 ID로 등록하도록 요청한다(S308).
이에 따라, 슬레이브(220)는 마스터(200)로부터 생성되어 전송되는 ID를 자신의 슬레이브 ID로 등록한다(S310). 그리고 슬레이브(220)는 ID를 정상적으로 등록했음을 알리는 응답을 마스터로 전송하게 된다(S312).
그러면, 마스터(200)는 ID가 정상적으로 등록된 슬레이브(220)에 대해서는 ID 등록이 필요한 슬레이브 목록을 저장하고 있는 블랙리스트에서 제거한다(S314). 그리고 마스터(200)는 ID가 정상적으로 등록된 슬레이브(220)를 화이트리스트에 등록한다(S316). 이러한 화이트리스트는 ID 등록이 정상적으로 수행된 슬레이브 목록을 저장하고 있는 리스트를 의미할 수 있다.
한편, 마스터(200)는 ID 등록이 정상적으로 수행되었다는 응답이 수신되지 않는 슬레이브(220)에 대해서는 해당 슬레이브(220)를 블랙리스트에서 제거하지 않는다. 그리고 마스터(200)는 일정 시간 경과 후 다시 해당 슬레이브(220)의 시리얼 번호와 ID를 전송하여 ID 등록을 다시 요청하게 된다.
도 4는 본 발명의 일 실시예에 따른 모드버스 멀티 드롭 방식으로 연결된 마스터와 슬레이브간 통신 속도 설정을 위한 신호 처리 흐름을 도시한 것이다.
이하에서는 설명의 편의상 복수의 슬레이브 중 슬레이브(220)와의 동작에 대해 주로 설명하나 복수의 슬레이브 각각에 대해 동일하게 적용 가능하다.
먼저, 마스터(200)는 도 3의 과정을 통해 슬레이브(220)에 대한 ID 설정이 완료되는 경우, 슬레이브(220)와의 통신 속도를 결정한다.
이때, 마스터(200)와 연결되는 슬레이브(220)는 해당 기기의 특성에 따라 마스터(200)와 통신 가능한 속도가 서로 다를 수 있다. 이러한 마스터(200)와 슬레이브(220)간 통신 가능한 다양한 통신 속도에 대한 정보는 마스터(200)에 제공될 수 있으나, 마스터(200)는 어떤 슬레이브가 어떤 통신 속도로 설정되어 있는지는 알 수 없는 상태이다.
따라서, 마스터(200)는 기설정된 복수의 통신 속도 중 하나의 통신 속도를 선택하고, 선택된 통신 속도로 통신속도 설정용 데이터를 생성하여 슬레이브(220)로 전송한다(S400).
그러면, 슬레이브(220)는 통신속도 설정용 데이터를 수신하는 경우 해당 데이터를 분석하여 데이터가 전송된 통신 속도를 확인한 후, 자신에 설정된 통신 속도와 일치하는지 여부를 검사한다(S402).
이때, 통신 속도가 서로 일치하지 않는 경우, 슬레이브(220)는 통신속도 설정용 데이터를 인접한 다음 슬레이브로 포워딩(forwarding)시킨다(S404).
그러나, 통신 속도가 서로 일치하는 경우, 슬레이브(220)는 마스터(200)로부터 전송된 통신속도 설정용 데이터에 대한 응답(ACK response)을 마스터(200)로 전송한다(S406).
그러면, 마스터(200)는 통신 속도 설정용 데이터에 응답한 해당 슬레이브(220)의 ID를 식별한다(S408). 그리고 마스터(200)는 식별된 슬레이브 ID의 통신 속도를 통신 속도 설정용 데이터에 대응되는 통신 속도로 등록한다(S410).
상술한 바와 같이, 본 발명의 일 실시예에 따르면, 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정에 있어서, 마스터에서 슬레이브의 시리얼 번호에 기반하여 슬레이브 ID를 자동 생성하여 등록하고, 등록된 슬레이브 ID를 이용하여 통신 속도별 제작된 데이터에 응답한 슬레이브 ID를 식별하는 것을 통해 슬레이브 ID별 통신 속도를 자동 등록할 수 있도록 함으로써 슬레이브들의 통신 속도와 ID를 신속하게 설정할 수 있다.
본 명세서에 개시된 모든 방법 및 절차들은 하나 이상의 컴퓨터 프로그램 또는 컴포넌트를 사용하여 적어도 부분적으로 구현될 수 있다. 이들 구성요소는 RAM, ROM, 플래시 메모리, 자기 또는 광 디스크, 광 메모리 또는 다른 저장 장치와 같은 휘발성 및 비 휘발성 메모리를 포함하는 임의의 종래의 컴퓨터 판독 가능 매체 또는 머신 판독 가능 매체상의 일련의 컴퓨터 명령으로서 제공 될 수있다. 명령어는 소프트웨어 또는 펌웨어로서 제공 될 수 있고, ASIC, FPGA, DSP 또는 다른 유사한 장치와 같은 하드웨어 구성 요소에 전체적으로 또는 부분적으로 구현 될 수 있다. 명령어는 일련의 컴퓨터 명령어를 실행할 때 개시된 방법 및 절차의 전부 또는 일부의 성능을 수행하거나 용이하게 하는 하나 이상의 프로세서 또는 다른 하드웨어 구성 요소에 의해 실행되도록 구성 될 수 있다.
이상과 같이 본 발명에 대해서 예시한 도면을 참조로 하여 설명하였으나, 본 명세서에 개시된 실시 예와 도면에 의해 본 발명이 한정되는 것은 아니며, 본 발명의 기술사상의 범위 내에서 통상의 기술자에 의해 다양한 변형이 이루어질 수 있음은 자명하다. 아울러 앞서 본 발명의 실시 예를 설명하면서 본 발명의 구성에 따른 작용 효과를 명시적으로 기재하여 설명하지 않았을 지라도, 해당 구성에 의해 예측 가능한 효과 또한 인정되어야 함은 당연하다.
Claims (9)
- 모드버스 멀티 드롭 방식으로 연결된 마스터와 복수의 슬레이브간 통신 설정 방법으로서,상기 마스터에서 모든 슬레이브로 시리얼 번호 전송을 요청하는 단계와,상기 요청에 따라 각 슬레이브로부터 시리얼 번호를 수신하는 단계와,상기 시리얼 번호를 기반으로 상기 각 슬레이브의 ID를 생성하고, 상기 ID의 슬레이브를 블랙리스트에 등록하는 단계와,상기 ID를 해당 슬레이브에 제공하여 ID 등록을 요청하는 단계와,상기 ID 등록이 정상적으로 이루어진 해당 슬레이브에 대해서는 상기 블랙리스트에서 제거하는 단계를 포함하는 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법.
- 제 1 항에 있어서,상기 시리얼 번호를 수신하는 단계는,상기 각 슬레이브에서 자신의 시리얼 번호로 난수 생성기를 초기화하는 단계와,상기 초기화된 난수 생성기를 통해 생성된 임의의 난수에 대응하는 시간 지연값만큼 시간 지연 후 상기 자신의 시리얼 번호를 상기 마스터로 전송하는 단계와,상기 마스터에서 상기 시간 지연값에 따라 서로 다른 시간에 전송되는 상기 각 슬레이브의 시리얼 번호를 수신하는 단계를 포함하는 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법.
- 제 1 항에 있어서,상기 블랙리스트에서 제거하는 단계는,상기 ID를 자신의 ID로 정상적으로 등록한 해당 슬레이브로부터 ID 정상등록 응답을 수신하는 단계와,상기 ID 정상등록 응답을 전송한 해당 슬레이브를 상기 블랙리스트에서 제거하는 단계를 포함하는 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법.
- 제 1 항에 있어서,상기 ID 정상등록 응답이 수신되지 않은 슬레이브에 대해서는 상기 마스터에서 일정 시간 경과 후 다시 해당 슬레이브의 시리얼 번호와 ID를 전송하여 ID 등록을 요청하는 단계를 더 포함하는 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법.
- 제 1 항에 있어서,상기 모든 슬레이브에 대한 ID 등록이 완료되는 경우 상기 ID 등록이 완료된 슬레이브에 대한 정보를 화이트리스트로 저장하여 관리하는 단계를 더 포함하는 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법.
- 제 1 항에 있어서,상기 마스터에서 상기 모든 슬레이브의 ID로 기설정된 서로 다른 통신 속도로 통신속도 설정용 데이터를 전송하는 단계와,통신 속도별 상기 데이터에 응답하는 해당 슬레이브의 ID를 식별하는 단계와,상기 식별된 ID에 해당하는 슬레이브와의 통신 속도를 상기 데이터를 전송한 통신 속도로 설정하는 단계를 포함하는 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법.
- 제 1 항에 있어서,상기 ID를 생성하는 단계에서,상기 각 슬레이브의 시리얼 번호를 기반으로 각 시리얼 번호별 서로 다른 ID를 설정하는 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법.
- 제 1 항에 있어서,상기 블랙리스트는슬레이브 ID 등록이 완료되지 않은 슬레이브의 목록인모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법.
- 제 5 항에 있어서,상기 화이트리스트는슬레이브 ID 등록이 완료된 슬레이브의 목록인모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020190036705A KR20200114629A (ko) | 2019-03-29 | 2019-03-29 | 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법 |
| KR10-2019-0036705 | 2019-03-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020204281A1 true WO2020204281A1 (ko) | 2020-10-08 |
Family
ID=72666549
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/KR2019/012080 Ceased WO2020204281A1 (ko) | 2019-03-29 | 2019-09-18 | 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법 |
Country Status (2)
| Country | Link |
|---|---|
| KR (1) | KR20200114629A (ko) |
| WO (1) | WO2020204281A1 (ko) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118713692A (zh) * | 2024-07-03 | 2024-09-27 | 中国兵器装备集团自动化研究所有限公司 | 一种双通信多节点收发系统 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020091838A1 (en) * | 1999-08-20 | 2002-07-11 | Pilz Gmbh & Co. | Method for adjusting the data transmission rate in a fieldbus system |
| US20040153594A1 (en) * | 2003-01-30 | 2004-08-05 | Rotvold Eric D. | Interface module for use with a Modbus device network and a Fieldbus device network |
| US20100299401A1 (en) * | 2009-05-20 | 2010-11-25 | Lloyd Chad A | Automated configuration of device communication settings |
| US20130346659A1 (en) * | 2012-06-26 | 2013-12-26 | Fanuc Corporation | Master device that changes data communication speed when preparation to drive motor is completed |
| US20140173013A1 (en) * | 2012-12-19 | 2014-06-19 | Motech Industries, Inc. | Method for setting addresses of slave devices in communication network |
-
2019
- 2019-03-29 KR KR1020190036705A patent/KR20200114629A/ko not_active Abandoned
- 2019-09-18 WO PCT/KR2019/012080 patent/WO2020204281A1/ko not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020091838A1 (en) * | 1999-08-20 | 2002-07-11 | Pilz Gmbh & Co. | Method for adjusting the data transmission rate in a fieldbus system |
| US20040153594A1 (en) * | 2003-01-30 | 2004-08-05 | Rotvold Eric D. | Interface module for use with a Modbus device network and a Fieldbus device network |
| US20100299401A1 (en) * | 2009-05-20 | 2010-11-25 | Lloyd Chad A | Automated configuration of device communication settings |
| US20130346659A1 (en) * | 2012-06-26 | 2013-12-26 | Fanuc Corporation | Master device that changes data communication speed when preparation to drive motor is completed |
| US20140173013A1 (en) * | 2012-12-19 | 2014-06-19 | Motech Industries, Inc. | Method for setting addresses of slave devices in communication network |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118713692A (zh) * | 2024-07-03 | 2024-09-27 | 中国兵器装备集团自动化研究所有限公司 | 一种双通信多节点收发系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| KR20200114629A (ko) | 2020-10-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103119916B (zh) | 向同类总线用户自动分发地址的方法 | |
| EP3817301B1 (en) | Method and apparatus for establishing communication between automobile diagnostic device and vehicle, and automobile communication interface device | |
| JPS6365177B2 (ko) | ||
| EP1182162B1 (en) | Elevator communication controller and communication control method | |
| GB2251532A (en) | Allocating identifiers in a local area network | |
| WO2020204281A1 (ko) | 모드버스 멀티 드롭 방식으로 연결된 네트워크 기기의 통신 설정 방법 | |
| JP7672252B2 (ja) | バス接続機器にアドレスを割り当てる方法 | |
| EP1003108A1 (en) | Apparatus and method for providing round-robin arbitration | |
| JPH0817394B2 (ja) | 時分割多重伝送システムの割込処理方式 | |
| CN106657093B (zh) | 一种用于智能家居的网关协议 | |
| CN107968718A (zh) | 一种确认主备用状态的方法、装置和设备 | |
| CN113728279A (zh) | 用于改变自动化系统的控制软件的方法 | |
| JP2003051832A (ja) | 通信システム | |
| WO2014061997A1 (ko) | 멀티 호스트 억세스 지원 장치 및 방법 | |
| EP1942070B1 (en) | Communications control system for elevators using synchronized communication in a master-slave network | |
| EP1157525A1 (en) | Network addressing based on the port of a network switch | |
| KR20140043401A (ko) | AS-i 슬레이브를 파라미터화하기 위한 방법 및 장치 | |
| WO2010071319A2 (ko) | 빌딩 자동화 시스템 및 이를 이용한 빌딩 자동화 방법 | |
| US12326825B2 (en) | Primary communication apparatus, coupling module and communication system | |
| WO2014088308A1 (en) | Apparatus and method for setting up communication link in wireless communication system | |
| WO2012002699A2 (ko) | 시스템 액세스 방법 및 장치 | |
| WO2013115536A1 (en) | Apparatus and method of control point for device discovery | |
| CN113542133B (zh) | 多通道总线信道的自动配置方法、主节点、从节点及系统 | |
| KR100224321B1 (ko) | 무선호출 데이터 전송 지구국 시스템과 망관리 시스템 간의 접속장치 및 접속제어 방법 | |
| JP2002238155A (ja) | 機器の起動間隔管理装置、起動間隔管理システム及び起動間隔管理方法 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19923636 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19923636 Country of ref document: EP Kind code of ref document: A1 |