NPort 9000 Series CLI
Commands
2-81
2.3.4.7
sid-map edit
To configure the slave id mapping table of the Modbus protocol.
Commands
sid-map edit channel
id
[remote-ip
remote-ip
] [ remote-tcp-port
remote-port
] [sid-start
slave-id-start
][ sid-end
slave-id-end
]
Syntax
Description
sid-map
To configure the slave-id mapping of Modbus mode.
channel
The channel ID of the slave ID map
remote-ip
The desination is Modbus tcp IP address, this parameter is work only
when channel is Modbus TCP.
remote-tcp-port
The remote TCP port, this parameter is work only when channel is
Modbus TCP.
sid-start
Set the mapping start slave id.
sid-end
Set the mapping end slave id.
Defaults
N/A
Permission
Admin group
Usage
Guidelines
Ip-address: IPv4 address
Tcp-port: 1 – 65535
slave-id-start/slave-id-end: 1 – 255
Channel index: 1 - n
Examples
NPort S9650I-16-2HV(config)# interface serial protocol modbus
NPort S9650I-16-2HV(config-modbus)# sid-map
Slave ID Map :
Channel number Type Definition Modbus
Address Range
----------------- ---------------- --------------------
--------------------------
1 Modbus Serial Port 1 00001 –
00005
2 Modbus Serial Port 2 00006 –
00010
3 Modbus Serial Port 3 00011 –
00015
4 Modbus Serial Port 4 00016 –
00020
5 Modbus TCP 192.168.1.1: 502 00100 – 00150
NPort S9650I-16-2HV (config-modbus)#sid-map edit channel 1 sid-start 3
sid-end 5
NPort S9650I-16-2HV (config-modbus)#sid-map edit channel 5
remote-tcp-port 505
NPort S9650I-16-2HV (config-modbus)#sid-map edit channel 5 remote-ip
1.2.3.4 remote-tcp-port 1234
NPort S9650I-16-2HV (config-modbus)#sid-map edit channel 5 remote-ip
1.2.3.4 remote-tcp-port 1234 sid-start 101 sid-end 110