Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 987

Table of Contents

Advertisement

• 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).
Communications Port
Enabled Flag (Port 6)
A202.06
0.00
Explicit message command format
10
08
Service Code
Destination node address
CS1W-DRM21 DeviceNet Unit
(CPU Bus Unit with unit number 2)
CPU
Unit
Unit address 12 hex (because
the unit number is 2)
Explicit
message
S:
D0
0
S:+1
D1
0
S+2:
D2
0
S+3:
D3
0
S+4:
D4
0
S+5:
D5
0
S+6:
D6
0
C:
D201
8
C+1: D202
0
C+2: D203
0
CS/CJ/NSJ Series Instructions Reference Manual (W474)
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
@ESATR
DRT2 Slave (I/O Terminal).
D0
S
D100
C
(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.
02
68
F4
01
00
Service Data:01F4Hex
Attribute ID
Instance ID
Class ID
ESATR(722)
instruction
Slave (I/O Terminal)
with node address 10
0
0
C
Number of bytes of data: S+1 to S+6 = 6 words = 12 bytes = 0C hex
0
0
A
Slave's node address = 10 = 0A hex
0
0
8
Class ID = 08 hex
Instance ID = 02 hex
0
0
2
Attribute ID = 68 hex
0
6
8
Service Data = F401 hex
1
F
4
0
0
0
Byte order = 8 hex (from rightmost byte), communications port = 6 hex
6
1
2
(port 6), and the DeviceNet Unit's unit address = 12 hex
0
0
0
Response monitoring time = 0000 hex (2 s)
0
0
0
Explicit format type = 0000 hex (DeviceNet format)
Frame
In this case, 12345678 hex is
stored from the rightmost byte in
the order 78
56
00
3. Instructions
The data in the frame is in the
order 78
56
34
12.
78
56
34
12
34
12.
15
08 07
00
S+5
5
6
7
8
S+6
1
2
3
4
3
951

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents