Control and Status Registers
13-2
Data Consistency
The ‘Data Valid’-bits in the Control- and Status Registers are used to ensure data consistency during
start-up and fieldbus off-line/on-line transitions.
If the ‘Status / Control Word’-parameter in ABC Config Tool is set to ‘Enabled’, the gateway will wait
for the fieldbus control system to set the ‘Data Valid’-bit in the Control Register before it starts exchang-
ing 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 Status
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.
$
%
&
2IIOLQH
QRGDWDH[FKDQJH
2QOLQH
QRW\HWH[FKDQJLQJGDWD
6WDUW
2QOLQH
H[FKDQJLQJGDWD