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

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

Advertisement

Network Instructions
Example
The following diagrams show how data is stored in the data areas when the
service data is in 2-byte or 4-byte units.
1. Data in 2-byte Units
• Storing Data from the Leftmost Byte (Bits 12 to 15 of C = 0 hex)
Example: Storing the value 1234 hex in D+3
• Storing Data from the Rightmost Byte (Bits 12 to 15 of C = 8 hex)
Example: Storing the value 1234 hex in D+3
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+3 and D+4
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+3 and D+4
In this case, 12345678 hex is
stored from the rightmost byte in
the order 78
Note The examples above only show the storage of received data in D+3, but send
data is stored in S+6 in the same way.
In this example, EXPLT(720) is used to read the total ON time or number of
contact operations from a DRT2 Slave (I/O Terminal).
The data in the frame is in the order 34
34
Frame
In this case, 1234 hex is
stored from the leftmost
byte in the order 34
12.
15
08 07
D+3
3
4
The data in the frame is in the order 34
Frame
34
In this case, 1234 hex is
stored from the
rightmost byte in the
order 34
12.
15
08 07
D+3
1
2
The data in the frame is in the order 78
78
Frame
56
34
12.
15
D+3
7
D+4
3
The data in the frame is in the order 78
Frame
78
56
56
34
12.
15
D+3
5
6
D+4
1
2
Communications Port
Enabled Flag (Port 6)
A20206
000000
Section 3-25
12.
12
00
1
2
12.
12
00
3
4
56
34
12.
56
34
12
08 07
00
8
5
6
4
1
2
56
34
12.
34
12
08 07
00
7
8
3
4
EXPLT
S
D00000
D
D00100
C
D00200
1073

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents