Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1130

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Network Instructions
Example
The following table shows relevant bits and flags in the Auxiliary Area.
Name
Address
Communications
A20200 to
Port Enabled Flag
A20207
Explicit Communica-
A21300 to
tions Error Flag
A21307
Communications
A21900 to
Port Error Flag
A21907
Communications
A203 to
Port Completion
A210
Codes
In this example, ECHRD(723) is used to read the I/O memory of the CJ-series
CPU Unit on the DeviceNet network, and store the data in the I/O memory of
the local CPU Unit.
000000
Operation
These flags are turned ON to indicate that net-
work instructions, including PMCR(260) may be
executed for the corresponding ports (00 to 07).
A flag is turned OFF when a network instruction
is being executed for the corresponding port and
turned ON again when the instruction is com-
pleted.
These flags are turned ON to indicate that an
error has occurred at the corresponding ports (00
to 07) during execution of explicit message com-
munications.
The flags will be turned ON if the explicit mes-
sage was not sent or the message was sent but
an error response was returned.
The flag status is retained until the next explicit
message instruction is executed. The flag will be
turned OFF when the next instruction is executed
even if an error occurred previously.
These flags are turned ON to indicate that the
explicit message itself was not sent from the cor-
responding ports (00 to 07) during execution of
an explicit message instruction.
The flag status is retained until the next network
instruction is executed. The flag will be turned
OFF when the next instruction is executed even if
an error occurred previously.
These words contain the completion codes for the
corresponding ports (00 to 07) following execu-
tion of a network instruction.
The corresponding word will contain 0000
while the Explicit Communications Error Flag
is OFF.
The corresponding word will contain a FINS
error code when that port's Explicit Communi-
cations Error Flag and Communications Port
Error Flag are both ON.
The corresponding word will contain the
appropriate explicit message error code when
that port's Explicit Communications Error Flag
is ON and the Communications Port Error
Flag is OFF.
The corresponding word will contain 0000 while
the network instruction is being executed and the
completion code will be written when the instruc-
tion is completed. These words are cleared when
program execution begins.
Communications
Port Enabled Flag (Port 6)
A20206
ECHRD
S
D
C
Section 3-25
D00000
D00100
D00200
1091

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents