EasyManua.ls Logo

Embedded Systems LogiMachine5 Power - Communication with RS232;RS485 Serial Ports

Embedded Systems LogiMachine5 Power
254 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
223
18. Communication with RS232/RS485 serial ports
The following are the naming of Serial ports for different versions of Logic Machine.
LM4
Reactor,
LM5
Reactor V2
GND
GND
GND
RS485 A
RS485-1
RS485 A
RS485-1
RS485 A
RS485
RS485 B
RS485 B
RS485 B
GND
GND
RS485 A
RS485-2
RS485 A
RS485-2
RS485 B
RS485 B
GND
RS485 A
RS485-3
RS485 B
Reactor
V3
GND
RS485 A
RS485
RS485 B
Note! LM5 series devices have 1 definitive serial port RS-485 and other one can work either as
RS-485 or RS-232. The one will work which is most recently opened.
If the following command is used, you activate RS-485 second port:
port = serial.open('/dev/RS485-2', { baudrate = 115200, parity = 'even', duplex = 'ha
lf' })
If the following command is used, you activate RS-232 port:
port = serial.open('/dev/RS232', { baudrate = 9600, parity = 'even', duplex = 'full'
})
LM5L, LM5-RIO,
LM5-RIOE
RS485 A
RS485-1
RS485 B
GND
RS485 A
RS485-2
RS485 B
GND
TX
RS232
RX
GND

Table of Contents