PROTOCOL-SPECIFIC INFORMATION
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).
For clarity, let’s use Equation 1 and Equation 2 in a calculation example. Say, for instance, that we are
going to read coil #34. Using Equation 1, we can determine that coil #34 resides in register #3, as
3.0625 = 3 r1 = 3. Then, using Equation 2, we can determine that the bit within register #3 that coil
#34 targets is (34-1)%16 = 1, as 33%16 = mod(2 r1) = 1. Therefore, reading coil #34 will return the value
of register #3, bit #1.
9.1.4 Connection Timeout Options
In the studio’s Project panel, navigate to A7NETH-2P…Ethernet…Modbus/TCP Server. The following
configuration options will determine the actions to be taken if the connection is abnormally terminated or
lost. While this feature provides an additional level of fail-safe functionality for those applications that
require it, there are several ramifications that must be understood prior to enabling this capability. Note
that a certain degree of caution must be exercised when using the timeout feature to avoid “nuisance”
timeouts from occurring.
Enable Supervisory Timer
This timer provides the ability for the driver to monitor timeout occurrences on the overall receive activity
for all connections.
• The timer will start after receiving the first request. Once the timer is started, it cannot be disabled.