![background image](http://html1.mh-extra.com/html/omron/cj1w-drm21/cj1w-drm21_operation-manual_742341207.webp)
6-19
6 Message Communications
CJ-series DeviceNet Units Operation Manual for NJ-series CPU Unit(W497)
6-3 Recei
ving
E
x
plicit Messa
g
e
s
6
6-3-1 List of PLC Obje
ct Ser
v
ice
s
Note
The codes for the above modes are 1-word (2-byte) data and are returned in low byte first.
For example, for PROGRAM mode, the code is returned as 01 Hex followed by 00 Hex.
•
CPU Unit Errors (when Attribute ID = 65 Hex)
The CPU Unit controller error data is returned in 1-byte (2-digit) hexadecimal format.
01 hex: Controller Error, 00 hex: No Controller Error.
•
CPU Unit Model (when Attribute ID = 66 Hex)
The CPU Unit model is returned in ASCII.
Size: 2 bytes (Always 1400 Hex) + Model: 20 bytes (fixed). Unused area is filled with 20 Hex
(spaces) and returned.
This PLC Object service writes CPU Unit information, including the operating mode and clearing errors.
z
Command Block
Note
A body format of either 8 bits or 16 bits is possible.
z
Response Block
z
Parameters
Service Code (command, response):
10 Hex is specified for commands. For responses, the high-
est bit will turn ON and 90E Hex will be returned.
Class ID (command):
Always 2F Hex.
Instance ID (command):
Always 00 Hex.
Attribute ID (command):
Information to write is specified by the attribute ID. The attribute IDs are
listed in the following table.
•
CPU Operating Mode (Attribute ID = 64 Hex)
Changes the CPU Unit operating mode.
The Attribute Values are as follows:
0001 hex: "Program" Mode, 0002 hex or 0004 hex : "Run" Mode
CPU Unit Write (Service Code: 10 Hex)
Attribute ID (Hex)
Contents
Attribute value size
64
CPU Unit operating mode
1 word (2 bytes)
65
CPU Unit errors
1 word (2 bytes)
1: Controller error
20 bytes
e
t
y
B
e
t
y
B
e
t
y
B
e
t
y
B
e
t
y
B
Unit name
Class ID
Instance ID
10
2F
(*)
00
(*)
Attribute ID
Service Code
Attribute Value
Service Code
90
Summary of Contents for CJ1W-DRM21
Page 12: ...Manual Structure 10 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 ...
Page 42: ...Revision History 40 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 ...
Page 345: ...Index 1 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 I Index ...
Page 349: ......