Arguments; Scenarios - Korenix JetBox 8100 User Manual

Modbus gateway
Hide thumbs Also See for JetBox 8100:
Table of Contents

Advertisement

1.2 Arguments

Table 1-2 is the description of the arguments of the "ModbusT2R.exe"
application. The following command example, "-p 5501 –s COM1: -b
9600 –m RTU –id0 1 –id1 10", means the gateway application creates one
Modbus TCP slave service on TCP port 5501 and create one Modbus
RTU master service on "COM1:" with 9600 baud rate and the valid
Modbus RTU slave station ID is from 1 to 10.
Application Name: ModbusT2R.exe
Arguments
-help
-f [file name]
-p [TCP port number]
-s [serial port name]
-b [baud rate]
-m ["rtu"|"ascii"]
-id0 [begin ID]
-id1 [end ID]
Table 1-2 Description of the Arguments of the "ModbusT2R.exe" Application

1.3 Scenarios

The following script file, "demo.ini", specifies one Modbus TCP slave
service and one Modbus RTU master service and one Modbus ASCII
master service. Table 1-3 shows the contents of the script file "demo.ini".
Execute the "ModbusT2R.exe" with arguments "-f demo.ini" to start the
gateway application with script file. Figure 1-4 shows this demo scenario.
Script File Name: demo.ini
Contents
-p 5501 –s COM1: -b 9600 –m
2
Description
Lists all the syntax of arguments.
Specifies an argument file.
Specifies the TCP port number of Modbus TCP
slave. Default port is 5501.
Specifies the serial port name of Modbus
RTU/ASCII master. Default port is "COM1:".
Specifies the baud rate of Modbus RTU/ASCII
master. Default baud rate is 9600.
Specifies the protocol of Modbus RTU/ASCII
master. Default protocol is RTU.
Specifies the begin ID of a range of Modbus slave
ID. Default begin ID is 0.
Specifies the end ID of a range of Modbus slave
ID. Default end ID is 247.
Description
One Modbus TCP master on TCP port 5501
JetBox 8100 User Manual_Modbus_1.0-r1.doc

Advertisement

Table of Contents
loading

This manual is also suitable for:

Jetbox 8100 seriesJetbox 8210Jetbox 8220

Table of Contents