Mitsubishi Electric SV13/22 Programming Manual page 303

Table of Contents

Advertisement

8. AUXILIARY AND APPLIED FUNCTIONS
M1640
0
M1641
6
=
=
Y0020
CIRCUIT END
Downloaded from
ManualsNet.com
(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
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.
K
3
D853
K
5
D853
Y0021
search engine
...........................................M-code number output as BCD code
from Y110 to Y118
K3
BCD
D853
Y0110
Y0120
Y0121
Y0122
8 − 5
Outputs M code number as BCD code from
Y110 to Y118 when the Positioning start
completion signal (Xn0) turns ON.
Turns ON Y120, Y121, Y122 on positioning
complete.

Advertisement

Table of Contents
loading

This manual is also suitable for:

A172shcpunA171shcpun

Table of Contents