![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_7420301119.webp)
1079
Network Instructions
Section 3-25
• Storing Data from the Rightmost Byte (Bits 12 to 15 of C = 8 hex)
Example: Storing the value 1234 hex in D+1
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+1 and D+2
• Storing Data from the Rightmost Byte (Bits 12 to 15 of C = 8 hex)
Example: Storing the value 12345678 hex in D+1 and D+2
Example
In this example, EGATR(721) is used to read the general status of a DRT2
Slave (I/O Terminal).
When CIO 000000 and A20206 (the Communications Port Enabled Flag for
port 06) are ON, EGATR(721) reads the general status of the 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 = 95 hex, Instance ID = 01 hex, and Attribute
ID = 65 hex.
The general status is returned in 1 byte.
34
15
1
2
3
D+1
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
7
8
5
D+1
D+2
6
3
4
1
2
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
5
6
7
D+1
D+2
8
1
2
3
4
08 07
00
56
34
12
Frame
In this case, 12345678 hex is
stored from the rightmost byte in
the order 78
→
56
→
34
→
12.
The data in the frame is in the
order 78
→
56
→
34
→
12.
000000
A20206
S
D
C
EGATR
D00000
D00100
D00200
Communications Port
Enabled Flag (Port 6)
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...