KR102233681B1 - Communication Converter with built-in address setting - Google Patents

Communication Converter with built-in address setting Download PDF

Info

Publication number
KR102233681B1
KR102233681B1 KR1020200093638A KR20200093638A KR102233681B1 KR 102233681 B1 KR102233681 B1 KR 102233681B1 KR 1020200093638 A KR1020200093638 A KR 1020200093638A KR 20200093638 A KR20200093638 A KR 20200093638A KR 102233681 B1 KR102233681 B1 KR 102233681B1
Authority
KR
South Korea
Prior art keywords
communication
address
communication device
slave
data
Prior art date
Application number
KR1020200093638A
Other languages
Korean (ko)
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 KR1020200093638A priority Critical patent/KR102233681B1/en
Application granted granted Critical
Publication of KR102233681B1 publication Critical patent/KR102233681B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/387Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4291Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a clocked protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40019Details regarding a bus master

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Communication Control (AREA)

Abstract

The present invention relates to a communication converter having an address setting function which enables data communication by connecting, to one master communication device, several slave communication devices having different communication data formats (protocols). For the data communication between the master communication device and the slave communication devices, several slave communication devices are connected to the RS422/485 communication port of the master communication device, but each slave communication device is equipped with a converter capable of setting an address (ID). The main control unit (MCU) of the converter, in which the communication data compatibility between RS422/485 and RS232 is made, includes: a line communication speed setter for setting the communication speed of a line; a device communication speed setter for setting the communication speed of a communication device; and an address setter for setting the address (ID) of the slave communication devices.

Description

주소 설정 기능이 내장된 통신 컨버터{Communication Converter with built-in address setting}Communication Converter with built-in address setting}

본 발명은 하나의 마스터 통신장치에서 통신 데이터 형식(프로토콜)이 상이한 여러 개의 슬래이브 통신장치를 연결하여 데이터 통신이 가능하도록 하는 주소 설정 기능이 내장된 통신 컨버터에 관한 것이다.The present invention relates to a communication converter with an address setting function that enables data communication by connecting a plurality of slave communication devices having different communication data formats (protocols) in one master communication device.

RS232는 1회에 1비트씩 정보를 전송하는 직렬통신방식으로써, 통신거리는 15m이지만 통신속도가 높을수록 거리가 짧아지고, 낮을수록 머리까지 전송이 가능하며, RS422의 포인트 투 포인트 모드는 RS232와 신호당 2개의 라인이 필요한 것만 빼고 사용 방식의 차이가 없고, 멀티 드롭 모드는 TXD+, TXD-, RXD+, RXD-의 신호선을 사용하게 되며, RS485는 RS232나 RS422처럼 Full Duplex가 아닌 Half Duplex전송 방식만 지원하기 때문에 RS422의 모든 마스터는 TXD 신호를 멀티 포인트 버스에 접속시키거나 단락시켜야 할 뿐 아니라, RXD신호 역시 모드에 따라 접속, 단락의 제어를 하여야 한다.RS232 is a serial communication method that transmits information one bit at a time. The communication distance is 15m, but the higher the communication speed, the shorter the distance, and the lower it is, the higher the head can be transmitted. There is no difference in usage method except for only needing two lines per unit, and multi-drop mode uses the signal lines of TXD+, TXD-, RXD+, and RXD-, and RS485 only uses half duplex transmission method, not full duplex like RS232 or RS422. Because it is supported, all masters of RS422 should not only connect or short circuit the TXD signal to the multi-point bus, but also control the connection and short circuit of the RXD signal according to the mode.

통신 프로토콜이 서로 다른 마스터 통신장치와 슬래이브 통신장치 사이의 통신을 위해서는 도 1에 도시된 바와 같이 공지의 컨버터(C)를 이용하여 RS422/485 통신장치와 RS232 통신장치들과 통신데이터를 호환시켜 전송이 이루어지게 하고 있으나, RS232는 한 개의 통신포트에 하나의 통신장치만을 연결할 수 있기 때문에, 하나의 마스터 통신장치에 통신 프로토콜이 다른 여러 개의 슬래이브 통신장치를 연결할 때에는 마스터의 통신포트가 부족하여 여러 개의 슬래이브 통신장치를 연결하지 못하는 문제가 발생하게 된다.For communication between the master communication device and the slave communication device having different communication protocols, as shown in Fig. 1, a known converter (C) is used to make the communication data compatible with the RS422/485 communication device and RS232 communication devices. Although transmission is made, RS232 can only connect one communication device to one communication port, so when connecting multiple slave communication devices with different communication protocols to one master communication device, the communication port of the master is insufficient. There is a problem that several slave communication devices cannot be connected.

