Modbus RTU
/
TCP Server User Manual for LinPAC / LinCon
Ver : 1.0 (
2009.04)
4
L2
1-1. Install Modbus server on your LinPAC
/
/
/
/
LinCon
Software Installation
If your LinPAC
/
LinCon is former released, you have to install the Modebus Server by
manual.
STEP 1 :
Download the latest Modbus Server for LinPAC
/
LinCon.
http://www.icpdas.com/download/download-list.htm
STEP 2 :
Copy the “mbserver10” file to your LinPAC
/
LinCon, and change the file permission
to “755” or above.
#chmod 755 ./mbserver10
STEP 3 :
Before executing LinPAC
/
LinCon Modbus Server, you have to check what’s the
index number of your TTY devices.
#dmesg | grep ‘ttyS’
In general, LinCon support 2 serial ports,
ttyS0
:
COM2 RS-232
(
Recommend!
)
ttyS1
:
COM3 RS-485
and 3 serial ports are availabled on LinPAC.
ttyS0
:
COM1, RS232 (Reserved for console terminal)
ttyS1
:
COM3, RS232
/
RS-485
ttyS34
:
COM4, RS232 (
Recommend!
)
STEP 4 :
You can use following command to start Modbus Server.
#./mbserver10 [Device Net ID] [COM port Index number]
For example :
#./mbserver10 4 0
Start Modbus Server for ttyS0, and the Device ID = 4
#./mbserver10 9 34
Start Modbus Server for ttyS34, and the Device ID = 9
To check the command usage :
#./mbserver10