ICP DAS
LinPAC-52xx Series XV-Board API User Manual
7
Remarks:
[1] Refer to the communication port number in the table below when sending the Modbus
protocol request.
'
cPort
’ parameter for the XV-Board module: 1=COM1=/dev/ttyO1.
'
cPort
' parameter for the RS-485 serial port: 2=COM2=/dev/ttyO2, 5=COM5=/dev/ttyO5.
Note
: Remote I/O modules can be remotely controlled through an
RS-485
serial bus. Refer
” for details of demonstration details.
Device Name
Definition in the
LP-22xx/52xx SDK
Description
Default
Baud Rate
-
/dev/ttyO1 or COM1
Used for internal communication with the
XV-Board
115200
-
Console port
RS-232 (RxD, TxD and GND); Non-isolated
115200
ttyO4
/dev/ttyO4 or COM4
RS-232 (RxD, TxD and GND); Non-isolated
9600
ttyO2
/dev/ttyO2 or COM2
RS-485 (Data+, Data-); Non-isolated
9600
ttyO5
/dev/ttyO5 or COM5
RS-485 (Data+, Data-); 2500 V
DC
isolated
9600
[2] Modbus RTU protocol function codes.
Function Code
Description
Input
01
Reads the status of the Digital Output
1
02
Reads the status of the Digital Input
2
03
Reads the Analog Output channels
3
04
Reads the Analog Input channels
4
05
Writes to a single Digital Output channel
5
06
Writes to a single Analog Output channel
6
15 Writes
to
multiple
Digital Output channels
15
16 Writes
to
multiple
Analog Output channels
16
[3] This is the input value reference address mapping (Modbus register table) for the '
wAddr
'
parameter.
More information regarding address mapping can be found at:
http://ftp.icpdas.com.tw/pub/cd/linpac/napdos/lp-5000/lp-52xx/lp-5231/user_manual/xv-boar