결국 마스터 통신장치에서 여러 개의 RS232 통신장치와 데이터 통신을 하기 위해서는 마스터 통신장치에 다수의 통신포트를 추가할 수밖에 없는 문제가 발생하는 것으로, 통신포트 추가는 많은 비용 상승과, PLC(Programmable Logic Controller)의 경우 RS232 통신포트 증설에 한계가 발생하는 문제와 함께 케이블을 다량으로 설치하는 문제와 통신거리가 제한되는 문제가 있다.Eventually, in order to communicate data with multiple RS232 communication devices in the master communication device, a problem arises in that a number of communication ports must be added to the master communication device, and adding a communication port increases a lot of cost and PLC (Programmable Logic Controller). In this case, there is a problem in that there is a limitation in the extension of the RS232 communication port, a problem of installing a large number of cables, and a problem in that the communication distance is limited.

(KR) 특허등록 10-0290133호(2001.02.27 등록)(KR) Patent Registration No. 10-0290133 (Registered on Feb. 27, 2001) (KR) 특허등록 10-0439379호(2004.06.28 등록)(KR) Patent registration 10-0439379 (registered on June 28, 2004) (KR) 특허등록 10-1421151호(2014.07.14 등록)(KR) Patent registration 10-1421151 (registered on 2014.07.14) (KR) 특허등록 10-1400688호(2014.05.22 등록)(KR) Patent registration 10-1400688 (registered on May 22, 2014)

본 발명은 하나의 마스터 통신장치에 통신 프로토콜이 다른 여러 개의 슬래이브 통신장치를 연결하여 데이터 통신을 할 때 부족할 수밖에 없는 통신포트를 추가하는 어려움과 함께 RS232 케이블 연결시 수 많은 통신 케이블을 설치하는 한편 15m 이내의 근거리 통신만 가능한 문제를 해결하기 위한 것으로, 마스터 통신장치의 RS422/485 통신포트를 이용하여 여러 개의 슬래이브 통신장치를 연결하되 각각의 슬래이브 통신장치에는 주소(ID)를 설정하여 슬래이브 통신장치와 마스터 통신장치의 식별이 이루어질 수 있도록 하는 것이다.The present invention has the difficulty of adding a communication port that is inevitably insufficient when performing data communication by connecting several slave communication devices with different communication protocols to one master communication device, and installs a number of communication cables when connecting an RS232 cable. This is to solve the problem that only short-range communication within 15m is possible, and several slave communication devices are connected using the RS422/485 communication port of the master communication device. This is to enable identification of the Eve communication device and the master communication device.

본 발명은 마스터 통신장치와 슬래이브 통신장치의 데이터 통신을 위하여 마스터 통신장치의 RS422/485 통신포트에 여러 개의 슬래이브 통신장치를 연결하되 각각의 슬래이브 통신장치에는 주소(ID)설정이 가능한 컨버터를 설치하는 것으로, RS422/485와 RS232 의 통신데이터 호환이 이루어지는 컨버터의 메인 콘트롤 유니트(MCU)에 라인의 통신속도를 설정하는 라인 통신속도 설정기와 통신장치의 통신속도를 설정하는 장치 통신속도 설정기를 구비하는 한편 슬래이브 통신장치의 주소(ID)를 설정하는 주소 설정기를 구비함으로써 이루어지게 된다.The present invention connects several slave communication devices to the RS422/485 communication port of the master communication device for data communication between the master communication device and the slave communication device, but each slave communication device is a converter capable of setting an address (ID). By installing a line communication speed setter that sets the communication speed of the line to the main control unit (MCU) of the converter that is compatible with communication data of RS422/485 and RS232, and a communication speed setter that sets the communication speed of the communication device. In addition, it is achieved by providing an address setter that sets the address (ID) of the slave communication device.

본 발명은 RS232 슬래이브 통신장치에 주소(ID) 설정이 가능한 컨버터를 내장시킴으로써, 마스터 통신장치의 RS422/485 통신포트에 여러 개의 RS232 슬래이브 통신장치를 연결하여 원거리 통신이 가능케 하는 한편 통신 케이블을 줄일 수 있는 것이다.The present invention enables remote communication by connecting multiple RS232 slave communication devices to the RS422/485 communication port of the master communication device by embedding a converter capable of setting an address (ID) in the RS232 slave communication device. It can be reduced.

