Mitsubishi Electric MELSEC Q Series Programming Manual page 448

Motion controller, real mode
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7 AUXILIARY AND APPLIED FUNCTIONS
System Configuration
Q61P
Q03UD
Q172D
QY40P
CPU
CPU
PY000
PY010
to
PY00F
PY01F
Motion SFC program
Reading of M-codes
[F10]
#0=0
#1=0
#2=0
[F20]
SET M2042
[G10]
PX000*M2455
[K100]
CPSTART1
Axis
3
Speed
1000pulse/s
INC-1
Axis
3,
200000pulse
M-code
INC-1
Axis
3,
300000pulse
M-code
INC-1
Axis
3,
400000pulse
M-code
CPEND
[G20]
D53==3
[F30]
#0=BCD(D53)
DOUT Y110, #0
SET Y120
1)
(4) Program example
(a) The Motion SFC program to read M-codes is shown as the following
conditions.
1) Axis used No. .......................................................... Axis 3
2) Processing at the positioning start by M-code ....... M-code No. is output
3) Processing at the positioning completion by M-code
a) M-code = 3 ..................................................... Y120 turns on
b) M-code = 5 ..................................................... Y121 turns on
c) M-code is except for (3 or 5) ......................... Y122 turns on
(b) Motion SFC program with the above conditions are shown below.
QY40P
Q172D
LX
to
All axes servo ON command
turns on
Stand by until PX000 and Axis 3
servo ready turns on
1 axis constant-speed control
Axis used . . . Axis 3
Speed . . . 1000pulse/s
1 axis linear positioning control
Axis used . . . Axis 3
Positioning . . . 200000pulse
3
address
M-code output . . . 3
1 axis linear positioning control
5
Axis used . . . Axis 3
Positioning . . . 300000pulse
address
M-code output . . . 5
4
1 axis linear positioning control
Axis used . . . Axis 3
Positioning . . . 400000pulse
address
P0
M-code output . . . 4
M-code (3) for axis 3 ?
After M-code storage area for axis 3
is changed into BCD code, it is output
to Y110 and Y120 turns on.
1)
[G30]
D53==5
[F40]
#1=BCD(D53)
DOUT Y110, #1
SET Y121
M-code (except 3 or 5) for axis 3 ?
[G40]
(D53==3)+(D53==5)
[G50]
!M2003
END
7 - 3
as BCD code to Y110
to Y11F
M-code (5) for axis 3 ?
After M-code storage area for
axis 3 is changed into BCD code,
it is output to Y110 and Y121
turns on.
After M-code storage
area for axis 3 is
changed into BCD code,
it is output to Y110 and
Y122 turns on.
[F50]
#2=BCD(D53)
DOUT Y110, #2
SET Y122
P0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents