NPort 9000 Series CLI
Commands
2-75
2.3.3.18 modbus
To configure the parameters of Modbus mode for specified serial port.
Commands
modbus [ connected-dev { rtu-master | rtu-slave | ascii-master | ascii-slave } ] [ resp-timeout
milli-second
] [ inter-char-timeout
milli-second
] [ inter-frame-delay
milli-second
]
[ designated-tcp-port
tcp-port
]
Syntax
Description
modbus
To configure the parameters of Modbus mode.
connected-dev
Set the type of the device type and role which the serial port connected.
response-timeou
t
Set the Modbus response time out of the serial port. Only valid when
connected-dev is RTU-slave or ascii-slave
Inter-char-timeo
ut
Set the inter-character timeout of the serial port. Only valid when
connected-dev is RTU-slave .
Inter-frame-dela
y
Set the inter-frame delay of the serial port. Only valid when
connected-dev is RTU-slave .
Designated-tcp-p
ort
Set the designated TCP port of the serial port. Only valid when
connected-dev is RTU-slave or ascii-slave
Defaults
The default settings for each parameter are:
Connected devce type: RTU Slave
Response timeout: 1000
Inter-character timeout: 0
Inter-frame delay: 0
Designated TCP port: 0
Permission
Admin group
Usage
Guidelines
Response timeout: 10 – 120000 ms
Inter-character timeout: 10 - 500 ms, 0 for disable
Inter-frame dela: 10 - 500 ms, 0 for disable
Designated TCP port: 1024 - 65535, 0 for disable
Examples
NPort S9650I-16-2HV(config)# interface serial 1
NPort S9650I-16-2HV(config-serif)# modbus connected-device-type
RTU-slave
NPort S9650I-16-2HV(config-serif)# modbus response-timeout 2000
inter-char-timeout 10 inter-frame-delay 10
NPort S9650I-16-2HV(config-serif)# modbus designated-tcp-port 4001