Error Detection Program Example; Programming Examples For Processing Data When Errors Occur - Omron SYSMAC CS1W-RPT01 Operation Manual

Controller link units
Hide thumbs Also See for SYSMAC CS1W-RPT01:
Table of Contents

Advertisement

Checking Data Link Status
5-4-5

Error Detection Program Example

5-4-6

Programming Examples for Processing Data when Errors Occur

Processing Data Only when Data Links Are Operating Normally
164
Local node
Node 1
Data Link
Data Link Participating Flag
Participation Flag
Node 2
Data Link Participating Flag
Node 32
Data Link Participating Flag
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.
Local node
Data Link Participation Flag
Local node
Communications Error Flag
10000
Release Flag
Local node
Error output
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.
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.
Additional part
"Data Link Normal Operating Flags" can be created using the programming
described in 5-4-5 Error Detection Program Example .
Node 1
Communications Error Flag
Node 2
Communications Error Flag
Node 32
Communications Error Flag
DIFD 10000
DIFD 10000
Local node
Error output
The parts of the ladder program
that use the data link area for
Normal Operation
the relevant node are processed
Flag
only when the corresponding
Normal Operation Flag is ON.
Normal Operation
Flag
Section 5-4
Node 1
Error output
Node 2
Error output
Node 32
Error output

Advertisement

Table of Contents
loading

Table of Contents