Mitsubishi Electric R16MTCPU Programming Manual page 267

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Operation error
An operation error will occur if:
• (S) to (S)+(n-1) is outside the device range.
• (D) to (D)+(n-1) is outside the device range.
• (n) is 0 or a negative number.
• (S) and (D) combination is wrong.
• (S) and (D) are a CPU buffer memory access device other than the self CPU, or a module access device that is not a self
CPU controlled unit.
• (S) is a bit device and the device number is not a multiple of 16
• (D) is a bit device and the device number is not a multiple of 16
Program example
■Program which batch-transfers a contents for 5 words from D0 to all data for 5 words from #10
BMOV #10, D0, K5
#10
12
#11
34
#12
56
#13
78
#14
90
■Program which batch-transfers a contents for 4 words from X0 to all data for 4 words from #20
BMOV #20, X0, K4
b15
#20
0 0 1 0 0 1 1 1 0 0 0 0 1 1 1 1
b15
#21
1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1
b15
0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1
#22
b15
1 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0
#23
D0
Batch transfer
D1
D2
D3
D4
XF
b0
0 0 1 0 0 1 1 1 0 0 0 0 1 1 1 1
X1F
b0
1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1
Batch transfer
X2F
b0
0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1
X3F
b0
1 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0
12
34
56
78
90
X0
X10
X20
X30
4 OPERATION CONTROL PROGRAMS
265
4.19 Other Instructions
4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents