Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 981

Table of Contents

Advertisement

Related Auxiliary Area Words and Bits
The corresponding Explicit Communications Error Flag will be OFF if the instruction ended normally or
ON if an error occurred.
If an error occurred (corresponding flag in A213 ON), the corresponding Communications Port Error
Flag can be used to determine whether the explicit message itself was not sent (corresponding flag in
A219 ON) or that the message was sent but there was an error in the message (corresponding flag in
A219 OFF).
The corresponding Communications Port Completion Code (A203 to A210) will be 0000 hex if the
instruction ended normally, an explicit message error code if an explicit messaging error occurred, or a
FINS error code if a FINS error occurred.
For details on the general operation of the explicit message instructions, refer to About Explicit
Message Instructions.
Name
Communications Port Enabled
Flag
Explicit Communications Error
Flag
Communications Port Error Flag
Communications Port Completion
Codes
Function
Sends the "read information/status" explicit message command (stored in words S+1 to S+3) to the
node address specified in S, via the Communications Unit with the FINS unit address specified in bits
00 to 07 of C+1.
When the response to the explicit message is received, the response's service data (data following the
service code) is stored in the range of words beginning at D+1.
Note The number of bytes of received data indicated in D is the number of bytes of service data. (For example, if
there is 1 byte of service data, D will contains 0001 hex. D will contain 0001 hex regardless of the byte order
setting, i.e., whether the byte is stored in the rightmost or leftmost byte of D.)
The setting in bits 12 to 15 of C+1 (0 or 8 hex) determines the byte-order of the service data stored at
S+6 and D+3.
• Storing Data from the Leftmost Byte
Set bits 12 to 15 of C+1 to 0 hex.
Frame (order of data in line)
A
Data
area
D+1
D+2
Note: A, B, C, and D represent bytes of data.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Address
A202.00 to
These flags are turned ON to indicate that network instructions, including PMCR(260) may be executed
A202.07
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 completed.
A213.00 to
These flags are turned ON to indicate that an error has occurred at the corresponding ports (00 to 07)
A213.07
during execution of explicit message communications.
The flags will be turned ON if the explicit message 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.
A219.00 to
These flags are turned ON to indicate that the explicit message itself was not sent from the
A219.07
corresponding 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.
A203 to A210
These words contain the completion codes for the corresponding ports (00 to 07) following execution 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 Communications
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 instruction is completed. These words are cleared when
program execution begins.
B
C
D
Stored from leftmost byte.
15
08 07
00
A
B
C
D
3. Instructions
Operation
3
945

Advertisement

Table of Contents
loading

Table of Contents