Omron SYSMAC CJ1W-EIP21 Operation Manual page 285

Sysmac cs and cj series ethernet/ip units 100base-tx 100base-tx/10base-t
Hide thumbs Also See for SYSMAC CJ1W-EIP21:
Table of Contents

Advertisement

Receiving Explicit Messages
Command Block
1E
Service
Code
Response Block
Parameters
Important Points
Word Data Write (Service Code: 1F Hex)
C4
(2F)
(*)
(*)
Address L
Class ID
Address H
Instance ID
Word data H
Write data (200 bytes max.)
Note A body format of either 8 bits or 16 bits is possible.
9E
Service Code
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.
Instance ID (Hex)
01
03
04
05
08 to 20
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.
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 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 L
Word data H
CPU Unit memory area
for write
CIO
DM
WR
HR
EM, banks 0 to 18
Section 9-2
The class ID depends on the unit version.
Version 2.0: The class ID is C4.
Version 1.0: The class ID is 2F.
Word range
0000 to 6143
D00000 to D32767
W000 to W511
H000 to H1535
En_00000 to En_32767
(n: 0 to 18)
259

Advertisement

Table of Contents
loading

Table of Contents