![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_7422681112.webp)
1073
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)
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...