Mitsubishi Electronics 13JW55 Network Card User Manual


 
5 - 21
5.2.4 Example of specifying digit for bit devices and transferring data
Program example Process
When the destination data
D
is a word device
D0K1X0MOVP
DS
• Source: Source device
• Destination: Destination device
0 0 0 0 0 0 0 0 0 0 0 0 1 1 01
B0B1B2B3B4B15
Becomes 0.
1 1 01
X0X1X2X3
K1X0
D0
When the source data
S
is a word device
K2M100D0MOV
DS
1 0 0 0 1 1 01
M100M115 M108M107
K2M100
1 1 1 0 1 0 1 0 1 0 0 0 1 1 01
B0B15 B8 B7
D0
No change
When the source data
S
is a constant
K2M0H1234MOV
DS
0 0 1 1 0 1 00
M0M15
K2M0
0 0 0 1 0 0 1 0 0 0 1 1 0 1 00
H1234
No change
M7M8
43
1
2 3 4
When the source data
S
is a bit device
K2M100K1M0MOV
DS
0 0 0 0 1 1 01
M115
K2M100
1 1 1 0 1 0 1 0 1 0 0 1 1 1 01
K1M0
No change
M108
Zero is
transferred
Data of M3
to M0 are
transferred.
M0M15 M7M8 M4M3
M100M103M107 M104
0