EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 926

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
893
Network Instructions Section 3-24
When the response to the explicit message is received, the response’s ser-
vice data (data following the service code) is stored in the range of words
beginning at D+1.
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.
Storing Data from the Rightmost Byte
Set bits 12 to 15 of C+1 to 8 hex.
Flags
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 Com-
munications Port Error Flag can be used to determine whether the explicit
message itself was not sent (corresponding flag in A219 ON) or that the mes-
sage 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 3-24-2 About Explicit Message Instructions (CP1H Only).
A
15
AD+1
D+2
B
CD
08 07 00
BCD
Frame (order of data in line)
Stored from leftmost byte.
Note: A, B, C, and D re
p
resent b
y
tes of data.
Data
area
A
15
BD+1
D+2
A
DC
08 07 00
BCD
Frame (order of data in line)
Stored from rightmost byte.
Note: A, B, C, and D re
p
resent b
y
tes of data.
Data
area
Name Label Operation
Error Flag ER ON if the Communications Port Enabled Flag is OFF for
the communications port number specified in C.
OFF in all other cases.

Table of Contents

Related product manuals