EasyManua.ls Logo

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008
1405 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
Loading...
1072
Network Instructions Section 3-25
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
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
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.
Example 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).
34
15
341D+3 2
08 07
00
12
Frame
The data in the frame is in the order 34 12.
In this case, 1234 hex is
stored from the leftmost
byte in the order 34 12.
34
15
D+3
08 07
00
12
1234
Frame
The data in the frame is in the order 34 12.
In this case, 1234 hex is
stored from the
rightmost byte in the
order 34 12.
78
15
785D+3
D+4
6
3412
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 leftmost byte in
the order 78 56 34 12.
78
15
D+3
D+4
1234
08 07
00
56 34 12
5678
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.
000000
A20206
S
D
C
EXPLT
D00000
D00100
D00200
Communications Port
Enabled Flag (Port 6)

Table of Contents

Related product manuals