본 발명의 컨버터를 구성하는 주소 통신속도 설정기는 2개의 숫자 선택용 스위치를 이용하여 0~99의 주소를 설정할 수 있도록 하고, 통신속도는 4개의 딥스위치를 이용하여 설정하는 한편 라인의 종단저항은 2개의 딥스위치를 이용하여 설정한다.The address communication speed setter constituting the converter of the present invention enables the setting of an address from 0 to 99 using two number selection switches, and the communication speed is set using four dip switches, while the terminating resistance of the line is It is set using two dip switches.

본 발명은 슬래이브 통신장치를 연결할 때 컨버터의 숫자 선택용 스위치를 이용하여 주소를 설정하는 한편 딥스위치를 이용하여 통신속도를 설정하게 되면, 슬래이브 통신장치는 마스터 통신장치와 정해진 통신속도로 선택된 주소(ID)를 이용하여 데이터 통신이 이루어지게 되는 것으로, 슬래이브 통신장치의 컨버터는 주소를 설정하는 과정과, 통신속도를 설정하는 과정을 거치게 되고, 마스터 통신장치에서 슬래이브 통신장치로 전송되는 통신데이터는 전송속도와 주소를 비교하는 과정과, 주소가 일치할 때 데이터를 추출하여 RS232 데이터로 가공한 후 통신속도가 일치되게 전송하는 과정을 수행하게 되고, 슬래이브 통신장치에서 마스터 통신장치로 전송되는 통신데이터는 전송속도를 비교하여 데이터를 수신하는 과정과, 수신된 데이터에 설정된 주소를 부가하는 과정과, 주소가 부가된 데이터를 RS422/485 데이터로 가공한 후 통신속도에 맞추어 전송하는 과정을 수행하게 된다.In the present invention, when the slave communication device is connected, when the address is set using the number selection switch of the converter and the communication speed is set using the dip switch, the slave communication device is selected at the specified communication speed with the master communication device. Data communication is performed using an address (ID), and the converter of the slave communication device goes through the process of setting the address and the communication speed, and is transmitted from the master communication device to the slave communication device. Communication data is a process of comparing transmission speed and address, extracting the data when the address is matched, processing it into RS232 data, and transmitting the communication speed so that the communication speed is consistent, and from the slave communication device to the master communication device. The transmitted communication data is the process of receiving data by comparing the transmission speed, the process of adding a set address to the received data, and the process of processing the addressed data into RS422/485 data and then transmitting it according to the communication speed. Will be performed.

본 발명은 RS232 방식의 슬래이브 통신장치에 주소를 설정함으로써 마스터 통신장치의 RS422/485 통신포트를 이용하여 여러 개의 RS232 슬래이브 통신장치를 연결하는 것으로, RS232 통신 케이블을 사용하지 않아 수 많은 통신 케이블을 설치하는 문제를 해결하는 한편 1200m의 장거리 통신도 가능한 효과가 있다.The present invention is to connect multiple RS232 slave communication devices using the RS422/485 communication port of the master communication device by setting an address to the slave communication device of the RS232 method. While solving the problem of installing a device, there is an effect that long distance communication of 1200m is possible.

본 발명은 RS232 슬래이브 통신장치에 RS422/485 통신데이터와 RS232 통신데이터를 변환시키는 통신 컨버터를 내장시키되 상기 통신 컨버터에는 슬래이브 통신장치 식별용 주소(ID)를 설정할 수 있도록 함으로써, 마스터 통신장치와 슬래이브 통신장치가 설정된 주소를 이용하여 데이터 통신이 이루어지게 하는 것으로, 마스터 통신장치와 슬래이브 통신장치 사이는 RS422/485로 연결하여 장거리 통신이 가능케 함은 물론 통신 케이블의 숫자를 줄이는 효과가 있는 것이다.The present invention embeds a communication converter for converting RS422/485 communication data and RS232 communication data in an RS232 slave communication device, but the communication converter allows the slave communication device identification address (ID) to be set, so that the master communication device and the This allows the slave communication device to perform data communication using the set address. It enables long-distance communication by connecting between the master communication device and the slave communication device through RS422/485, and has the effect of reducing the number of communication cables. will be.

도 1은 기존의 통신 컨버터 개략도
도 2는 본 발명의 통신 컨버터 개략도
도 3은 본 발명의 장치 접속도
도 4는 본 발명의 통신 컨버터 블록도
도 5는 본 발명 컨버터 구성도
도 6은 본 발명 통신 컨버터 플로우 챠트
도 7은 본 발명의 통신데이터 설명도
1 is a schematic diagram of a conventional communication converter
2 is a schematic diagram of a communication converter of the present invention
Figure 3 is a device connection diagram of the present invention
4 is a block diagram of a communication converter according to the present invention
Figure 5 is a configuration diagram of the converter of the present invention
6 is a flow chart of the present invention communication converter
7 is an explanatory diagram of communication data of the present invention

