Cpu unit write (service code: 10 hex) – Omron SYSMAC CJ1W-EIP21 User Manual

Page 278

Advertising
background image

252

Receiving Explicit Messages

Section 9-2

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 fatal/non-fatal error data is returned in 1-word (2-byte) hexa-
decimal format, as follows:

01 Hex: Error; 00 Hex: No 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.

CPU Unit Write (Service Code: 10 Hex)

This PLC Object service writes CPU Unit information, including the operating
mode and clearing errors.

Command Block

Note A body format of either 8 bits or 16 bits is possible.

Response Block

Parameters

Service code (command, response): 10 Hex is specified for commands. For
responses, the highest bit will turn ON and 90E 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): Always 00 Hex.

Attribute ID (command): Information to write is specified by the attribute ID.
The attribute IDs are listed in the following table.

1: Error

20 bytes

Byte Byte

Byte Byte Byte

Unit name

00

(*)

10

C4

(2F)

(*)

Class ID

Attribute ID

Instance ID

Service Code

Attribute Value

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

90

Attribute ID (Hex)

Contents

Attribute value size

64

CPU Unit operating mode

1 word (2 bytes)

65

CPU Unit errors

1 word (2 bytes)

Advertising
This manual is related to the following products: