12CONTROL SUB FUNCTIONS

12.7.3 M code output function

MELSEC-Q

The "M code output function" is used to command sub work (clamping, drill rotation, tool replacement, etc.) related to the positioning data being executed.

When the M code ON signal (X4, X5, X6, X7) is turned ON during positioning execution, a No. called the M code is stored in " Md.25 Valid M code".

These "

Md.25

Valid M code" are read from the PLC CPU, and used to command

auxiliary work. M codes can be set for each positioning data. (Set in setting item " Da.10 M code" of the positioning data.)

The timing for outputting (storing) the M codes can also be set in the "M code output function".

The details shown below explain about the "M code output function".

[1]M code ON signal output timing

[2]M code OFF request

[3]Precautions during control

[4]Setting the M code output function

[5]Reading M codes

[1]M code ON signal output timing

The timing for outputting (storing) the M codes can be set in the "M code output function". (The M code is stored in " Md.25 Valid M code" when the M code ON

signal is turned ON.)

The following shows the two types of timing for outputting M codes: the "WITH" mode and the "AFTER" mode.

(1) WITH mode

The M code ON signal (X4, X5, X6, X7) is turned ON at the positioning

start, and the M code is stored in " Md.25

Valid M code".

 

ON

 

 

Positioning start signal

 

 

 

[Y10, Y11, Y12, Y13]OFF

 

 

 

ON

 

 

BUSY signal [XC, XD, XE, XF] OFF

 

 

 

ON

 

 

M code ON signal

OFF

 

 

[X4, X5, X6, X7]

 

 

 

Cd. 7 M code OFF request

0 1 0

0 1

0

Md. 25 Valid M code

m1

m2

 

 

V

Dwell time

Positioning

 

 

 

 

 

 

t

Da. 1 Operation pattern

01

 

00

m1 and m2 indicate set M codes.

Fig. 12.38 M code ON/OFF timing (WITH mode)

12 - 66

Page 542
Image 542
Mitsubishi Electronics QD75P, QD75D user manual Code output function, Code on signal output timing, With mode, Md.25