12CONTROL SUB FUNCTIONS

[5]Teaching program example

MELSEC-Q

The following shows a sequence program example for setting (writing) the positioning data obtained with the teaching function to the QD75.

(1)Setting conditions

When setting the current feed value as the positioning address, write it when the BUSY signal is OFF.

(2)Program example

The following example shows a program to carry out the teaching of axis 1 by the dedicated instruction "TEACH 1".

1)Move the workpiece to the target position using a JOG operation (or an inching operation, a manual pulse generator operation).

Example

V

Target position

t

Forward run JOG start signal

[Y8]

 

 

 

PLC READY signal

[Y0]

 

 

 

QD75 READY signal

[X0]

 

 

 

BUSY signal

[XC]

 

 

 

Error detection signal

[X8]

 

 

 

 

 

 

 

Md.20 Current feed value

n1

nx

n2

12 - 75

Page 551
Image 551
Mitsubishi Electronics QD75D, QD75P Teaching program example, Setting conditions, Program example, Example Target position