8 CONTROL SUB FUNCTIONS
8.9 Other Functions
289
8
Teaching program example
The following shows a program example for setting (writing) the positioning data obtained with the teaching function to the
Simple Motion module.
■Setting conditions
When setting the current feed value as the positioning address, write it when the BUSY signal is OFF.
■Program example
The following example shows a program to carry out the teaching of axis 1.
• Move the workpiece to the target position using a JOG operation (or an inching operation, a manual pulse generator
operation).
■RD77MS4 operation example
Refer to the following for the program example.
Page 570 Teaching program
• Confirm the teaching function and teaching procedure before setting the positioning data.
• The positioning addresses that are written are absolute address (ABS) values.
• The positioning data written by the teaching function overwrites the data of buffer memory only. Therefore,
read from buffer memory and write to flash ROM before turning the power OFF as necessary.
PLC READY signal
READY signal
V
t
[Cd.181] Forward run JOG start
Target position
BUSY signal
Error detection signal
([Md.31] Status: b13)
[Md.20] Current feed value
n2n1
nx
[Y0]
[X0]
[X10]
All axis servo ON
[Y1]
Teaching is possibleTeaching is possible Teaching is impossible