본 명세서 및 청구범위에 사용된 용어나 단어는 통상적이거나 사전적인 의미로 한정해서 해석되어서는 아니 될 것이며, 본 명세서에 기재된 실시 예와 도면에 도시된 구성은 본 발명의 가장 바람직한 일 실시 예에 불과할 뿐이고 본 발명의 기술적 사상을 모두 대변하는 것은 아니므로, 본 출원시점에 있어서 이들을 대체할 수 있는 다양한 균등물과 변형 예들이 있을 수 있음을 이해하여야 한다.Terms and words used in the specification and claims are not to be construed as being limited to their usual or dictionary meanings, and the embodiments described in this specification and the configurations shown in the drawings are only the most preferred embodiments of the present invention However, since it does not represent all of the technical spirit of the present invention, it should be understood that there may be various equivalents and modified examples that can replace them at the time of the present application.

본 발명은 도 2에 도시된 바와 같이 마스터 통신장치의 RS422/485 통신포트에 연결되는 RS232 슬래이브 통신장치에 주소 설정이 가능한 컨버터(100)를 내장시킴으로써, 마스터 통신장치의 RS422/485 통신포트에 여러 개의 RS232 슬래이브 통신장치를 연결하여 원거리 통신이 가능케 하는 한편 통신 케이블을 줄일 수 있는 것이다.In the present invention, as shown in Fig. 2, by embedding a converter 100 capable of setting an address in an RS232 slave communication device connected to the RS422/485 communication port of the master communication device, the RS422/485 communication port of the master communication device By connecting multiple RS232 slave communication devices, it enables long-distance communication while reducing communication cables.

본 발명은 도 3에 도시된바와 같이 하나의 마스터 통신장치(10)에 구비된 RS422/485 통신포트(20)에 여러 개의 RS232 슬래이브 통신장치(30-35)를 연결하는 것으로, 각각의 슬래이브 통신장치(30-35)에는 RS422/485 통신과 RS232 통신이 가능케 하는 통신 컨버터(100-105)를 내장시키되 각각의 통신 컨버터(100-105)에는 주소(ID) 설정 기능을 포함시키는 것이다.The present invention is to connect several RS232 slave communication devices 30-35 to the RS422/485 communication port 20 provided in one master communication device 10, as shown in FIG. The Eve communication device 30-35 includes a communication converter 100-105 that enables RS422/485 communication and RS232 communication, but includes an address (ID) setting function in each communication converter 100-105.

본 발명의 도 4에 도시된 바와 같이 하나의 통신 컨버터(100)는 마스터 통신장치(10)의 RS422/485 통신포트(20)에 연결되는 라인 연결부(110)를 구비하는 한편 RS232 슬래이브 통신장치(30)에 연결되는 장치 연결구(120)를 구비하는 한편 5V 전압조정기(130)를 통하여 전원 공급이 이루어지게 하되 장치 연결부(120)에는 3.3V 전압조정기(131)를 연결하여 TTL 레벨(132) 검출이 이루어지게 하고, 내장된 메인 콘트롤 유니트(150)에는 RS422/485 트랜시버(151)와 RS232 트랜시버(152)를 통하여 공지된 통신 데이터 변환이 이루어지게 하는 한편 메인 콘트롤 유니트(150)는 라인 통신속도 설정기(160)와 장치 통신속도 설정기(170)를 통하여 라인과 장치의 9600, 19200, 38400bps 속도를 설정하는 동시에 주소 설정기(180)를 이용하여 슬래이브 통신장치(30)의 주소를 0~99로 설정할 수 있도록 한다.As shown in FIG. 4 of the present invention, one communication converter 100 includes a line connection unit 110 connected to the RS422/485 communication port 20 of the master communication device 10, while an RS232 slave communication device. While having a device connector 120 connected to 30, power is supplied through a 5V voltage regulator 130, but a 3.3V voltage regulator 131 is connected to the device connector 120 to provide the TTL level 132. The detection is made, and the built-in main control unit 150 performs well-known communication data conversion through the RS422/485 transceiver 151 and the RS232 transceiver 152, while the main control unit 150 has a line communication speed. Set the 9600, 19200, 38400bps speed of the line and device through the setter 160 and the device communication speed setter 170, and at the same time set the address of the slave communication device 30 to 0 using the address setter 180. It can be set to ~99.

