EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1008 background imageLoading...
Page #1008 background image
3. Instructions
970
CS/CJ/NSJ Series Instructions Reference Manual (W474)
• Storing Data from the Rightmost Byte (Bits
12 to 15 of C = 8 hex)
Example: Storing the value 12345678 hex
in S+5 and S+6
Example Programming
In this example, ESATR(722) is used to overwrite the Number of Contact Operations set value in a
DRT2 Slave (I/O Terminal).
When CIO 0.00 and A202.06 (the Communications Port
Enabled Flag for port 06) are ON, EXPLT(720) writes the
Number of Contact Operations set value for input 2 in a
DRT2 Slave (I/O Terminal).
(Service Code = 10 hex,) Class ID = 08 hex, Instance ID =
02 hex, and Attribute ID = 68 hex.
In this case, the Number of Contact Operations is being set
to 500 (1F4 hex), so the service data is set to 000001F4.
78
15
56 7S+5
S+6
8
12 34
08 07
00
56 34 12
Frame
The data in the frame is in the
order 78 → 56 → 34 → 12.
In this case, 12345678 hex is
stored from the rightmost byte in
the order 78 → 56 → 34 → 12.
0.00
A202.06
S
C
@ESATR
D0
D100
Communications Port
Enabled Flag (Port 6)
10 08 02 68 F4 01 00 00
Attribute ID
Service Data:01F4Hex
Instance ID
Class ID
Service Code
Explicit message command format
Destination node address
CS1W-DRM21 DeviceNet Unit
(CPU Bus Unit with unit number 2)
ESATR(722)
instruction
CPU
Unit
Unit address 12 hex (because
the unit number is 2)
Slave (I/O Terminal)
with node address 10
Explicit
message
S: D0 0 0 0 C
S:+1 D1 0 0 0 A
S+2: D2 0 0 0 8
S+3: D3 0 0 0 2
S+4: D4 0 0 6 8
S+5: D5 0 1 F 4
S+6: D6 0 0 0 0
C: D201 8 6 1 2
C+1: D202 0 0 0 0
C+2: D203 0 0 0 0
Number of bytes of data: S+1 to S+6 = 6 words = 12 bytes = 0C hex
Slave’s node address = 10 = 0A hex
Class ID = 08 hex
Instance ID = 02 hex
Attribute ID = 68 hex
Service Data = F401 hex
Byte order = 8 hex (from rightmost byte), communications port = 6 hex
(port 6), and the DeviceNet Unit’s unit address = 12 hex
Response monitoring time = 0000 hex (2 s)
Explicit format type = 0000 hex (DeviceNet format)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals