Mitsubishi Electronics Q173CPU(N) Home Security System User Manual


 
7 - 81
7 OPERATION CONTROL PROGRAMS
[Errors]
(1) An operation error will occur if:
• (D) to (D)+(n-1) is outside the device range;
• (n) is 0 or a negative number; or
• PX/PY is set in (D) to (D)+(n-1).
(2) When conversion is made in program editing of the SW6RN-GSV
P, an error will
occur if:
• (D) to (D)+(n-1) is outside the device range;
• (S) is outside the device range;
• (n) is 0 or a negative number;
• PX/PY is set in (S);
• PX/PY is set in (D) to (D)+(n-1);
• (S) is a bit device and the device number is not a multiple of 16; or
• (D) is a bit device and the device number is not a multiple of 16.
[Program examples]
(1) Program which sets 3456H to all data for 100 words from #10
FMOV #10, H3456, K100
H3456
#10
#
H3456
H3456
H3456
:
H3456
#11
#12
:
#109
Transfer
(2) Program which sets a content of D4000 to all data for 50 words from W0
FMOV W0, D4000, K50
1234
D4000
#
1234
1234
1234
:
1234
W1
W2
:
W31
Transfer
W0
(3) Program which sets 8000H to all data for 4 words from M0
FMOV M0, H8000, K4
Transfer
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
b15 b0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
M15 M0
M31 M16
M47 M32
M63 M48
When (n) specified is a
word device
When (n) specified is a
constant