Omron CS1W-EIP21 Network Card User Manual


 
259
Receiving Explicit Messages Section 9-2
Command Block
Note A body format of either 8 bits or 16 bits is possible.
Response Block
Parameters Service code (command, response): IE Hex is specified for commands. For
responses, the highest bit will turn ON and 9E Hex will be returned.
Class ID (command): Always C4 (2F).
The class ID depends on the unit version. The class ID is C4 for unit version
2.0, and 2F for unit version 1.0.
Instance ID (command): The type of memory area to which the data will be
written is specified as shown in the following table.
Address L, Address H (command): The address of the first word to which
the data will be written is specified in hexadecimal as shown below.
Address L: The lower 2 digits when the first word address is displayed in 4-
digit hexadecimal.
Address H: The higher 2 digits when the first word address is displayed in 4-
digit hexadecimal.
Write data (response): The specified area and write data is returned in order
from word H (higher byte: bits 8 to 15) to word L (lower byte: bits 0 to 7). For
byte data write, specify an even number.
Important Points The actual address L, address H, and number of write data bytes that can be
specified depends on the model of the CPU Unit, and the data area being
written. Do not exceed the boundary of the data areas for the PLC you are
using.
Word Data Write (Service Code: 1F Hex)
Word Data Write writes data to any I/O memory area in a CPU Unit. The write
word data is in word units. The response block data is returned in low-to-high
byte order.
Word data L
Word data H
Word data L
Write data
(
200 b
y
tes max.
)
Word data H
(*)
C4
(2F)
(*)
1E
Service
Code
Class ID
Instance ID
Address L
Address H
The class ID depends on the unit version.
Version 2.0: The class ID is C4.
Version 1.0: The class ID is 2F.
Service Code
9E
Instance ID (Hex) CPU Unit memory area
for write
Word range
01 CIO 0000 to 6143
03 DM D00000 to D32767
04 WR W000 to W511
05 HR H000 to H1535
08 to 20 EM, banks 0 to 18 En_00000 to En_32767
(n: 0 to 18)