KR100917542B1 - Method for selecting communication protocol of slave unit - Google Patents

Method for selecting communication protocol of slave unit Download PDF

Info

Publication number
KR100917542B1
KR100917542B1 KR1020070093735A KR20070093735A KR100917542B1 KR 100917542 B1 KR100917542 B1 KR 100917542B1 KR 1020070093735 A KR1020070093735 A KR 1020070093735A KR 20070093735 A KR20070093735 A KR 20070093735A KR 100917542 B1 KR100917542 B1 KR 100917542B1
Authority
KR
South Korea
Prior art keywords
communication
communication protocol
frame
slave device
communication data
Prior art date
Application number
KR1020070093735A
Other languages
Korean (ko)
Other versions
KR20090028260A (en
Inventor
이봉기
Original Assignee
엘에스산전 주식회사
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 엘에스산전 주식회사 filed Critical 엘에스산전 주식회사
Priority to KR1020070093735A priority Critical patent/KR100917542B1/en
Publication of KR20090028260A publication Critical patent/KR20090028260A/en
Application granted granted Critical
Publication of KR100917542B1 publication Critical patent/KR100917542B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities

Abstract

본 발명은 마스터 기기가 전송하는 통신 데이터를 슬레이브 기기가 수신하여 통신 프로토콜을 판독 및 설정하는 것으로서 슬레이브 기기는 마스터 기기로부터 수신되는 통신 데이터에서 제 1 내지 제 n 통신 프로토콜에 따른 프레임의 시작위치 및 마지막 위치를 결정하고, 결정한 프레임의 시작위치로부터 마지막 위치까지의 1 프레임의 통신 데이터로 통신 프로토콜을 판독하며, 판독 결과 전송 규칙이 일치하는 통신 프로토콜로 슬레이브 기기의 통신 프로토콜을 설정한다.According to the present invention, a slave device receives communication data transmitted by a master device and reads and sets a communication protocol. The slave device starts and ends a frame according to the first to nth communication protocols in the communication data received from the master device. The position is determined, the communication protocol is read out from the communication data of one frame from the start position to the last position of the determined frame, and the communication protocol of the slave device is set as the communication protocol in which the read result transfer rule is matched.

통신시스템, 마스터, 슬레이브, 통신 프로토콜, 프레임, 전송규칙, Communication system, master, slave, communication protocol, frame, transmission rule,

Description

슬레이브 기기의 통신 프로토콜 설정방법{Method for selecting communication protocol of slave unit}Method for selecting communication protocol of slave unit

본 발명은 마스터 기기와 슬레이브 기기가 통신케이블로 연결되어 상호간에 네트워크 통신을 수행하는 통신 시스템에서 마스터 기기가 전송하는 통신 데이터를 이용하여 슬레이브 기기가 자동으로 통신 프로토콜을 설정하는 슬레이브 기기의 통신 프로토콜 설정방법에 관한 것이다.According to the present invention, a communication protocol of a slave device in which a slave device automatically sets a communication protocol using communication data transmitted from a master device in a communication system in which a master device and a slave device are connected by a communication cable to perform network communication with each other. It is about a method.

일반적으로 통신 시스템은 하나의 마스터 기기와 복수의 슬레이브 기기가 통신케이블로 연결되어 상호간에 통신을 수행한다. 상기 마스터 기기는 예를 들면, PLC(Programmable Logic Controller) 및 컴퓨터 등으로서 복수의 슬레이브 기기에 통신의 수행을 요청한다. 그리고 상기 복수의 슬레이브 기기들은 상기 마스터 기기의 통신 요청이 자신에 해당되는 것일 경우에 마스터 기기가 요청한 통신에 대한 응답을 수행한다.In general, in a communication system, a master device and a plurality of slave devices are connected with a communication cable to perform communication with each other. The master device requests a plurality of slave devices to perform communication, for example, as a programmable logic controller (PLC), a computer, or the like. When the communication request of the master device corresponds to the plurality of slave devices, the plurality of slave devices perform a response to the communication requested by the master device.

상기 마스터 기기와 복수의 슬레이브 기기가 상호간에 통신을 수행하기 위해 서는 먼저 통신 프로토콜을 설정해야 된다. 상기 통신 프로토콜은 마스터 기기와 슬레이브 기기가 통신을 원활하게 하기 위하여 정한 여러 가지의 통신규칙 및 방법에 대한 통신규약으로서 상호간의 접속이나 절단방식, 전기적 통신방식, 주고받을 데이터의 형식, 오류 검출방식 및 코드 변환방식 등에 대하여 미리 설정하는 것이다.In order for the master device and the plurality of slave devices to communicate with each other, a communication protocol must first be set. The communication protocol is a communication protocol for various communication rules and methods defined by the master device and the slave device to facilitate communication. The code conversion method is set in advance.

통신 프로토콜에서는 마스터 기기와 슬레이브 기기로 나누어지고, 마스터 기기는 데이터를 주고받을 때 주도적으로 데이터의 전송 스케쥴을 짜고, 슬레이브 기기와 통신을 수행한다. 그리고 상기 슬레이브 기기는 상기 마스터 기기의 명령에 따라 데이터를 전송하거나 동작한다.In the communication protocol, the master device and the slave device are divided, and when the master device sends and receives data, the master device schedules data transmission and communicates with the slave device. The slave device transmits or operates data according to a command of the master device.

이러한 통신시스템에 있어서, 슬레이브 기기의 통신 프로토콜은 사용자가 직접 설정하였다. 즉, 도 1에 도시된 바와 같이 먼저 사용자가 슬레이브 기기의 통신 프로토콜을 설정하고(S100), 그 통신 프로토콜을 설정한 슬레이브 기기를 통신 케이블에 연결하여 슬레이브 기기가 마스터 기기와 통신 케이블을 통해 통신할 수 있도록 한다(S102).In this communication system, the communication protocol of the slave device is directly set by the user. That is, as shown in FIG. 1, a user first sets a communication protocol of a slave device (S100), and connects a slave device that sets the communication protocol to a communication cable so that the slave device can communicate with the master device through a communication cable. (S102).

이와 같은 상태에서 마스터 기기가 통신 케이블을 통해 전송하는 통신데이터를 슬레이브 기기가 수신하고(S104), 수신한 통신 데이터가 상기 설정된 통신 프로토콜의 규칙에 일치하는지의 여부를 판단한다(S106). 예를 들면, 상기 통신 데이터는 소정의 프레임 구조를 가지는 것으로서 슬레이브 기기는 수신한 통신 데이터의 프레임 전송규칙이 상기 설정된 통신 프로토콜의 전송규칙과 일치하는지의 여부를 판단한다.In this state, the slave device receives the communication data transmitted by the master device through the communication cable (S104), and determines whether the received communication data matches the rules of the set communication protocol (S106). For example, the communication data has a predetermined frame structure, and the slave device determines whether the frame transmission rule of the received communication data matches the transmission rule of the communication protocol.

상기 판단 결과 수신한 통신 데이터의 프레임의 전송규칙이 통신 프로토콜의 전송규칙과 일치할 경우에 슬레이브 기기는 상기 수신한 통신 데이터를 처리하고(S108), 종료한다.As a result of the determination, when the transmission rule of the received frame of communication data matches the transmission rule of the communication protocol, the slave device processes the received communication data (S108) and ends.

그리고 상기 판단 결과 수신한 통신 데이터의 프레임의 전송규칙이 통신 프로토콜의 전송규칙과 일치하지 않을 경우에 슬레이브 기기는 상기 수신한 통신 데이터를 처리하지 못하고, 마스터 기기와 통신을 수행하지 못하게 된다(S110).When the transmission rule of the received frame of communication data does not match the transmission rule of the communication protocol, the slave device cannot process the received communication data and cannot communicate with the master device (S110). .

그러나 상기한 종래의 기술은 복수의 통신 프로토콜들 중에서 마스터 기기가 지원하는 통신 프로토콜을 사용자가 일일이 확인하여 슬레이브 기기의 통신 프로토콜을 설정해야 된다.However, in the above-described conventional technology, a user must check a communication protocol supported by a master device among a plurality of communication protocols and set a communication protocol of a slave device.

또한 사용자가 슬레이브 기기의 통신 프로토콜을 잘못 설정하였을 경우에 슬레이브 기기가 정상으로 통신을 수행하지 못하고, 이로 인하여 사용자는 슬레이브 기기의 통신 프로토콜을 다시 설정해야 되었다.In addition, when the user incorrectly sets the communication protocol of the slave device, the slave device fails to communicate normally. As a result, the user has to reset the communication protocol of the slave device.

그러므로 본 발명은 상기한 바와 같은 문제점들을 해결하기 위하여 발명한 것으로서 슬레이브 기기를 통신 케이블에 연결하였을 경우에 마스터 기기가 전송하는 통신 데이터를 슬레이브 기기가 수신하여 통신 데이터의 전송규칙을 판단하고, 판단한 전송 규칙에 따른 통신 프로토콜을 자동으로 설정하는 슬레이브 기기의 통신 프로토콜 설정방법을 제공한다.Therefore, the present invention has been invented to solve the above problems, and when the slave device is connected to the communication cable, the slave device receives the communication data transmitted by the master device to determine the transmission rule of the communication data, and the determined transmission. Provided is a communication protocol setting method of a slave device that automatically sets a communication protocol according to a rule.

본 발명의 슬레이브 기기의 통신 프로토콜 설정방법에 따르면, 슬레이브 기기를 통신 케이블에 연결하였을 경우에 마스터 기기가 전송하는 통신 데이터를 슬레이브 기기가 수신하고, 수신한 통신 데이터를 이용하여 제 1 내지 제 n 통신 프로토콜 판독과정을 수행한다.According to the communication protocol setting method of the slave device of the present invention, when the slave device is connected to the communication cable, the slave device receives the communication data transmitted by the master device, and the first to n-th communication using the received communication data Perform protocol reading.

상기 제 1 내지 제 n 통신 프로토콜 판독과정은 수신한 통신 데이터에서 각각의 통신 프로토콜에 따른 프레임의 시작위치와 프레임의 마지막 위치를 결정하고, 결정한 프레임의 시작위치로부터 프레임의 마지막 위치까지 1 프레임의 통신 데이터로 통신 프로토콜의 판독을 수행하여 1 프레임의 통신 데이터와 전송규칙이 일치하는 통신 프로토콜을 슬레이브 기기의 통신 프로토콜로 설정한다.The first to nth communication protocol reading processes determine a start position and a last position of a frame according to each communication protocol in the received communication data, and communicate one frame from the determined start position to the last position of the frame. The communication protocol is read from the data and the communication protocol matching the communication data of one frame and the transmission rule is set as the communication protocol of the slave device.

그러므로 본 발명의 슬레이브 기기의 통신 프로토콜 설정방법은 마스터 기기가 통신 케이블을 통해 전송하는 통신 데이터를 슬레이브 기기가 수신하는 단계와, 상기 수신한 통신 데이터를 저장하고, 저장한 통신데이터로 제 1 내지 제 n 통신 프로토콜 판독과정을 수행하여 상기 통신 데이터의 통신 프로토콜을 판독하고, 판독한 통신 프로토콜로 슬레이브 기기의 통신 프로토콜을 설정하는 단계를 포함하여 이루어지는 것을 특징으로 한다.Therefore, in the method of setting a communication protocol of a slave device of the present invention, the slave device receives communication data transmitted by a master device through a communication cable, stores the received communication data, and stores the received communication data as the first to first communication data. n Read a communication protocol of the communication data by performing a communication protocol reading process, and setting the communication protocol of the slave device to the read communication protocol.

상기 제 1 내지 제 n 통신 프로토콜 판독과정들 각각은 병렬로 동시에 수행하는 것을 특징으로 한다.Each of the first to n th communication protocol reading processes may be performed simultaneously in parallel.

그리고 상기 제 1 내지 제 n 통신 프로토콜 판독과정들 각각은, 상기 버퍼에서 1 프레임의 통신 데이터를 리드하는 단계와, 상기 리드한 1 프레임의 통신 데이터가 자신이 판독하고자 하는 통신 프로토콜의 전송규칙과 일치하는지의 여부를 판단하는 단계와, 상기 판단 결과 전송규칙이 일치하는 통신 프로토콜로 슬레이브 기기의 통신 프로토콜을 설정하는 단계를 포함하여 이루어지는 것을 특징으로 한다.Each of the first to nth communication protocol reading processes reads one frame of communication data from the buffer, and the read one frame of communication data matches the transmission rule of the communication protocol to be read. And determining the communication protocol of the slave device as a communication protocol in which the transmission rule is matched with the result of the determination.

상기 1 프레임의 통신 데이터의 리드는, 상기 통신 데이터에서 프레임의 시작 규칙과 일치하는 통신 데이터를 프레임의 시작 위치로 결정하는 단계와, 상기 통신 데이터에서 프레임의 절단규칙과 일치하는 통신 데이터를 프레임의 마지막 위치로 결정하는 단계와, 상기 결정한 프레임의 시작 위치로부터 프레임의 마지막 위치까지 1 프레임의 통신 데이터를 상기 버퍼에서 리드하는 단계를 포함하여 구성됨을 특징으로 한다.The read of the communication data of the one frame may include determining communication data that matches the start rule of the frame in the communication data as a start position of the frame; And determining the last position, and reading the communication data of one frame from the buffer from the start position of the determined frame to the last position of the frame.

상기 슬레이브 기기의 통신 프로토콜을 설정한 이후에 상기 수신한 통신 데이터를 처리하는 단계를 더 포함하는 것을 특징으로 한다.And after setting the communication protocol of the slave device, processing the received communication data.

본 발명은 슬레이브 기기를 통신 케이블에 연결할 경우에 슬레이브 기기가 자동으로 통신 프로토콜을 설정하여 통신을 수행하므로 사용자가 일일이 마스터 기기의 통신 프로토콜을 확인하여 슬레이브 기기의 통신 프로토콜을 설정하지 않아도 된다.In the present invention, when the slave device is connected to the communication cable, the slave device automatically sets the communication protocol to perform communication, so that the user does not need to check the communication protocol of the master device and set the communication protocol of the slave device.

이하의 상세한 설명은 예시에 지나지 않으며, 본 발명의 실시 예를 도시한 것에 불과하다. 또한 본 발명의 원리와 개념은 가장 유용하고, 쉽게 설명할 목적으로 제공된다. 따라서, 본 발명의 기본 이해를 위한 필요 이상의 자세한 구조를 제공하고자 하지 않았음은 물론 통상의 지식을 가진 자가 본 발명의 실체에서 실시될 수 있는 여러 가지의 형태들을 도면을 통해 예시한다.The following detailed description is only illustrative, and merely illustrates embodiments of the present invention. In addition, the principles and concepts of the present invention are provided for the purpose of explanation and most useful. Accordingly, various forms that can be implemented by those of ordinary skill in the art, as well as not intended to provide a detailed structure beyond the basic understanding of the present invention through the drawings.

도 2는 본 발명의 통신 프로토콜 설정방법이 적용되는 통신시스템의 구성을 보인 블록도이다. 여기서, 부호 200은 통신을 요청하는 마스터 기기로서 예를 들면, PLC(Programmable Logic Controller)이고, 부호 210은 상기 마스터 기기(200)의 통신요청에 따라 통신 응답을 수행하는 복수의 슬레이브 기기들로서 예를 들면, 상기 PLC의 제어에 따라 전송기 등과 같은 소정의 부하를 구동시키는 인버터 등의 기기이다.2 is a block diagram showing a configuration of a communication system to which the communication protocol setting method of the present invention is applied. Here, reference numeral 200 denotes a master device requesting communication, for example, a programmable logic controller (PLC), and reference numeral 210 denotes a plurality of slave devices that perform a communication response according to a communication request of the master device 200. For example, a device such as an inverter that drives a predetermined load such as a transmitter or the like under the control of the PLC.

상기 마스터 기기(200)와 복수의 슬레이브 기기(210)들은 통신케이블(220)로 연결되어 상호간에 통신을 수행한다.The master device 200 and the plurality of slave devices 210 are connected by a communication cable 220 to communicate with each other.

이러한 구성의 통신시스템에 적용되는 본 발명은 도 3에 도시된 바와 같이 통신 프로토콜을 설정하지 않은 슬레이브 기기(210)를 통신 케이블(220)에 연결한 다(S300).The present invention applied to the communication system having such a configuration connects the slave device 210 that does not set the communication protocol as shown in FIG. 3 to the communication cable 220 (S300).

그러면, 마스터 기기(200)가 통신 케이블(220)을 통해 예를 들면, 1 바이트씩 전송하는 통신 데이터를 슬레이브 기기(210)가 수신하고(S302), 수신한 통신 데이터의 통신 프로토콜을 분석하여 슬레이브 기기(210)의 통신 프로토콜을 설정한다(S304).Then, the slave device 210 receives the communication data transmitted by the master device 200 through the communication cable 220, for example, by 1 byte (S302), and analyzes the communication protocol of the received communication data in the slave device. The communication protocol of the device 210 is set (S304).

그리고 슬레이브 기기(210)는 통신 프로토콜의 설정을 완료하였는지의 여부를 판단하고(S306), 통신 프로토콜의 설정을 완료하지 못하였을 경우에 다시 마스터 기기(200)가 통신 케이블(220)을 통해 전송하는 통신 데이터를 수신하여 통신 프로토콜을 분석 및 설정하는 동작을 반복 수행한다.Then, the slave device 210 determines whether the setting of the communication protocol is completed (S306), and when the setting of the communication protocol is not completed, the master device 200 transmits it again through the communication cable 220. Receives communication data and repeatedly analyzes and sets communication protocols.

이와 같이 하여 슬레이브 기기(220)에 통신 프로토콜의 설정 동작이 완료되면, 슬레이브 기기(220)는 마스터 기기(200)로부터 수신한 통신 데이터를 처리하고(S308), 종료한다.When the setting operation of the communication protocol is completed in the slave device 220 in this way, the slave device 220 processes the communication data received from the master device 200 (S308) and ends.

상기 통신 프로토콜의 분석 및 설정(S304)은 도 4에 도시된 바와 같이 슬레이브 기기(210)가 수신된 1 바이트의 통신 데이터를 버퍼에 저장하고(S400), 제 1 내지 제 n 통신 프로토콜 판독과정을 수행하여 통신 프로토콜을 설정한다(S402). 여기서, 상기 제 1 내지 제 n 통신 프로토콜 판독과정은 동시에 수행하는 것이 바람직하다.The analysis and setting of the communication protocol (S304) is performed by the slave device 210 as shown in Figure 4 stores the received 1 byte of communication data in the buffer (S400), and the first to nth communication protocol reading process In operation S402, a communication protocol is set. Here, the first to n-th communication protocol reading process is preferably performed at the same time.

상기 제 1 내지 제 n 통신 프로토콜 판독과정들 각각은 도 5에 도시된 바와 같이 제 1 내지 제 n 통신 프로토콜 판독과정을 각기 수행하였는지의 여부를 판단한다(S500). 상기 판단 결과 제 1 내지 제 n 통신 프로토콜 판독과정을 수행하지 않았을 경우에 수신된 통신 데이터의 프레임의 시작 위치가 결정되었는지의 여부를 판단한다(S502). 상기 수신된 통신 데이터의 프레임의 시작 위치가 결정되지 않았을 경우에 수신된 통신 데이터가 자신이 판독하는 통신 프로토콜의 프레임 시작 규칙과 일치하는지의 여부를 판단하고(S504), 수신된 통신 데이터가 프레임 시작 규칙과 일치할 경우에 수신된 통신 데이터를 프레임의 시작위치로 결정한다(S506).Each of the first to nth communication protocol reading processes determines whether each of the first to nth communication protocol reading processes is performed as shown in FIG. 5 (S500). As a result of the determination, when the first to nth communication protocol reading processes are not performed, it is determined whether the start position of the frame of the received communication data is determined (S502). When the start position of the frame of the received communication data is not determined, it is determined whether the received communication data matches the frame start rule of the communication protocol that is read (S504), and the received communication data starts the frame. If it matches the rule, the received communication data is determined as the start position of the frame (S506).

이와 같이 프레임의 시작위치가 결정되면, 슬레이브 기기(210)는 수신된 통신 데이터가 자신이 판독하는 통신 프로토콜의 프레임의 절단규칙과 일치하는지의 여부를 판단한다(S508). 상기 판단 결과 자신이 판독하는 통신 프로토콜의 프레임의 절단규칙과 일치할 경우에 슬레이브 기기(210)는 해당 통신 데이터를 자신이 판독하는 통신 프로토콜의 프레임의 마지막 위치로 결정한다(S510).When the start position of the frame is determined as described above, the slave device 210 determines whether or not the received communication data matches the truncation rule of the frame of the communication protocol it reads (S508). If the result of the determination is consistent with the truncation rule of the frame of the communication protocol that is read by the slave device 210, the slave device 210 determines that the corresponding communication data is the last position of the frame of the communication protocol that is read (S510).

이와 같이 자신이 판독하는 통신 프로토콜의 프레임의 시작 위치 및 프레임의 마지막 위치가 결정되면, 그 프레임의 시작 위치로부터 프레임의 마지막 위치까지의 1 프레임의 통신 데이터를 버퍼에서 모두 리드하고(S512), 리드한 1 프레임의 통신 데이터로 통신 프로토콜의 판독을 수행한다(S514).When the start position of the frame and the end position of the frame of the communication protocol read by the user are determined as described above, all the communication data of one frame from the start position of the frame to the end position of the frame are read in the buffer (S512). The communication protocol is read with communication data of one frame (S514).

상기 판독 수행결과 1 프레임의 통신 데이터가 자신이 판독하는 통신 프로토콜의 전송 규칙과 일치하는지의 여부를 판단한다(S516). 상기 판단 결과 전송 규칙이 일치할 경우에 슬레이브 기기의 통신 프로토콜을 자신이 판독하는 통신 프로토콜로 설정한다(S518). 그리고 상기 판단 결과 전송 규칙이 일치하지 않을 경우에 슬레이브 기기는 해당 통신 프로토콜의 판독을 중지한다(S520).As a result of the reading, it is determined whether or not the communication data of one frame matches the transmission rule of the communication protocol that is read (S516). If the transmission rule matches as a result of the determination, the communication protocol of the slave device is set to the communication protocol that the slave device reads (S518). If the transmission rule does not match as a result of the determination, the slave device stops reading the corresponding communication protocol (S520).

즉, 본 발명의 제 1 내지 제 n 통신 프로토콜 판독과정은 각각의 통신 프로토콜에 따른 프레임의 시작위치 및 프레임의 마지막 위치를 결정하고, 결정한 프레임의 시작위치로부터 프레임의 마지막 위치까지의 1 프레임의 통신 데이터로 통신 프로토콜을 판독하며, 판독 결과 전송 규칙이 일치하는 통신 프로토콜로 슬레이브 기기의 통신 프로토콜을 설정한다.That is, the first to nth communication protocol reading processes of the present invention determine the start position of the frame and the end position of the frame according to each communication protocol, and communicate one frame from the start position of the determined frame to the end position of the frame. The communication protocol is read out from the data, and the communication protocol of the slave device is set as the communication protocol matching the transmission rule as a result of reading.

이상에서는 대표적인 실시 예를 통하여 본 발명에 대하여 상세하게 설명하였으나, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 상술한 실시 예에 대하여 본 발명의 범주에서 벗어나지 않는 한도 내에서 다양한 변형이 가능함을 이해할 것이다.The present invention has been described in detail with reference to exemplary embodiments, but those skilled in the art to which the present invention pertains can make various modifications without departing from the scope of the present invention. Will understand.

그러므로 본 발명의 권리범위는 설명된 실시 예에 국한되어 정해져서는 안 되며, 후술하는 특허청구범위뿐만 아니라 이 특허청구범위와 균등한 것들에 의해 정해져야 한다.Therefore, the scope of the present invention should not be limited to the described embodiments, but should be defined by the claims below and equivalents thereof.

본 발명은 마스터 기기와 슬레이브 기기가 통신 케이블로 연결되어 통신을 수행하는 통신 시스템에서 사용자가 슬레이브 기기의 통신 프로토콜을 일일이 설정하지 않고, 마스터 기기가 전송하는 통신 데이터로 슬레이브 기기가 통신 프로토콜을 판독 및 설정한다.According to the present invention, in a communication system in which a master device and a slave device are connected by a communication cable, the user does not set the communication protocol of the slave device, but the slave device reads the communication protocol with the communication data transmitted by the master device. Set it.

도 1은 종래의 슬레이브 기기에 프로토콜을 설정하고, 통신을 수행하는 동작을 보인 신호흐름도,1 is a signal flow diagram illustrating an operation of setting a protocol and performing communication with a conventional slave device;

도 2는 본 발명의 통신 프로토콜 설정방법이 적용되는 통신시스템의 구성을 보인 블록도,2 is a block diagram showing the configuration of a communication system to which the communication protocol setting method of the present invention is applied;

도 3은 본 발명의 통신 프로토콜 설정방법을 보인 신호흐름도,3 is a signal flow diagram showing a communication protocol setting method of the present invention,

도 4는 본 발명의 통신 프로토콜 설정방법에서 통신 프로토콜 분석 및 결정과정을 보인 신호흐름도, 및4 is a signal flow diagram showing a communication protocol analysis and determination process in the communication protocol setting method of the present invention, and

도 5는 도 4의 제 1 내지 제 n 통신 프로토콜 판독과정을 보인 신호흐름도이다.5 is a signal flow diagram illustrating a process of reading the first to nth communication protocols of FIG. 4.

Claims (5)

마스터 기기가 통신 케이블을 통해 전송하는 통신 데이터를 슬레이브 기기가 수신하는 단계; 및Receiving, by the slave device, communication data transmitted by the master device through the communication cable; And 상기 수신한 통신 데이터를 저장하고, 저장한 통신데이터로 제 1 내지 제 n 통신 프로토콜 판독과정을 수행하여 상기 통신 데이터의 통신 프로토콜을 판독하고, 판독한 통신 프로토콜로 슬레이브 기기의 통신 프로토콜을 설정하는 단계를 포함하고,Storing the received communication data, performing a first to nth communication protocol reading process with the stored communication data, reading a communication protocol of the communication data, and setting a communication protocol of the slave device as the read communication protocol; Including, 상기 제 1 내지 제 n 통신 프로토콜 판독과정들 각각은;Each of the first to nth communication protocol reading processes; 상기 버퍼에서 1 프레임의 통신 데이터를 리드하는 단계;Reading one frame of communication data in the buffer; 상기 리드한 1 프레임의 통신 데이터가 자신이 판독하고자 하는 통신 프로토콜의 전송규칙과 일치하는지의 여부를 판단하는 단계; 및Determining whether the read one frame of communication data matches a transmission rule of a communication protocol to be read; And 상기 판단 결과 전송규칙이 일치하는 통신 프로토콜로 슬레이브 기기의 통신 프로토콜을 설정하는 단계를 포함하며,Setting a communication protocol of a slave device as a communication protocol matching the transmission rule as a result of the determination; 상기 1 프레임의 통신 데이터의 리드는;A read of communication data of the one frame; 상기 통신 데이터에서 프레임의 시작 규칙과 일치하는 통신 데이터를 프레임의 시작 위치로 결정하는 단계;Determining communication data in the communication data that matches the start rule of the frame as a start position of the frame; 상기 통신 데이터에서 프레임의 절단규칙과 일치하는 통신 데이터를 프레임의 마지막 위치로 결정하는 단계; 및Determining communication data in the communication data that matches the truncation rule of the frame as the last position of the frame; And 상기 결정한 프레임의 시작 위치로부터 프레임의 마지막 위치까지 1 프레임의 통신 데이터를 상기 버퍼에서 리드하는 단계를 포함하여 이루어지는 슬레이브 기기의 통신 프로토콜 설정방법.And reading the communication data of one frame from the buffer from the start position of the determined frame to the end position of the frame. 제 1 항에 있어서, 상기 제 1 내지 제 n 통신 프로토콜 판독과정들 각각은;The method of claim 1, wherein each of the first to n th communication protocol reading processes comprises: a; 병렬로 동시에 수행하는 것을 특징으로 하는 슬레이브 기기의 통신 프로토콜 설정방법.A communication protocol setting method of a slave device, characterized in that simultaneously performed in parallel. 삭제delete 삭제delete 제 1 항에 있어서, 상기 슬레이브 기기의 통신 프로토콜을 설정한 이후에;2. The method of claim 1, further comprising: after establishing a communication protocol of the slave device; 상기 수신한 통신 데이터를 처리하는 단계를 더 포함하는 것을 특징으로 하는 슬레이브 기기의 통신 프로토콜 설정방법.And processing the received communication data.
KR1020070093735A 2007-09-14 2007-09-14 Method for selecting communication protocol of slave unit KR100917542B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070093735A KR100917542B1 (en) 2007-09-14 2007-09-14 Method for selecting communication protocol of slave unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070093735A KR100917542B1 (en) 2007-09-14 2007-09-14 Method for selecting communication protocol of slave unit

Publications (2)

Publication Number Publication Date
KR20090028260A KR20090028260A (en) 2009-03-18
KR100917542B1 true KR100917542B1 (en) 2009-09-16

Family

ID=40695579

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070093735A KR100917542B1 (en) 2007-09-14 2007-09-14 Method for selecting communication protocol of slave unit

Country Status (1)

Country Link
KR (1) KR100917542B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101632835B1 (en) 2015-04-14 2016-06-23 엘에스산전 주식회사 Method of auto setting protoco in programmable logic controller system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07191922A (en) * 1993-12-27 1995-07-28 Nissan Motor Co Ltd Programmable controller
KR20000025375A (en) * 1998-10-10 2000-05-06 구자홍 Method for transmitting data between different nodes
KR20050036861A (en) * 2001-10-16 2005-04-20 소니 가부시끼 가이샤 Transmission/reception apparatus, transmission/reception method, and transmission/reception system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07191922A (en) * 1993-12-27 1995-07-28 Nissan Motor Co Ltd Programmable controller
KR20000025375A (en) * 1998-10-10 2000-05-06 구자홍 Method for transmitting data between different nodes
KR20050036861A (en) * 2001-10-16 2005-04-20 소니 가부시끼 가이샤 Transmission/reception apparatus, transmission/reception method, and transmission/reception system

Also Published As

Publication number Publication date
KR20090028260A (en) 2009-03-18

Similar Documents

Publication Publication Date Title
ATE416416T1 (en) METHOD FOR MEMORY SYSTEM CONTROL AND MEMORY CONTROL DEVICE
JP2010272971A (en) Control system and method for rewriting control program
KR20060132496A (en) Communication apparatus and browser switching method
JP6627571B2 (en) Programmable controller, programmable controller control method, and programmable controller control program
JP2006134174A5 (en)
JPH1185651A (en) Communication interface device, object equipment and communication method
US11500573B2 (en) Multiple interface data exchange application for use in process control
JP2006215999A (en) Data collection system
KR100915660B1 (en) Apparatus and method of remote managing for plc
KR100917542B1 (en) Method for selecting communication protocol of slave unit
JP2003338947A5 (en)
EP1624642A3 (en) Apparatus, method and system for providing information in accordance with one of a plurality of protocols
JP5476956B2 (en) Communication system and communication method
CN110278716B (en) PLC, network unit, CPU unit, and data transfer method
CN108197062B (en) Method, system, equipment and medium for realizing communication between single chip microcomputer and terminal equipment
ATE533271T1 (en) METHOD FOR ADAPTING BUS SYSTEMS
JP2006277733A (en) Programmable controller system
CN100361433C (en) Communication device using three step communication buffer storage
JP3648996B2 (en) FA system
JP2010049543A (en) Programmable controller, input/output device and operation parameter access system
JP2009104283A (en) System for transmitting/receiving data by modbus and control equipment such as programmable controller
JP4544422B2 (en) Programmable controller
JP4032198B2 (en) PLC system and remote terminal
JP4121348B2 (en) In-vehicle information processing apparatus, wireless terminal apparatus, control method thereof, control program, and recording medium
JP2605491B2 (en) Equipment management controller

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E90F Notification of reason for final refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130515

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20140620

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20150702

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee