Mitsubishi Electric Q173CPU Programming Manual page 306

Q series motion controller
Hide thumbs Also See for Q173CPU:
Table of Contents

Advertisement

7 OPERATION CONTROL PROGRAMS
[Errors]
[Program examples]
(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.
(1) Program which sets 3456H to all data for 100 words from #10
FMOV #10, H3456, K100
#10
H3456
#
#11
H3456
#12
H3456
:
:
#109
H3456
(2) Program which sets a content of D4000 to all data for 50 words from W0
FMOV W0, D4000, K50
W0
1234
W1
1234
W2
1234
:
:
W31
1234
(3) Program which sets 8000H to all data for 4 words from M0
FMOV M0, H8000, K4
M15
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
M31
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
M47
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
M63
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Transfer
Transfer
M0
M16
b15
Transfer
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
M32
M48
7 - 81
When (n) specified is a
word device
When (n) specified is a
constant
H3456
D4000
1234
#
b0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpunQ172cpuQ172cpun

Table of Contents