이러한, 컨버터(100)는 도 5에 도시된 바와 같이, 두 개의 숫자 선택용 스위치(181)(182)를 조작하여 0~99까지의 주소를 설정하고, 라인이나 장치의 통신속도는 딥스위치(190) 4개를 이용하여 설정하는 한편 라인의 종단저항은 딥스위치(190) 2개를 이용하여 설정하는 한편 전원 및 RS485(422)의 컨넥터와 연결방식을 확인할 수 있다.As shown in FIG. 5, the converter 100 sets an address from 0 to 99 by manipulating two number selection switches 181 and 182, and the communication speed of a line or device is a dip switch ( 190) The terminal resistance of the line is set using four, while the terminal resistance of the line is set using two dip switches 190, and the connector and connection method of the power supply and RS485 422 can be checked.

본 발명은 슬래이브 통신장치(30)를 연결할 때 내장된 컨버터(100)의 주소 설정기(180)를 이용하여 연결된 슬래이브 통신장치(30)의 주소를 설정하게 되고, 이러한 주소는 슬래이브 통신장치(30)에 대한 고유 식별번호로써 마스터 통신장치(10)와의 데이터 통신시 주소가 일치되는 장치에 대해서만 데이터 통신이 이루어지도록 하는 것으로, 기존과 같이 주소 설정기능이 내장되지 않은 컨버터(C)는 여러 개의 RS232 슬래이브 통신장치(30-35)를 연결할 때 마스터 통신장치(10)의 통신포트를 증설시키지 않는 한 연결이 어렵고, 특히 RS232 통신 케이블이 슬래이브 통신장치(30-35)와 대응되게 연결됨으로써 수 많은 통신 케이블을 필요로 하여 통신 케이블의 설치가 어려운 문제를 해결하는 동시에 RS232의 특성에 따른 근거리 통신만 가능한 문제를 해결하는 것이다.In the present invention, when the slave communication device 30 is connected, the address of the connected slave communication device 30 is set using the address setter 180 of the built-in converter 100, and this address is the slave communication device. As a unique identification number for the device 30, data communication with the master communication device 10 allows data communication to be performed only for devices whose addresses match. As in the past, the converter C without the built-in address setting function When connecting multiple RS232 slave communication devices (30-35), connection is difficult unless the communication port of the master communication device (10) is expanded. By being connected, it solves the problem that it is difficult to install communication cables due to the need for many communication cables, and at the same time, it solves the problem that only short-range communication is possible according to the characteristics of RS232.

즉, 본 발명은 마스터 통신장치(10)와 슬래이브 통신장치(30)와의 통신 케이블이 RS422/485의 TRXD+, TRXD-로 이루어지는 멀티 포인트 버스로 연결되기 때문에 두 개의 케이블을 이용하여 다수의 RS232 슬래이브 통신장치(30)가 연결되므로, 통신 케이블의 설치가 간단함은 물론 1200m의 장거리 통신이 가능한 이점이 있다.That is, in the present invention, since the communication cables between the master communication device 10 and the slave communication device 30 are connected by a multi-point bus consisting of TRXD+ and TRXD- of RS422/485, a plurality of RS232 slabs are used using two cables. Since the Eve communication device 30 is connected, installation of a communication cable is simple, and there is an advantage of enabling long-distance communication of 1200 m.

본 발명의 주소 설정이 가능한 컨버터(100)는 0~99의 주소 설정이 가능하고, 통신속도(9600, 19200, 38400bps) 설정이 가능하며, 포로토콜이 서로 다른 RS232장치와 통신이 가능하고, 컴퓨터 또는 프로그램 로직 컨트롤러와 RS482/485 호환이 가능하며, 입력 전원은 4.5~40V 이고, RS232 통신장치와 TTL통신과 UART통신이 가능하여야 한다.The converter 100 capable of setting an address of the present invention can set an address of 0 to 99, can set a communication speed (9600, 19200, 38400bps), can communicate with RS232 devices having different protocols, and can communicate with a computer. Or RS482/485 compatible with program logic controller, input power of 4.5~40V, RS232 communication device, TTL communication and UART communication should be possible.

본 발명의 통신 컨버터를 작동시키는 플로우 챠트는 도 6에 도시된 바와 같다.A flow chart for operating the communication converter of the present invention is as shown in FIG. 6.

