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

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

Advertisement

Network Instructions
Example
• Storing Data from the Rightmost Byte (Bits 12 to 15 of C = 8 hex)
Example: Storing the value 1234 hex in S+5
In this case, 1234 hex is
stored from the rightmost
byte in the order 34
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
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 S+5 and S+6
Frame
In this case, 12345678 hex is
stored from the rightmost byte in
the order 78
In this example, ESATR(722) is used to overwrite the Number of Contact
Operations set value in a DRT2 Slave (I/O Terminal).
000000
When CIO 000000 and A20206 (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.
The data in the frame is
in the order 34
12.
Frame
34
12
12.
15
08 07
S+5
1
2
3
The data in the frame is in the
order 78
56
34
78
56
56
34
12.
15
08 07
S+5
7
8
S+6
3
4
The data in the frame is in the
order 78
56
78
56
56
34
12.
15
08 07
S+5
5
6
S+6
1
2
Communications Port
Enabled Flag (Port 6)
A20206
Section 3-25
00
4
12.
34
12
00
5
6
1
2
34
12.
34
12
00
7
8
3
4
ESATR
S
D00000
C
D00100
1087

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents