Ethernet Connection Status
A byte is returned and each of the first 7 bits represent a connection state for an incoming or outgoing Ethernet connection. Bit7 (MSB) is not used and can be ignored.
Bit# |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
State |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
Connection
Type
(Default) |
Client |
MDBTCP |
MDBTCP |
MDBTCP |
FSERVER |
FSERVER |
FSERVER |
Note:
Bit 6 will always represent the PLCs 1 client connection (outgoing), bits 4 and 5 will always represent Modbus TCP (incoming), and bit 0 will always represent an FSERVER connection (incoming). Bits 1,2, and 3 can be set to either type (view chapter 2 of the PLC user manual for more details). By default, there are 3 incoming connections for each type.
If any bit is set to ‘1’, that means the corresponding connection type is being used and is not available.
Any bits set to ‘0’ are free to be used (available connections).
Example:
STATUS(14) returns 11 => bits 0, 1, and 3 are on
Comment:
2 of 3 incoming FSERVER connections are used.
1 of 3 incoming MDBTCP connections are used.
Note : only for PLC with firmware r78 and above
|