Mitsubishi Electric A173UHCPU Programming Manual page 302

Motion controller
Hide thumbs Also See for A173UHCPU:
Table of Contents

Advertisement

8. AUXILIARY AND APPLIED FUNCTIONS
M2440
0
M2441
K
6
=
3
D53
K
=
5
D53
Y0020
Y0021
CIRCUIT END
(3) Resetting M-codes
The M-codes can be reset by clearing the M-code output devices to zero.
Use this method during positioning control to carry out operations unrelated to
the servo program, such as when it has been difficult to output the M-code
during the previous positioning control.
However, an M-code output from the servo program takes priority over an M-
code set for an intermediate point under speed switching control or constant-
speed control.
(4) Program example
(a) A sequence program to read M-codes is shown below, using the following
conditions.
1) Axis used ....................................... Axis 3
2) Processing on positioning start due to M-code
...........................................M-code number output as BCD code
3) Processing on positioning completion due to M-code
a) if M-code = 3.............................. turn ON Y120
b) if M-code = 5.............................. turn ON Y121
c) if M-code is not 3 or 5 ................ turn ON Y122
(b) The sequence program based on the above conditions is shown below.
from Y110 to Y118
K3
BCD
D53 Y0110
Y0120
Y0121
Y0122
8 − 5
Outputs M-code number as BCD code from
Y110 to Y118 when the Positioning start
completion Flag(M2440) (Xn0) turns ON.
Turns ON Y120, Y121, Y122 on positioning
complete.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

A273uhcpu

Table of Contents