전원 투입시 메인 콘트롤 유니트(150)의 초기화가 이루어지고, RS482/485의 전송속도를 설정하는 한편 RS232의 전송속도를 설정하게 되며, 주소 설정기(180)의 스위치(181)(182)를 조작하여 슬래이브 통신장치(30)의 주소를 설정하고, 이렇게 설정된 전송속도와 주소는 컨버터(100)의 작동시 마스터 통신장치(10)와 슬래이브 통신장치(30)의 데이터 통신시 비교하여 양방향 데이터의 정확한 전송이 이루어지게 한다.When the power is turned on, the main control unit 150 is initialized, the transmission speed of RS482/485 is set, while the transmission speed of RS232 is set, and the switches 181, 182 of the address setter 180 are operated. Thus, the address of the slave communication device 30 is set, and the transmission speed and address set in this way are compared during data communication between the master communication device 10 and the slave communication device 30 when the converter 100 is operated. To ensure the correct transmission of

RS485 마스터 통신장치(10)에서 RS232 슬래이브 통신장치(30)로 통신데이터를 전송하는 과정을 살펴본다.A process of transmitting communication data from the RS485 master communication device 10 to the RS232 slave communication device 30 will be described.

마스터 통신장치(10)의 RS482/485 통신포트(20)를 통하여 전송되는 통신데이터는 전송속도를 비교하는 과정을 거친 후 전송속도가 일치할 때 메모리에 저장하는 과정을 거치고, 메모리에 저장된 통신 데이터에 포함된 RS485 주소를 추출하여 컨버터(100)에 설정된 고유의 주소와 비교하는 과정을 거친 후 전송된 주소와 수신된 컨버터의 주소가 일치할 때 전송 데이터의 목적 데이터를 추출하는 과정을 거치며, 추출된 목적 데이터는 RS232 데이터로 가공한 후 메모리에 저장하는 과정을 거치고, 메모리에 저장된 데이터는 전송속도가 일치할 때 슬래이브 통신장치(30)로 RS232 데이터로 송신을 하게 된다.Communication data transmitted through the RS482/485 communication port 20 of the master communication device 10 goes through a process of comparing the transmission speed and then stored in the memory when the transmission speed matches, and the communication data stored in the memory After extracting the RS485 address included in and comparing it with the unique address set in the converter 100, when the transmitted address and the received converter address match, the target data of the transmission data is extracted, and the extraction The target data is processed into RS232 data and then stored in a memory, and the data stored in the memory is transmitted as RS232 data to the slave communication device 30 when the transmission speed matches.

이와는 반대로 슬래이브 통신장치(30)에서 RS232 데이터를 마스터 통신장치(10)로 RS485 데이터로 전송하는 과정을 살펴본다.On the contrary, a process of transmitting RS232 data from the slave communication device 30 to the master communication device 10 as RS485 data will be described.

RS232 슬래이브 통신장치(30)에서 RS232 데이터가 수신되면 전송속도를 비교하여 일치할 때 메모리에 저장하고, 저장된 데이터는 슬래이브 통신장치(30)에서 미리 설정된 주소를 추가한 다음 RS485 송신 메모리에 저장하는 과정을 거치며, 메모리에 저장된 데이터는 전송속도가 일치할 때 RS485 데이터로 마스터 통신장치(10)로 전송하는 과정을 거치게 된다.When RS232 data is received from the RS232 slave communication device 30, the transmission speed is compared and stored in the memory when they match, and the stored data is stored in the RS485 transmission memory after adding a preset address in the slave communication device 30. The data stored in the memory is transmitted to the master communication device 10 as RS485 data when the transmission speed is identical.

본 발명의 컨버터(100)를 거처 전송이 이루어지는 통신데이터는 도 7에 도시된 바와 같은 과정에 거쳐 이루어지게 되고, 마스터 통신장치(10)와 슬래이브 통신장치(30)는 주소(ID)를 이용하여 전송 대상을 특정하게 되며, 이로 인하여 오차없는 통신 데이터의 전송이 이루어지게 된다.Communication data transmitted through the converter 100 of the present invention is performed through a process as shown in FIG. 7, and the master communication device 10 and the slave communication device 30 use an address (ID). As a result, the transmission target is specified, and thus communication data is transmitted without errors.

