![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_7420301112.webp)
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
3
4
1
D+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
1
2
3
4
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+3
D+4
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
D+3
D+4
1
2
3
4
08 07
00
56
34
12
5
6
7
8
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)
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...