EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 922

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
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...
889
Network Instructions Section 3-24
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).
When CIO 0.00 and A202.06 (the Communications Port Enabled Flag for port
06) are ON, EXPLT(720) reads the Total ON Time (s) or Number of Contact
Operations from a 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 = 09 hex, Instance ID = 03 hex, and Attribute
ID = 66 hex.
For example, a value of 2,752,039 s is returned as the response for the Total
ON Time.
34
15
D+3
08 07
00
12
12 34
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
78 5D+3
D+4
6
34 12
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
12 34
08 07
00
56 34 12
56 78
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
D
C
EXPLT
D000
D100
D200
Communications Port
Enabled Flag (Port 6)

Table of Contents

Related product manuals