본 발명은 마스터 통신장치(10)와 슬래이브 통신장치(30) 사이에 데이터 통신이 이루어질 수 있도록 통신 컨버터(100)를 설치하되 상기 통신 컨버터(100)에는 주소 설정이 가능토록 함으로써, 마스터 통신장치(10)에 설치된 하나의 RS482/485 통신포트(20)와 여러 개의 슬래이브 통신장치(30)에 내장된 통신 컨버터(100) 사이는 RS482/485 라인으로 연결하여 두 개의 통신라인을 통한 연결이 이루어지며, 이로 인하여 기존과 같이 마스터 통신장치(10)에서 슬래이브 통신장치(30)가 RS232로 연결할 때와 비교할 때 통신 케이블의 설치가 비교할 수 없을 정도로 간편하고, 통신포트의 증설 없이도 99개의 슬래이브 통신장치(30)를 연결하여 사용할 수 있으며, 주소를 이용하여 정확한 통신 데이터 전송이 이루어지게 된다.In the present invention, the communication converter 100 is installed so that data communication can be performed between the master communication device 10 and the slave communication device 30, but the communication converter 100 enables address setting. One RS482/485 communication port (20) installed in (10) and the communication converter (100) built in several slave communication devices (30) are connected by RS482/485 line, so that connection through two communication lines is not possible. As a result, the installation of the communication cable is incomparably simple compared to when the slave communication device 30 is connected by RS232 in the master communication device 10 as in the past, and 99 slabs are not required without the expansion of the communication port. The Eve communication device 30 can be connected and used, and accurate communication data transmission is performed using an address.

본 발명은 통신 데이터의 전송 과정에서 미리 설정된 주소와 전송속도를 비교하여 전송이 이루어지게 함으로써, 마스터 통신장치(10)에 여러 개의 슬래이브 통신장치(30)가 연결되어 있더라도 통신 데이터의 전송과 수신이 명확히 이루어진다.In the present invention, transmission is performed by comparing a preset address and a transmission rate in the process of transmitting communication data, so that transmission and reception of communication data are performed even if a plurality of slave communication devices 30 are connected to the master communication device 10. This is clearly done.

10 : 마스터 통신장치 20 : RS482/485 통신포트
30 : 슬래이브 통신장치 100 : 컨버터
110 : 라인 연결부 120 : 장치 연결부
130 : 5V 전압조정기 131 : 3.3V 전압조정기
132 : TTL 레벨 150 : 메인 콘트롤 유니트
151 : RS482/485 트랜시버 152 : RS232 트랜시버
160 : 라인 통신속도 설정기 170 : 장치 통신속도 설정기
180 : 주소 설정기 181,182 : 스위치
10: master communication device 20: RS482/485 communication port
30: slave communication device 100: converter
110: line connection 120: device connection
130: 5V voltage regulator 131: 3.3V voltage regulator
132: TTL level 150: main control unit
151: RS482/485 transceiver 152: RS232 transceiver
160: line communication speed setter 170: device communication speed setter
180: address setter 181,182: switch

Claims (4)

마스터 통신장치의 RS422/485 통신포트에 여러 개의 RS232 슬래이브 통신장치를 RS422/485 통신버스로 연결하고,
각각의 슬래이브 통신장치에는 주소설정이 가능한 컨버터를 내장시키되 상기 컨버터는 RS422/485와 RS232 의 통신데이터 호환이 이루어지는 컨버터의 메인 콘트롤 유니트(MCU)에 라인의 통신속도를 설정하는 라인 통신속도 설정기와 통신장치의 통신속도를 설정하는 장치인 통신속도 설정기를 구비하는 한편 슬래이브 통신장치의 주소를 설정하는 주소 설정기를 구비함에 있어서,
상기 메인 콘트롤 유니트는 마스터 통신장치에서 전송되는 통신데이터는 전송속도와 주소를 미리 설정한 전송속도와 주소를 비교하여 수신 슬래이브 장치를 확인한 다음 전송 데이터를 RS232 데이터로 가공한 후 전송되게 하는 한편 슬래이브 통신장치에서 전송되는 통신데이터는 미리 설정된 주소를 부가한 다음 RS422/485 데이터로 가공한 후 전송되게 하고,
상기 주소설정기는 두 개의 숫자 선택용 스위치로 슬래이브 통신장치의 주소를 설정하여 하나의 마스터 통신장치에 99개의 슬래이브 통신장치를 연결하게 이루어지는 것을 특징으로 하는 주소 설정 기능이 내장된 통신 컨버터.
Connect several RS232 slave communication devices to the RS422/485 communication port of the master communication device through the RS422/485 communication bus,
Each slave communication device has a built-in converter capable of address setting, but the converter has a line communication speed setter that sets the communication speed of the line to the main control unit (MCU) of the converter that is compatible with communication data of RS422/485 and RS232. In the presence of an address setter for setting an address of a slave communication device while having a communication speed setter, which is a device for setting a communication speed of a communication device,
The main control unit checks the receiving slave device by comparing the transmission speed and address of the communication data transmitted from the master communication device with the preset transmission rate and address, and then processes the transmission data into RS232 data before being transmitted. Communication data transmitted from the Eve communication device is processed into RS422/485 data after adding a preset address and then transmitted.
And the address setter is configured to connect 99 slave communication devices to one master communication device by setting the address of the slave communication device with two number selection switches.
삭제delete 삭제delete 삭제delete
KR1020200093638A 2020-07-28 2020-07-28 Communication Converter with built-in address setting KR102233681B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020200093638A KR102233681B1 (en) 2020-07-28 2020-07-28 Communication Converter with built-in address setting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200093638A KR102233681B1 (en) 2020-07-28 2020-07-28 Communication Converter with built-in address setting

