
ICC
the interface assumes that the client or network has experienced some sort of unexpected problem, and will close that socket.
•Because the socket timeout determination is performed on a
•If a socket timeout occurs (regardless of whether it was due to a communication lapse or abnormal socket error), the driver will trigger a timeout event as described in section 10.7.5.
13.1.2 Coil & Discrete Input Mappings
The Modbus TCP driver provides read/write support for coils (0X references) and
Discrete 1...16 map to register #1, bit0...bit15 (bit0=LSB, bit15=MSB) Discrete 17...32 map to register #2, bit0...bit15, and so on.
Arithmetically, the
⎢ discrete + 15 | ⎥ | Equation 1 | |
register = ⎢ | 16 | ⎥ | |
⎣ | ⎦ |
|
Where the bracket symbols “⎣ ⎦” indicate the “floor” function, which means that any fractional result (or “remainder”) is to be discarded, with only the integer value being retained.
Also, for any given discrete, the targeted bit in the register in which that discrete resides can be determined by:
bit = (discrete −1) %16 | Equation 2 |
Where “discrete” ∈[1…65535], “bit” ∈[0…15], and “%” is the modulus operator, which means that any fractional result (or “remainder”) is to be retained, with the integer value being discarded (i.e. it is the opposite of the “floor” function).
67