8-39
8 Message Communications
CJ-series EtherNet/IP Units Operation Manual for NJ-series CPU Unit (W495)
8-3 CIP Objects Sent to the EtherNet/IP Unit
8
8-3-5 Controller Object (Class ID: C4 Hex)
This object is used to get the status of the Controller or to change the operating mode of the Controller.
Class ID
Specify C4 hex.
Instance ID
Specify 00 hex.
Class Attribute ID
The class attribute ID specifies the attribute (value) of the entire object.
Instance Attribute ID
None
Service Codes
Specify the service to execute with the service code.
Request Paths (IOIs) to Specify Objects
When you specify an object, specify the request path (IOI) for each service code as given below.
8-3-5 Controller Object (Class ID: C4 Hex)
Attribute ID Parameter name Description Attribute
Read/write data
Data
type
Value
01 hex Revision Revision of the object Read UINT Always 0002 hex.
02 hex Max Instance The maximum instance number Read UINT Always 0001 hex
64 hex PLC Mode This can be used to read and
modify the Controller operating
mode.
Write UINT Specify this when you want to
write to an attribute.
0000 hex: PROGRAM mode
0004 hex: RUN mode
65 hex PLC Error Status Indicates when there is a Control-
ler error. Changes to TRUE when
a fatal or non-fatal error occurs.
Read UINT 0000 hex: There is no Controller
error.
0001 hex: There is a Controller
error.
66 hex PLC Model Indicates the model of the Con-
troller. The length is always 2
bytes for the size + 20 bytes for
the name. Unused area is padded
with spaces.
Read STRING
Service
code
Parameter name Description
Supported services
Classes Instances
0E hex Get_Attribute_Single Reads the value of the specified attribute. Supported. No supported.
10 hex Set_Attribute_Single Writes a value to the specified attribute. Supported. No supported.
Service code Class ID Instance ID Attribute ID
0E hex Get_Attribute_Single C4 hex 00 hex Specifies the attribute of the class to
read or write: 01 hex, 02 hex, or 64 to
66 hex
10 hex Set_Attribute_Single