EasyManua.ls Logo

Mitsubishi Electric A173UHCPU - Page 302

Mitsubishi Electric A173UHCPU
389 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
8. AUXILIARY AND APPLIED FUNCTIONS
8 5
(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
from Y110 to Y118
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.
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.
M2440
0
Y0120
K3
BCD D53 Y0110
Y0121
Y0122
K
= 3 D53
M2441
Y0020 Y0021
6
K
= 5 D53
CIRCUIT END

Table of Contents

Other manuals for Mitsubishi Electric A173UHCPU

Related product manuals