KR102257062B1 - Communication method of communication converter with address setting function - Google Patents
Communication method of communication converter with address setting function Download PDFInfo
- Publication number
- KR102257062B1 KR102257062B1 KR1020200128750A KR20200128750A KR102257062B1 KR 102257062 B1 KR102257062 B1 KR 102257062B1 KR 1020200128750 A KR1020200128750 A KR 1020200128750A KR 20200128750 A KR20200128750 A KR 20200128750A KR 102257062 B1 KR102257062 B1 KR 102257062B1
- Authority
- KR
- South Korea
- Prior art keywords
- communication
- data
- communication device
- address
- converter
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4004—Coupling between buses
- G06F13/4027—Coupling between buses using bus bridges
- G06F13/404—Coupling between buses using bus bridges with address mapping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Communication Control (AREA)
Abstract
Description
본 발명은 하나의 마스터 통신장치에서 통신 데이터 형식(프로토콜)이 상이한 여러 개의 슬래이브 통신장치를 연결할 때 슬래이브 통신장치에 주소 설정기능이 부가된 통신 컨버터를 이용하여 데이터 통신이 가능하도록 하는 주소 설정 기능이 부가된 통신 컨버터의 통신방법에 관한 것이다.The present invention provides address setting enabling data communication by using a communication converter with an address setting function added to the slave communication device when multiple slave communication devices with different communication data formats (protocol) are connected in one master communication device. It relates to a communication method of a communication converter with added functions.
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 1 bit at a time. Although the communication distance is 15m, the higher the communication speed, the shorter the distance. There is no difference in usage except that 2 lines are required per line. In multi-drop mode, TXD+, TXD-, RXD+, RXD- signal lines are used. RS485 uses only half duplex transmission method, not full duplex like RS232 or RS422. All masters of RS422 have to connect or short the TXD signal to the multi-point bus, as well as control the connection and short circuit of the RXD signal according to the mode.
통신 프로토콜이 서로 다른 마스터 통신장치와 슬래이브 통신장치 사이의 통신을 위해서는 도 1에 도시된 바와 같이 공지의 컨버터(C)를 이용하여 RS422/485 통신장치와 RS232 통신장치들과 통신 데이터를 호환시켜 전송이 이루어지게 하고 있으나, RS232는 한 개의 통신포트에 하나의 통신장치만을 연결할 수 있기 때문에, 하나의 마스터 통신장치에 통신 프로토콜이 다른 여러 개의 슬래이브 통신장치를 연결할 때에는 마스터 통신장치의 통신포트가 부족하여 여러 개의 슬래이브 통신장치를 연결하지 못하는 문제가 발생하게 된다.For communication between a master communication device and a slave communication device having different communication protocols, as shown in FIG. 1, a known converter (C) is used to make communication data compatible with RS422/485 communication devices and RS232 communication devices. However, since RS232 can connect only one communication device to one communication port, when connecting several slave communication devices with different communication protocols to one master communication device, the communication port of the master communication device is There is a problem that it is not possible to connect several slave communication devices.
결국 마스터 통신장치에서 여러 개의 RS232 슬래이브 통신장치와 데이터 통신을 하기 위해서는 마스터 통신장치에 다수의 통신포트를 추가할 수밖에 없는 문제가 발생하는 것으로, 통신포트 추가는 많은 비용 상승과, PLC(Programmable Logic Controller)의 경우 RS232 통신포트 증설에 한계가 발생하는 문제와 함께 케이블을 다량으로 설치하는 문제 및 통신거리가 제한되는 문제가 있다.In the end, in order for the master communication device to perform data communication with several RS232 slave communication devices, there is a problem in that a large number of communication ports must be added to the master communication device. Controller), there is a problem in that there is a limit to the extension of the RS232 communication port, a problem in installing a large amount of cables and a problem in the communication distance is limited.
본 발명은 하나의 마스터 통신장치에 통신 프로토콜이 다른 여러 개의 슬래이브 통신장치를 연결하여 데이터 통신을 할 때 부족할 수밖에 없는 통신포트를 추가하는 어려움과 함께 RS232 케이블 연결시 수 많은 통신 케이블을 설치하는 한편 15m 이내의 근거리 통신만 가능한 문제를 해결하기 위한 것으로, 마스터 통신장치의 RS422/485 통신포트를 이용하여 여러 개의 RS232 슬래이브 통신장치를 연결하되 각각의 슬래이브 통신장치에는 주소(ID)를 설정하여 슬래이브 통신장치와 마스터 통신장치의 식별이 이루어질 수 있도록 하는 것이다.According to the present invention, it is difficult to add a communication port, which is inevitable when data communication is performed by connecting several slave communication devices with different communication protocols to one master communication device, and installing a number of communication cables when connecting an RS232 cable. This is to solve the problem that only short-distance communication within 15m is possible. Connect multiple RS232 slave communication devices using the RS422/485 communication port of the master communication device, but set the address (ID) to each slave communication device. This is to enable identification of the slave 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 baud rate setter that sets the communication speed of the line in the main control unit (MCU) of a known converter that is compatible with RS422/485 and RS232 communication data, and a device that sets the communication speed of the communication device. This is accomplished by providing an address setting unit for setting an address (ID) of a slave communication device while having a setting unit.
본 발명은 RS232 슬래이브 통신장치에 주소(ID) 설정이 가능한 컨버터를 내장시켜 마스터 통신장치의 RS485 통신포트에 여러 개의 RS232 슬래이브 통신장치를 연결함으로써 슬래이브 통신장치는 마스터 통신장치와 정해진 통신속도로 선택된 주소(ID)를 이용하여 데이터 통신이 이루어지게 되는 것으로, 슬래이브 통신장치의 컨버터는 슬래이브 통신장치 연결 시 메인 콘트롤 유니트를 초기화시킨 후 RS485 전송속도와 RS232 전송속도를 조절하는 한편 주소(ID)를 설정하는 과정을 수행하고;, 마스터 통신장치에서 전송되는 RS485 통신데이터는 전송속도를 비교하여 서로 일치할 때 수신 메모리에 저장하는 과정과, 저장된 통신데이터의 주소와 컨버터의 주소를 비교하여 일치할 때 목적 데이터를 추출하는 과정과, 추출된 목적 데이터는 RS232 데이터로 가공한 후 송신메모리에 저장하는 과정과, 송신 메모리에 저장된 데이터는 전송속도를 비교하여 일치할 때 슬래이브 통신장치로 RS232 데이터 송신을 하는 과정을 수행하며;, 슬래이브 통신장치에서 전송되는 RS232 통신데이터는 전송속도를 비교하여 서로 일치할 때 수신 메모리에 저장하는 과정과, 수신된 메모리에 주소를 추가한 후 송신 메모리에 저장하는 과정과, 송신 메모리에 저장된 데이터는 전송속도를 비교하여 서로 일치할 때 마스터 통신장치로 RS485 데이터 통신을 하는 과정을 수행하는 과정을 통하여 이루어지게 된다.The present invention embeds a converter capable of setting an address (ID) in the RS232 slave communication device and connects several RS232 slave communication devices to the RS485 communication port of the master communication device. Data communication is performed using the selected address (ID). The converter of the slave communication device initializes the main control unit when connecting the slave communication device, and then adjusts the RS485 transmission rate and RS232 transmission rate while adjusting the address ( ID) is set; the RS485 communication data transmitted from the master communication device compares the transmission speed and stores it in the receiving memory when they match each other, and compares the address of the stored communication data with the address of the converter. The process of extracting the target data when they match, the process of processing the extracted target data into RS232 data and storing it in the sending memory, and the data stored in the sending memory comparing the transmission speed to RS232 to the slave communication device when they match The process of data transmission is performed; the RS232 communication data transmitted from the slave communication device compares the transmission speed and stores it in the receiving memory when they match each other, and after adding the address to the received memory, it is stored in the transmitting memory. The process of saving and the data stored in the transmission memory are made through the process of performing RS485 data communication with the master communication device when the transmission speed is compared and matched with each other.
본 발명은 RS232 방식의 슬래이브 통신장치에 주소를 설정할 수 있는 컨버터를 내장시킴으로써 마스터 통신장치의 RS422/485 통신포트를 이용하여 여러 개의 RS232 슬래이브 통신장치를 연결하는 것으로, RS232 통신 케이블을 사용하지 않아 수 많은 통신 케이블을 설치하는 문제를 해결하는 한편 1200m의 장거리 통신도 가능한 효과가 있다.The present invention connects several RS232 slave communication devices using the RS422/485 communication port of the master communication device by embedding a converter capable of setting an address in the RS232 type slave communication device, and does not use an RS232 communication cable. It solves the problem of installing a lot of communication cables, while also enabling long-distance communication of 1200m.
본 발명은 RS232 슬래이브 통신장치에 RS422/485 통신데이터와 RS232 통신데이터를 변환시키는 통신 컨버터를 내장시키되 상기 통신 컨버터에는 슬래이브 통신장치 식별용 주소(ID)를 설정할 수 있도록 함으로써, 마스터 통신장치와 슬래이브 통신장치가 설정된 주소를 이용하여 데이터 통신이 이루어지게 하는 것으로, 마스터 통신장치와 슬래이브 통신장치 사이는 RS422/485 멀티 포인트 버스로 연결하여 장거리 통신이 가능케 함은 물론 통신 케이블의 숫자를 줄이는 효과가 있는 것이다.The present invention embeds a communication converter that converts RS422/485 communication data and RS232 communication data into an RS232 slave communication device, and enables the slave communication device identification address (ID) to be set in the communication converter, so that the master communication device and It enables data communication using the address set by the slave communication device. It enables long-distance communication by connecting the master communication device and the slave communication device with RS422/485 multi-point bus, as well as reducing the number of communication cables. it will work
도 1은 기존의 통신 컨버터 개략도
도 2는 본 발명의 통신 컨버터 개략도
도 3은 본 발명의 장치 접속도
도 4는 본 발명의 통신 컨버터 블록도
도 5는 본 발명 통신 컨버터 플로우 챠트
도 6은 본 발명의 통신데이터 설명도1 is a schematic diagram of a conventional communication converter;
2 is a schematic diagram of a communication converter of the present invention;
3 is a device connection diagram of the present invention;
4 is a block diagram of a communication converter according to the present invention;
5 is a flowchart of a communication converter according to the present invention;
6 is an explanatory diagram of communication data of the present invention;
본 명세서 및 청구범위에 사용된 용어나 단어는 통상적이거나 사전적인 의미로 한정해서 해석되어서는 아니 될 것이며, 본 명세서에 기재된 실시 예와 도면에 도시된 구성은 본 발명의 가장 바람직한 일 실시 예에 불과할 뿐이고 본 발명의 기술적 사상을 모두 대변하는 것은 아니므로, 본 출원시점에 있어서 이들을 대체할 수 있는 다양한 균등물과 변형 예들이 있을 수 있음을 이해하여야 한다.The terms or words used in the present specification and claims should not be construed as being limited to conventional or dictionary meanings, and the embodiments described in the present specification and the configurations shown in the drawings are only the most preferred embodiment of the present invention. It should be understood that, since it does not represent all of the technical spirit of the present invention, there may be various equivalents and modifications that can be substituted for them at the time of the present application.
본 발명은 도 2에 도시된 바와 같이 마스터 통신장치의 RS422/485 통신포트에 연결되는 RS232 슬래이브 통신장치에 주소 설정이 가능한 컨버터(100)를 내장시킴으로써, 마스터 통신장치의 RS422/485 통신포트에 여러 개의 RS232 슬래이브 통신장치를 연결하여 원거리 통신이 가능케 하는 한편 통신 케이블을 줄일 수 있는 것이다.As shown in FIG. 2, the present invention embeds a
본 발명은 도 3에 도시된바와 같이 하나의 마스터 통신장치(10)에 구비된 RS422/485 통신포트(20)에 여러 개의 RS232 슬래이브 통신장치(30-35)를 연결하는 것으로, 각각의 슬래이브 통신장치(30-35)에는 RS422/485 통신과 RS232 통신이 가능케 하는 통신 컨버터(100-105)를 내장시키되 각각의 통신 컨버터(100-105)에는 주소(ID) 설정 기능을 포함시키는 것이다.As shown in FIG. 3, the present invention connects several RS232 slave communication devices 30-35 to the RS422/485
본 발명의 도 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
이러한, 컨버터(100)는 두 개의 숫자 선택용 스위치를 조작하여 0~99까지의 주소를 설정하고, 라인이나 장치의 통신속도와 라인의 종단저항은 딥스위치를 이용하여 설정한다,The
본 발명은 슬래이브 통신장치(30)를 연결할 때 내장된 컨버터(100)의 주소 설정기(180)를 이용하여 연결된 슬래이브 통신장치(30)의 주소(ID)를 설정하게 되고, 이러한 주소는 슬래이브 통신장치(30)에 대한 고유 식별번호로써 마스터 통신장치(10)와의 데이터 통신시 주소가 일치되는 장치에 대해서만 데이터 통신이 이루어지도록 하는 것으로, 기존과 같이 주소 설정기능이 내장되지 않은 컨버터(C)는 여러 개의 RS232 슬래이브 통신장치(30-35)를 연결할 때 마스터 통신장치(10)의 통신포트를 증설시키지 않는 한 연결이 어렵고, 특히 RS232 통신 케이블이 슬래이브 통신장치(30-35)와 대응되게 연결됨으로써 수 많은 통신 케이블을 필요로 하여 통신 케이블의 설치가 어려운 문제를 해결하는 동시에 RS232의 특성에 따른 근거리 통신만 가능한 문제를 해결하는 것이다.In the present invention, when the
즉, 본 발명은 마스터 통신장치(10)와 슬래이브 통신장치(30)와의 통신 케이블이 RS422/485의 TRXD+, TRXD-로 이루어지는 멀티 포인트 버스로 연결되기 때문에 두 개의 케이블을 이용하여 다수의 RS232 슬래이브 통신장치(30)가 연결되므로, 통신 케이블의 설치가 간단함은 물론 1200m의 장거리 통신이 가능한 이점이 있다.That is, in the present invention, since the communication cable between the
본 발명의 주소 설정이 가능한 컨버터(100)는 0~99의 주소 설정이 가능하고, 통신속도(9600, 19200, 38400bps) 설정이 가능하며, 포로토콜이 서로 다른 RS232장치와 통신이 가능하고, 컴퓨터 또는 프로그램 로직 컨트롤러와 RS482/485 호환이 가능하며, 입력 전원은 4.5~40V 이고, RS232 통신장치와 TTL통신과 UART통신이 가능하여야 한다.The
본 발명의 통신 컨버터를 작동시키는 플로우 챠트는 도 5에 도시된 바와 같다.A flow chart of operating the communication converter of the present invention is shown in FIG. 5 .
본 발명은 RS232 슬래이브 통신장치에 주소(ID) 설정이 가능한 컨버터를 내장켜 마스터 통신장치와 정해진 통신속도로 선택된 주소(ID)를 이용하여 데이터 통신이 이루어지게 되는 것으로, 슬래이브 통신장치의 컨버터는 슬래이브 통신장치 연결 시 메인 콘트롤 유니트를 초기화시킨 후 RS485 전송속도와 RS232 전송속도를 조절하는 한편 주소(ID)를 설정하는 과정을 수행하고,The present invention embeds a converter capable of setting an address (ID) in an RS232 slave communication device so that data communication is performed using a selected address (ID) at a predetermined communication speed with the master communication device. When connecting a slave communication device, after initializing the main control unit, it controls the RS485 baud rate and RS232 baud rate and performs the process of setting the address (ID),
마스터 통신장치에서 전송되는 RS485 통신데이터는 전송속도를 비교하여 서로 일치할 때 수신 메모리에 저장하는 과정과, 저장된 통신데이터의 주소와 컨버터의 주소를 비교하여 일치할 때 목적 데이터를 추출하는 과정과, 추출된 목적 데이터는 RS232 데이터로 가공한 후 송신메모리에 저장하는 과정과, 송신 메모리에 저장된 데이터는 전송속도를 비교하여 일치할 때 슬래이브 통신장치로 RS232 데이터 송신을 하는 과정을 수행하며,The process of comparing the transmission speed of RS485 communication data transmitted from the master communication device and storing it in the receiving memory when they match each other, the process of comparing the address of the stored communication data with the address of the converter and extracting the target data when they match; The extracted target data is processed into RS232 data and stored in the transmission memory, and the data stored in the transmission memory compares the transmission speed and transmits the RS232 data to the slave communication device when they match.
슬래이브 통신장치에서 전송되는 RS232 통신데이터는 전송속도를 비교하여 서로 일치할 때 수신 메모리에 저장하는 과정과, 수신된 메모리에 주소를 추가한 후 송신 메모리에 저장하는 과정과, 송신 메모리에 저장된 데이터는 전송속도를 비교하여 서로 일치할 때 마스터 통신장치로 RS485 데이터 통신을 하는 과정을 수행하는 과정을 통하여 이루어진다.The RS232 communication data transmitted from the slave communication device compares the baud rate and stores it in the receiving memory when they match each other, the process of adding an address to the received memory and storing it in the sending memory, and the data stored in the sending memory is made through the process of performing RS485 data communication with the master communication device when the transmission speed is compared and matched with each other.
이러한 본 발명의 전송 과정을 상세히 살펴본다.The transmission process of the present invention will be described in detail.
슬래이브 통신장치(30)는 초기 연결과정에서 전원 투입시 메인 콘트롤 유니트(150)를 초기화시키고, 마스터 통신장치(10)에서 전송되는 RS485 전송속도를 설정하는 한편 슬래이브 통신장치(30)로 전송되는 RS232의 전송속도를 설정하게 되며, 주소 설정기(180)를 이용하여 슬래이브 통신장치(30)의 주소를 설정하게 되며, 이렇게 설정된 전송속도와 주소는 컨버터(100)의 작동시 마스터 통신장치(10)와 슬래이브 통신장치(30)의 데이터 통신시 비교하여 양방향 데이터의 정확한 전송이 이루어지게 한다.The
RS485 마스터 통신장치(10)에서 RS232 슬래이브 통신장치(30)로 통신데이터를 전송하는 과정을 살펴본다.A process of transmitting communication data from the RS485
마스터 통신장치(10)의 RS482/485 통신포트(20)를 통하여 전송되는 RS485 통신데이터는 설정된 전송속도를 비교하여 일치하는 경우에만 수신 메모리에 저장하고, 저장된 통신 데이터에 포함된 주소는 컨버터(100)에 설정된 고유의 주소와 비교하는 과정을 거친 후 전송된 주소와 컨버터의 주소가 일치할 때 전송 데이터의 목적 데이터를 추출하는 과정을 거치며, 추출된 목적 데이터는 RS232 데이터로 가공한 후 송신 메모리에 저장하는 과정을 거치고, 송신 메모리에 저장된 데이터는 전송속도를 비교하여 서로 일치할 때 슬래이브 통신장치(30)로 RS232 데이터 송신을 하게 된다.The RS485 communication data transmitted through the RS482/485
이와는 반대로 슬래이브 통신장치(30)에서 RS232 데이터를 마스터 통신장치(10)로 RS485 데이터로 전송하는 과정을 살펴본다.Conversely, a process of transmitting RS232 data from the
RS232 슬래이브 통신장치(30)에서 RS232 데이터가 수신되면 전송속도를 비교하여 일치할 때 수신 메모리에 저장하고, 저장된 데이터는 슬래이브 통신장치(30)에서 미리 설정된 주소를 추가한 다음 RS485 송신 메모리에 저장하는 과정을 거치며, 송신 메모리에 저장된 데이터는 전송속도가 일치할 때 RS485 데이터로 마스터 통신장치(10)로 전송하는 과정을 거치게 된다.When RS232 data is received from the RS232
본 발명의 컨버터(100)를 거처 전송이 이루어지는 통신데이터는 도 6에 도시된 바와 같은 과정에 거쳐 이루어지게 되고, 마스터 통신장치(10)와 슬래이브 통신장치(30)는 주소(ID)를 이용하여 전송 대상을 특정하게 되며, 이로 인하여 오차없는 통신 데이터의 전송이 이루어지게 된다.Communication data transmitted through the
본 발명은 마스터 통신장치(10)와 슬래이브 통신장치(30) 사이에 데이터 통신이 이루어질 수 있도록 통신 컨버터(100)를 설치하되 상기 통신 컨버터(100)에는 주소 설정이 가능토록 함으로써, 마스터 통신장치(10)에 설치된 하나의 RS482/485 통신포트(20)와 여러 개의 슬래이브 통신장치(30)에 내장된 통신 컨버터(100) 사이는 RS482/485 라인으로 연결하여 두 개의 통신라인을 통한 연결이 이루어지며, 이로 인하여 기존과 같이 마스터 통신장치(10)에서 슬래이브 통신장치(30)가 RS232로 연결할 때와 비교할 때 통신 케이블의 설치가 비교할 수 없을 정도로 간편하고, 통신포트의 증설 없이도 99개의 슬래이브 통신장치(30)를 연결하여 사용할 수 있으며, 주소를 이용하여 정확한 통신 데이터 전송이 이루어지게 된다.In the present invention, the
본 발명은 통신 데이터의 전송 과정에서 미리 설정된 주소와 전송속도를 비교하여 전송이 이루어지게 함으로써, 마스터 통신장치(10)에 여러 개의 슬래이브 통신장치(30)가 연결되어 있더라도 통신 데이터의 전송과 수신이 명확히 이루어진다.In the present invention, the transmission and reception of communication data are performed by comparing a preset address and a transmission speed in the transmission process of communication data, so that even if several
10 : 마스터 통신장치 20 : RS482/485 통신포트
30 : 슬래이브 통신장치 100 : 컨버터
110 : 라인 연결부 120 : 장치 연결부
130 : 5V 전압조정기 131 : 3.3V 전압조정기
132 : TTL 레벨 150 : 메인 콘트롤 유니트
151 : RS482/485 트랜시버 152 : RS232 트랜시버
160 : 라인 통신속도 설정기 170 : 장치 통신속도 설정기
180 : 주소 설정기10: Master communication device 20: RS482/485 communication port
30: slave communication device 100: converter
110: line connection unit 120: device connection unit
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 baud rate setter 170: device baud rate setter
180: address setter
Claims (2)
상기 슬래이브 통신장치의 컨버터는 슬래이브 통신장치 연결 시 메인 콘트롤 유니트를 초기화시킨 후 RS485 전송속도와 RS232 전송속도를 조절하는 한편 주소(ID)를 설정하는 과정을 수행하고;,
상기 마스터 통신장치에서 전송되는 RS485 통신데이터는 전송속도를 비교하여 서로 일치할 때 수신 메모리에 저장하는 과정과, 저장된 통신데이터의 주소와 컨버터의 주소를 비교하여 일치할 때 목적 데이터를 추출하는 과정과, 추출된 목적 데이터는 RS232 데이터로 가공한 후 송신메모리에 저장하는 과정과, 송신 메모리에 저장된 데이터는 전송속도를 비교하여 일치할 때 슬래이브 통신장치로 RS232 데이터 송신을 하는 과정을 수행하며;,
상기 슬래이브 통신장치에서 전송되는 RS232 통신데이터는 전송속도를 비교하여 서로 일치할 때 수신 메모리에 저장하는 과정과, 수신된 메모리에 주소를 추가한 후 송신 메모리에 저장하는 과정과, 송신 메모리에 저장된 데이터는 전송속도를 비교하여 서로 일치할 때 마스터 통신장치로 RS485 데이터 통신을 하는 과정을 수행하여 이루어지는 것을 특징으로 하는 주소 설정 기능이 부가된 통신 컨버터의 통신방법.Connect several RS232 slave communication devices to the RS422/485 communication port of the master communication device by RS422/485 communication bus, but after setting the address (ID) of the slave communication device with a converter that can set the address to the slave communication device, The communication data transmitted from the master communication device compares the transmission speed and the address of the converter whose address is set in advance, and when they match, the transmission data is transmitted to the receiving slave device as RS232 data while the slave communication device sends the transmission data as RS232 data. In the communication method to transmit the communication data to be transmitted as RS422/485 data after adding a preset address in the converter,
When the slave communication device is connected, the converter of the slave communication device initializes the main control unit and then adjusts the RS485 baud rate and RS232 baud rate while setting the address (ID);
The RS485 communication data transmitted from the master communication device compares the transmission speed and stores it in the receiving memory when they match, compares the address of the stored communication data with the address of the converter and extracts the target data when they match; , the extracted target data is processed into RS232 data and stored in the transmission memory, and the data stored in the transmission memory compares the transmission speed and transmits the RS232 data to the slave communication device when they match;
The RS232 communication data transmitted from the slave communication device compares the transmission speed and stores it in the receiving memory when they match each other, adding an address to the received memory and storing it in the transmitting memory, and storing it in the transmitting memory. A communication method of a communication converter with an address setting function, characterized in that the data is made by performing a process of performing RS485 data communication with the master communication device when the data are matched with each other by comparing the transmission speed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020200128750A KR102257062B1 (en) | 2020-10-06 | 2020-10-06 | Communication method of communication converter with address setting function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020200128750A KR102257062B1 (en) | 2020-10-06 | 2020-10-06 | Communication method of communication converter with address setting function |
Publications (1)
Publication Number | Publication Date |
---|---|
KR102257062B1 true KR102257062B1 (en) | 2021-06-02 |
Family
ID=76372722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020200128750A KR102257062B1 (en) | 2020-10-06 | 2020-10-06 | Communication method of communication converter with address setting function |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR102257062B1 (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100290133B1 (en) | 1998-12-30 | 2001-05-15 | 권상문 | Auto RS232 / RS485 Communication Converter |
KR100439379B1 (en) | 2001-03-31 | 2004-07-09 | 이태희 | Level converter for wommunication of technic of no-power |
JP2005094483A (en) * | 2003-09-18 | 2005-04-07 | Fuji Electric Systems Co Ltd | Communication controller and information processor |
KR20110055874A (en) * | 2009-11-20 | 2011-05-26 | 한국항공우주연구원 | Arinc429 - rs422(232) converter |
KR101400688B1 (en) | 2013-03-19 | 2014-05-29 | 주식회사 리모텍 | Converter |
KR101421151B1 (en) | 2012-11-26 | 2014-07-18 | 한국수력원자력 주식회사 | Multi-communication circuit for rs232 |
KR101534686B1 (en) * | 2013-12-31 | 2015-07-08 | 한국원자력연구원 | Data transmitting system and the transmitting method |
-
2020
- 2020-10-06 KR KR1020200128750A patent/KR102257062B1/en active IP Right Grant
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100290133B1 (en) | 1998-12-30 | 2001-05-15 | 권상문 | Auto RS232 / RS485 Communication Converter |
KR100439379B1 (en) | 2001-03-31 | 2004-07-09 | 이태희 | Level converter for wommunication of technic of no-power |
JP2005094483A (en) * | 2003-09-18 | 2005-04-07 | Fuji Electric Systems Co Ltd | Communication controller and information processor |
KR20110055874A (en) * | 2009-11-20 | 2011-05-26 | 한국항공우주연구원 | Arinc429 - rs422(232) converter |
KR101421151B1 (en) | 2012-11-26 | 2014-07-18 | 한국수력원자력 주식회사 | Multi-communication circuit for rs232 |
KR101400688B1 (en) | 2013-03-19 | 2014-05-29 | 주식회사 리모텍 | Converter |
KR101534686B1 (en) * | 2013-12-31 | 2015-07-08 | 한국원자력연구원 | Data transmitting system and the transmitting method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7398336B2 (en) | Switching device for RS-232 serial port and USB serial port | |
US6151653A (en) | USB/UART converter and its control method | |
US11188489B2 (en) | USB connections | |
CN107682247B (en) | Efficient communication method for host and multiple slaves | |
CN102035898B (en) | The method of automation equipment and data processing equipment data communication and interface convertor | |
CN102648459A (en) | Communication converter for connecting an automation device to a computer and method for controlling the communication converter | |
EP1739569B1 (en) | Device and method for performing multi-function using unique port in wireless terminal | |
KR102257062B1 (en) | Communication method of communication converter with address setting function | |
KR102233681B1 (en) | Communication Converter with built-in address setting | |
CN207853917U (en) | A kind of slave, communication expansion card and group network system | |
KR20060111202A (en) | Display apparatus, control method thereof and communication system | |
CN108123904A (en) | A kind of communication bus impedance auto-match device and method | |
CN101894090B (en) | RS-485 signal converter capable of automatically adjusting transmitting-receiving order | |
US7730240B2 (en) | Method for controlling the access times to a system bus and communication module | |
CN101281510B (en) | Double-I2C bus setting method and double I2C bus system | |
KR20140002254A (en) | Apparatus and method for communication processing of plc | |
CN201820120U (en) | Self-adapting multibus execution mechanism controller | |
CN101882124A (en) | RS422/485 double-use signal converter capable of automatically judging connector | |
CN100545773C (en) | The nothing feedback of identifying information on communication line transmits | |
KR20140106872A (en) | Apparatus for controlling external electric devices | |
KR101492452B1 (en) | Apparatus for controlling external electric devices | |
KR101534686B1 (en) | Data transmitting system and the transmitting method | |
KR101328505B1 (en) | apparatus for controlling long-distance multi-path using RS-232C | |
CN214236813U (en) | Welding controller and robot communication system | |
CN102023823A (en) | Communication control method and system for USB printing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |