EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 935

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...
902
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 S+5
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 S+5 and S+6
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 In this example, ESATR(722) is used to overwrite the Number of Contact
Operations set value in 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) writes the Number of Contact Operations set value
for input 2 in a DRT2 Slave (I/O Terminal).
(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.
34
15
12 3S+5 4
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 rightmost
byte in the order 34 12.
78
15
78 5S+5
S+6
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
56 7S+5
S+6
8
12 34
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 rightmost byte in
the order 78 56 34 12.
0.00
A202.06
S
C
ESATR
D0
D201
Communications Port
Enabled Flag (Port 6)

Table of Contents

Related product manuals