Control and Status Registers
68
Doc.Id. SCM-1200-093
Anybus Communicator for Modbus Plus
Doc.Rev. 3.01
14.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 ‘Status / Control Word’-parameter in Anybus Configuration Manager is set to ‘Enabled’, the gate-
way will wait for the fieldbus control system to set the ‘Data Valid’-bit in the Control Register before it
starts exchanging data on the subnetwork.
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 subnetwork 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 subnetwork 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)
Summary of Contents for Communicator Modbus plus
Page 83: ......