This section lists the CLI configuration steps for TCP Server Configuration for MODBUS connection.
The MODBUS is a request-response protocol. A client (can request the MODBUS server to perform an action and the server will respond with that action.
The client:
The MODBUS server:
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# interface vlan 1
Phoenix_Contact(config-if)# no shutdown
Phoenix_Contact(config-if)# ip address 192.168.0.40 255.255.255.0
Phoenix_Contact(config-if)# end
Phoenix_Contact# show ip interface
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# interface serial 0/9
Phoenix_Contact(config-serial-if)# baud-rate 115200
Phoenix_Contact(config-serial-if)# no shutdown
Phoenix_Contact(config-serial-if)# end
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# interface serial 0/10
Phoenix_Contact(config-serial-if)# baud-rate 57600
Phoenix_Contact(config-serial-if)# no shutdown
Phoenix_Contact(config-serial-if)# end
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# local server port modbus
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# add slave-id 1,12,13,14,15,16,17,18,19,20 interface serial 0/9
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# connection-map
Phoenix_Contact((modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 64
Clients number : 0
KeepAlive interval (sec): 240
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 0
Type the following:
Type the following:
Type the following:
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 64
Clients number : 1
Client 1 IP : 192.168.0.100
Client 1 port : 59418
Client 1 byte counter : 0
KeepAlive interval (sec): 240
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 0
Type the following:
Type the following:
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 64
Clients number : 1
Client 1 IP : 192.168.0.100
Client 1 port : 59418
Client 1 byte counter : 12
KeepAlive interval (sec): 240
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 1
RXed from master msg : 1
TXed to master msg : 1
Exceptions created : 1
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# transmit-exception disable
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# connection-map
Phoenix_Contact((modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 64
Clients number : 1
KeepAlive interval (sec): 240
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 1
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# transmit-exception enable
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# connection-map
Phoenix_Contact((modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 64
Clients number : 1
KeepAlive interval (sec): 240
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 1
Type the following:
Perform the following:
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 64
Clients number : 1
Client 1 IP : 192.168.0.100
Client 1 port : 59418
Client 1 byte counter : 12
KeepAlive interval (sec): 240
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 1
RXed from master msg : 1
TXed to master msg : 1
Exceptions created : 1
Type the following:
Type the following:
Perform the following.
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 64
Clients number : 1
Client 1 IP : 192.168.0.100
Client 1 port : 61121
Client 1 byte counter : 48
KeepAlive interval (sec): 240
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 2
TXed to slave msg : 2
RXed from master msg : 2
TXed to master msg : 2
Exceptions created : 1
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# local server port modbus
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# connection-map
Phoenix_Contact((modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 15010
Max clients alowed : 64
Clients number : 0
KeepAlive interval (sec): 240
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 0
Perform the following.
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 64
Clients number : 2
Client 1 IP : 192.168.0.100
Client 1 port : 55470
Client 1 byte counter : 0
Client 2 IP : 192.168.0.100
Client 2 port : 55481
Client 2 byte counter : 564
KeepAlive interval (sec): 240
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 47
TXed to slave msg : 47
RXed from master msg : 47
TXed to master msg : 47
Exceptions created : 0
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 64
Clients number : 2
Client 1 IP : 192.168.0.100
Client 1 port : 55470
Client 1 byte counter : 0
Client 2 IP : 192.168.0.100
Client 2 port : 55481
Client 2 byte counter : 564
KeepAlive interval (sec): 240
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 47
TXed to slave msg : 47
RXed from master msg : 47
TXed to master msg : 47
Exceptions created : 0
86339 - 86099 = 240
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# keep-alive timeout 60
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# connection-map
Phoenix_Contact((modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 64
Clients number : 2
Client 1 IP : 192.168.0.100
Client 1 port : 55470
Client 1 byte counter : 0
Client 2 IP : 192.168.0.100
Client 2 port : 55481
Client 2 byte counter : 564
KeepAlive interval (sec): 60
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 47
TXed to slave msg : 47
RXed from master msg : 47
TXed to master msg : 47
Exceptions created : 0
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# max client connections 2
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# connection-map
Phoenix_Contact((modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 15010
Max clients alowed : 2
Clients number : 0
Client 1 IP : 192.168.0.100
Client 1 port : 55470
Client 1 byte counter : 0
Client 2 IP : 192.168.0.100
Client 2 port : 55481
Client 2 byte counter : 564
KeepAlive interval (sec): 60
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 0
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 15010
Max clients alowed : 2
Clients number : 2
Client 1 IP : 192.168.0.100
Client 1 port : 57904
Client 1 byte counter : 0
Client 2 IP : 192.168.0.100
Client 2 port : 57908
Client 2 byte counter : 0
KeepAlive interval (sec): 60
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 0
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 15010
Max clients alowed : 2
Clients number : 2
Client 1 IP : 192.168.0.100
Client 1 port : 55470
Client 1 byte counter : 0
Client 2 IP : 192.168.0.100
Client 2 port : 55481
Client 2 byte counter : 564
KeepAlive interval (sec): 60
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 0
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# add slave-id 2,21,22,23,24,25 interface serial 0/10
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# connection-map
Phoenix_Contact((modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Serial interface : 10
Slaves ID : 2 21 22 23 24 25
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 2
KeepAlive interval (sec): 60
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 0
Perform the following.
Perform the following
See below.
See below.
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Serial interface : 10
Slaves ID : 2 21 22 23 24 25
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 2
Clients number : 2
Client 1 IP : 192.168.0.100
Client 1 port : 60441
Client 1 byte counter : 12
Client 2 IP : 192.168.0.100
Client 2 port : 60448
Client 2 byte counter : 0
KeepAlive interval (sec): 60
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 1
TXed to slave msg : 1
RXed from master msg : 1
TXed to master msg : 1
Exceptions created : 0
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# remove slave-id 21 interface serial 0/10
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# connection-map
Phoenix_Contact((modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Serial interface : 10
Slaves ID : 2 22 23 24 25
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 2
Clients number : 0
KeepAlive interval (sec): 60
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 0
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Serial interface : 10
Slaves ID : 2 22 23 24 25
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 2
Clients number : 1
Client 1 IP : 192.168.0.100
Client 1 port : 62798
Client 1 byte counter : 12
KeepAlive interval (sec): 60
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 1
TXed to master msg : 1
Exceptions created : 1
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# response-timeout 50 interface serial 0/10
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# connection-map
Phoenix_Contact((modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Serial interface : 10
Slaves ID : 2 22 23 24 25
Serial byte counter : 0
Response time (msec) : 50
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 2
Clients number : 0
KeepAlive interval (sec): 60
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 0
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# end
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# interface serial 0/10
Phoenix_Contact(config-serial-if)# rx-to-tx delay 1000
Phoenix_Contact(config-serial-if)# no shutdown
Phoenix_Contact(config-serial-if)# end
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Serial interface : 10
Slaves ID : 2 22 23 24 25
Serial byte counter : 0
Response time (msec) : 50
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 1000
Local Server Port : 502
Max clients alowed : 2
Clients number : 2
Client 1 IP : 192.168.0.100
Client 1 port : 56436
Client 1 byte counter : 0
Client 2 IP : 192.168.0.100
Client 2 port : 56437
Client 2 byte counter : 0
KeepAlive interval (sec): 60
Max pending messages : 16
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 0
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# max pending messages 0
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Serial interface : 10
Slaves ID : 2 22 23 24 25
Serial byte counter : 0
Response time (msec) : 50
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 1000
Local Server Port : 502
Max clients alowed : 2
Clients number : 2
Client 1 IP : 192.168.0.100
Client 1 port : 56436
Client 1 byte counter : 0
Client 2 IP : 192.168.0.100
Client 2 port : 56437
Client 2 byte counter : 0
KeepAlive interval (sec): 60
Max pending messages : 0
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 0
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# max pending messages 10
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Serial interface : 10
Slaves ID : 2 22 23 24 25
Serial byte counter : 0
Response time (msec) : 50
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 1000
Local Server Port : 502
Max clients alowed : 2
Clients number : 2
Client 1 IP : 192.168.0.100
Client 1 port : 56436
Client 1 byte counter : 0
Client 2 IP : 192.168.0.100
Client 2 port : 56437
Client 2 byte counter : 0
KeepAlive interval (sec): 60
Max pending messages : 10
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 0
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# end
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# interface
Phoenix_Contact(config-serial-if)# rx-to-tx delay 0
Phoenix_Contact(config-serial-if)# no shutdown
Phoenix_Contact(config-serial-if)# end
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Serial interface : 10
Slaves ID : 2 22 23 24 25
Serial byte counter : 0
Response time (msec) : 50
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 2
Clients number : 2
Client 1 IP : 192.168.0.100
Client 1 port : 57886
Client 1 byte counter : 0
Client 2 IP : 192.168.0.100
Client 2 port : 57889
Client 2 byte counter : 33
KeepAlive interval (sec): 240
Max pending messages : 10
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 2
RXed from master msg : 1
TXed to master msg : 0
Exceptions created : 0
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Serial interface : 10
Slaves ID : 2 22 23 24 25
Serial byte counter : 0
Response time (msec) : 50
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 64
Clients number : 2
Client 1 IP : 192.168.0.100
Client 1 port : 57886
Client 1 byte counter : 0
Client 2 IP : 192.168.0.100
Client 2 port : 57889
Client 2 byte counter : 45
KeepAlive interval (sec): 240
Max pending messages : 10
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 2
RXed from master msg : 2
TXed to master msg : 1
Exceptions created : 1
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# end
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# interface serial 0/10
Phoenix_Contact(config-serial-if)# turnaround delay 1000
Phoenix_Contact(config-serial-if)# no shutdown
Phoenix_Contact(config-serial-if)# end
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Serial interface : 10
Slaves ID : 2 22 23 24 25
Serial byte counter : 0
Response time (msec) : 50
Turnaround delay(msec): 1000
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 1000
Local Server Port : 502
Max clients alowed : 64
Clients number : 2
Client 1 IP : 192.168.0.100
Client 1 port : 56123
Client 1 byte counter : 0
Client 2 IP : 192.168.0.100
Client 2 port : 56124
Client 2 byte counter : 0
KeepAlive interval (sec): 60
Max pending messages : 10
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 0
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# no connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# end
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# interface serial 0/10
Phoenix_Contact(config-serial-if)# hold-time 100
Phoenix_Contact(config-serial-if)# no shutdown
Phoenix_Contact(config-serial-if)# end
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# serial connection-type modbus profile PROF_MOD_SERVER
Phoenix_Contact(modbus-PROF_MOD_SERVER)# role server
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# connection-map
Phoenix_Contact(modbus-PROF_MOD_SERVER-server)# end
Type the following:
Phoenix_Contact# show serial profile interface all
Profile : PROF_MOD_SERVER
Protocol : Modbus
Role : TCP Server
Serial interface : 9
Slaves ID : 1 12 13 14 15 16 17 18 19 20
Serial byte counter : 0
Response time (msec) : 2000
Turnaround delay(msec): 0
Hold time(msec) : 0
Rx-to-Tx delay(msec) : 0
Serial interface : 10
Slaves ID : 2 22 23 24 25
Serial byte counter : 0
Response time (msec) : 50
Turnaround delay(msec): 1000
Hold time(msec) : 100
Rx-to-Tx delay(msec) : 0
Local Server Port : 502
Max clients alowed : 64
Clients number : 2
Client 1 IP : 192.168.0.100
Client 1 port : 56655
Client 1 byte counter : 0
Client 2 IP : 192.168.0.100
Client 2 port : 56656
Client 2 byte counter : 0
KeepAlive interval (sec): 60
Max pending messages : 10
Current pending messages: 0
Send exceptions : YES
RXed from slave msg : 0
TXed to slave msg : 0
RXed from master msg : 0
TXed to master msg : 0
Exceptions created : 0
Type the following:
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# no serial profile PROF_MOD_SERVER
Phoenix_Contact(config)# end
Phoenix_Contact# configure terminal
Phoenix_Contact(config)# interface serial 0/10
Phoenix_Contact(config-serial-if)# rx-to-tx delay 0
Phoenix_Contact(config-serial-if)# no shutdown
Phoenix_Contact(config-serial-if)# end