Instructions
Control and Status Registers 103
Doc: HMSI-27-314, Rev. 3.10Anybus Communicator EtherNet/IP / Modbus-TCP User Manual
21.1.2 Data Consistency
The “Data Valid”-bits in the Control and Status Registers are used to ensure data consistency during
start-up and fieldbus offline/online transitions.
If the “Control/Status Word”-parameter in ACM is set to “Enabled”, the gateway will wait for the field-
bus control system to set the “Data Valid”-bit in the Control Register before it starts exchanging data
on the sub-network.
If the same parameter is set to “Disabled” or “Enabled but no startup lock”, communication will start
as soon as the fieldbus goes online.
State Machine
The fieldbus network participation can be described using a state machine as described below.
A: Offline (No data exchange)
1. Clear the “Data Valid”-bit in the Con-
trol Register.
2. Write initial data to the Output Area
according to the sub-network configu-
ration.
3. Wait until the fieldbus control system
and the gateway are online on the field-
bus network, and shift to state B.
B: Online (Not yet exchanging data)
4. Wait until the “Data Valid”-bit in the
Status Register is cleared by the gate-
way.
5. Set the “Data Valid”-bit in the Control
Register.
6. When the “Data Valid”-bit in the Sta-
tus Register is set by the gateway, shift
to state C.
7. If the gateway goes offline on the fieldbus, shift to state A.
C: Online (Exchanging data)
Exchanging valid data in both directions.
If the gateway goes offline on the fieldbus, shift to state A.
Note: The gateway cannot spontaneously clear the “Data Valid”-bit in the Status Register.
Latency
The “Data Valid”-bit in the Status Register may in some cases be delayed. This latency can be caused by
a missing node or a bad connection to a node with a long timeout value assigned to it.
Therefore, the fieldbus control system should not wait for this bit to be set before communicating with
the sub-network devices; it should be considered as an aid for the fieldbus control system to know when
all data has been updated.
A
B
C
Offline
(no data exchange)
Online
(not yet exchanging data)
Start
Online
(exchanging data)










