Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1119

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Network Instructions
Example
1080
• Storing Data from the Rightmost Byte (Bits 12 to 15 of C = 8 hex)
Example: Storing the value 1234 hex in D+1
2. Data in 4-byte Units
• Storing Data from the Leftmost Byte (Bits 12 to 15 of C = 0 hex)
Example: Storing the value 12345678 hex in D+1 and D+2
Frame
In this case, 12345678 hex is
stored from the leftmost byte in
the order 78
• Storing Data from the Rightmost Byte (Bits 12 to 15 of C = 8 hex)
Example: Storing the value 12345678 hex in D+1 and D+2
Frame
In this case, 12345678 hex is
stored from the rightmost byte in
the order 78
In this example, EGATR(721) is used to read the general status of a DRT2
Slave (I/O Terminal).
000000
When CIO 000000 and A20206 (the Communications Port Enabled Flag for
port 06) are ON, EGATR(721) reads the general status of the DRT2 Slave (I/O
Terminal). In this case, the Total ON Time or Number of Contact Operations
for input 3 are read.
Service Code = 0E hex, Class ID = 95 hex, Instance ID = 01 hex, and Attribute
ID = 65 hex.
The general status is returned in 1 byte.
The data in the frame is in
the order 34
12.
Frame
34
12
In this case, 1234 hex is
stored from the rightmost
byte in the order 34
12.
15
08 07
D+1
1
2
3
The data in the frame is in the
order 78
56
78
56
56
34
12.
15
08 07
D+1
7
8
D+2
3
4
The data in the frame is in the
order 78
56
78
56
56
34
12.
15
08 07
D+1
5
6
D+2
1
2
Communications Port
Enabled Flag (Port 6)
A20206
Section 3-25
00
4
34
12.
34
12
00
5
6
1
2
34
12.
34
12
00
7
8
3
4
EGATR
S
D00000
D
D00100
C
D00200

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents