Mitsubishi Electric Melsec Q Series Programming Manual page 328

Motion controller (sv13/sv22)
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

5 OPERATION CONTROL PROGRAMS
[Program examples]
(2) When conversion of Motion SFC program is made in program editing of
MT Developer2, 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
• (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
Transfer
M32
M48
5 - 105
When (n) specified is a
constant
H3456
D4000
1234
b15
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
b0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents