Omron CJ1W-EIP21 - 10-2010 Operation Manual page 284

Ethernet/ip units
Table of Contents

Advertisement

Receiving Explicit Messages
Byte Data Read (Service Code: 1C Hex)
Command Block
Response Block
Parameters
256
• Message Exists/Does Not Exist: When the MSG instruction is executed
by the CPU Unit, the bit corresponding to the message number will turn
ON and be returned in 2 bytes (from low to high bytes).
Message No. 3 (1: exists; 0: does not exist)
Message No. 4 (1: exists; 0: does not exist)
Message No. 5 (1: exists; 0: does not exist)
Message No. 6 (1: exists; 0: does not exist)
Message No. 7 (1: exists; 0: does not exist)
• Error Code: The highest priority error code of the errors existing when
the command is executed will be returned in 2-byte decimal (from low to
high bytes). If there are no errors, the error code will be 0000.
Note For information on the severity of error codes, refer to the CS1 Series
CPU Unit Operation Manual (W339) or the CJ Series CPU Unit Op-
eration Manual (W393).
• Error Messages: If the above error codes have occurred when FAL/FALS
instructions are executed with registered messages, those messages are
returned in 16-byte ASCII. If there are no registered messages or if the
error codes have not occurred due to execution of FAL/FALS instructions,
the code is returned in ASCII with 20 Hex (space) in 16 bytes.
Byte Data Read reads any I/O memory area data in a CPU Unit. The read
word data is in byte units. The response block data is returned in low-to-high
byte order.
C4
1C
(2F)
(*)
(*)
Class ID Address L
Service Code
Instance ID
Note A body format of either 8 bits or 16 bits is possible.
9C
Service Code
Word data L
Word data H
Read data (200 bytes max.)
Service code (command, response): 1C Hex is specified for commands.
For responses, the highest bit will turn ON and 9C Hex will be returned.
Message No. 0 (1: exists; 0: does not exist)
Message No. 1 (1: exists; 0: does not exist)
Message No. 2 (1: exists; 0: does not exist)
The class ID depends on the unit version.
Version 2.0 or later: The class ID is C4.
Version 1.0: The class ID is 2F.
No. of bytes read
Address H
Word data L
Word data H
Section 9-2

Advertisement

Table of Contents
loading

Table of Contents