![background image](http://html.mh-extra.com/html/omron/c200hw-clk21/c200hw-clk21_operation-manual_742483189.webp)
164
Checking Data Link Status
Section 5-4
5-4-5
Error Detection Program Example
When the source node's data link is participating, the AND condition of the
data link status for each node can be taken using the Data Link Participation
Flag and the Communications Error Flag, and the error output.
The following example shows an error output program for cases where the
local node data link stops.
The local node's Communications Error Flag (in the data link status area) will
be turned ON if the local node is isolated from the network while the data link
is active. In this case, the data link remains active, so the node's Data Link
Participation Flag will remain ON even though the node is isolated from the
network.
5-4-6
Programming Examples for Processing Data when Errors Occur
If a communications error occurs in a data link and valid data link data cannot
be received, the previous data is stored in the data link area. To stop process-
ing using the data link data when an error occurs, refer to the following pro-
gram example.
Processing Data Only when Data Links Are Operating Normally
Perform processing only when the data links are operating normally by includ-
ing an AND condition for the Data Link Normal Operation Flag in the part of
the program that handles data link data for each node. This is an example of
programming locks in the appropriate places.
“Data Link Normal Operating Flags” can be created using the programming
described in
5-4-5 Error Detection Program Example
Local node
Data Link
Participation Flag
Node 1
Data Link Participating Flag
Node 1
Communications Error Flag
Node 1
Error output
Node 2
Error output
Node 32
Error output
Node 2
Data Link Participating Flag
Node 32
Data Link Participating Flag
Node 2
Communications Error Flag
Node 32
Communications Error Flag
Local node
Communications Error Flag
Release Flag
Local node
Error output
Local node
Error output
DIFD 10000
10000
Local node
Data Link Participation Flag
DIFD 10000
The parts of the ladder program
that use the data link area for
the relevant node are processed
only when the corresponding
Normal Operation Flag is ON.
Normal Operation
Flag
Additional part
Normal Operation
Flag
Summary of Contents for C200HW-CLK21
Page 3: ...iv ...
Page 9: ...x ...
Page 12: ...xiii TABLE OF CONTENTS Index 367 Revision History 373 ...
Page 13: ...xiv ...
Page 19: ...xx ...
Page 57: ...32 Application Precautions Section 1 5 Example CX Programmer Response Timeout Setting ...
Page 69: ...44 Message Service Procedure Section 2 2 ...
Page 111: ...86 Constructing Networks with Repeater Units Section 3 4 ...
Page 154: ...129 Setting Data Links Section 5 2 Device Information Setting Data Link Tables ...
Page 261: ...236 Response Codes Section 6 7 ...
Page 297: ...272 Message Delay Times Section 8 4 ...
Page 353: ...328 Handling Precautions Section 9 6 ...
Page 364: ...339 Changing the Data Link Tables with Active Data Links Section 10 2 ...
Page 365: ...340 Changing the Data Link Tables with Active Data Links Section 10 2 ...
Page 369: ...344 Standard Models Appendix A ...
Page 391: ...366 Using the Relay Terminal Block Appendix C ...
Page 397: ...372 Index ...
Page 401: ...376 Revision History ...