Publications (1)

Publication Number Publication Date
KR102233681B1 true KR102233681B1 (en) 2021-03-30

Family

ID=75265167

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200093638A KR102233681B1 (en) 2020-07-28 2020-07-28 Communication Converter with built-in address setting

Country Status (1)

Country Link
KR (1) KR102233681B1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5956523A (en) * 1996-08-09 1999-09-21 Advantech Co., Ltd. Method and apparatus for reducing the number of RS232/RS485 transmission converters required for communicating between a PC and a plurality of instruments
KR100290133B1 (en) 1998-12-30 2001-05-15 권상문 Auto RS232 / RS485 Communication Converter
KR20020076880A (en) * 2001-03-31 2002-10-11 이태희 Level converter for wommunication of technic of no-power
KR101400688B1 (en) 2013-03-19 2014-05-29 주식회사 리모텍 Converter
KR101421151B1 (en) 2012-11-26 2014-07-18 한국수력원자력 주식회사 Multi-communication circuit for rs232
US20170200431A1 (en) * 2014-07-29 2017-07-13 Sew-Eurodrive Gmbh & Co. Kg Use of a display of a converter, method for operating a converter, and converter

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5956523A (en) * 1996-08-09 1999-09-21 Advantech Co., Ltd. Method and apparatus for reducing the number of RS232/RS485 transmission converters required for communicating between a PC and a plurality of instruments
KR100290133B1 (en) 1998-12-30 2001-05-15 권상문 Auto RS232 / RS485 Communication Converter
KR20020076880A (en) * 2001-03-31 2002-10-11 이태희 Level converter for wommunication of technic of no-power
KR100439379B1 (en) 2001-03-31 2004-07-09 이태희 Level converter for wommunication of technic of no-power
KR101421151B1 (en) 2012-11-26 2014-07-18 한국수력원자력 주식회사 Multi-communication circuit for rs232
KR101400688B1 (en) 2013-03-19 2014-05-29 주식회사 리모텍 Converter
US20170200431A1 (en) * 2014-07-29 2017-07-13 Sew-Eurodrive Gmbh & Co. Kg Use of a display of a converter, method for operating a converter, and converter

Similar Documents

Publication Publication Date Title
US7565470B2 (en) Serial bus device with address assignment by master device
US20090234998A1 (en) Connection system
CN107688548B (en) System, device and method for expanding sequence communication and system for expanding communication port
CN109313466B (en) System for implementing MXM on PCI card
EP1701271A1 (en) Electronic apparatus system with master node and slave node
CN101930314A (en) Touch control system in order to the control contact panel
CN101082896A (en) Control method and device between master-salve module
KR102233681B1 (en) Communication Converter with built-in address setting
US9658332B2 (en) Sensor for vehicle and vehicle including the same
JP4902500B2 (en) Power control system
KR20060131489A (en) Device and method for performing multi- functions using unique port in wireless terminal
KR102257062B1 (en) Communication method of communication converter with address setting function
CN101685433B (en) Serial bus unit assigned address by primary device
JP6391373B2 (en) Master / slave network device
KR20060111202A (en) Display apparatus, control method thereof and communication system
CN108228520B (en) BMC-oriented I2C controller fast transmission method
CN201820120U (en) Self-adapting multibus execution mechanism controller
KR100668976B1 (en) Bus extender
KR101490823B1 (en) Apparatus of universal inter-integrated circuit interface for controlling devices using fpga and communication method for using the same
US20210209053A1 (en) Transmission device, transmission method, receiving device, and receiving method
JP5107153B2 (en) Programmable controller system
US7565166B2 (en) Non-interacting transmission of identification information on communication lines
CN102023823B (en) Communication control method and system for USB printing device
CN116155861B (en) Wired communication system and configuration method of device ID thereof
KR20140106872A (en) Apparatus for controlling external electric devices

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant