![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_7422681126.webp)
1087
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 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 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.
34
15
1
2
3
S+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
7
8
5
S+5
S+6
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
S+5
S+6
8
1
2
3
4
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.
000000
A20206
S
C
ESATR
D00000
D00100
Communications Port
Enabled Flag (Port 6)
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...