Automatic Operation (Position Control)
8.9.3 Sample Program (Rewriting Positioning Tables)
The operation for rewriting positioning tables using a user program is mainly divided into five
steps.
• Specify the axis number, table number and table size to rewrite the positioning table.
• Set the positioning data to be rewritten.
• Set the positioning data in the positioning data setting area in buffers.
• Execute reading or writing the data in accordance with the requests stored in buffers.
• Execute recalculation.
(Note): The sample program on the next page is for rewriting the positioning data of one table from the table number
1 of the axis number 1 for the FP7 MC Unit installed in the slot number 1.
Contents of sample program
Mark
Description
Set the axis number, table number and table size to be rewritten.
①
ⓐ
Set the axis number, table number and table size.
ⓑ
Set the axis number, table number and table size in the unit memory (control area for buffer control).
②
Set the positioning data (14 words) to be rewritten in an arbitrary area.
③
Set the positioning data in the unit memory (positioning data setting area in the buffer).
Execute reading and writing the data in accordance with the requests stored in the buffer.
④
ⓐ
Specify reading or writing in the unit memory (control area for buffer control).
ⓑ
Set request flags in the unit memory (control area for buffer control).
Execute recalculation.
ⓐ
Set the table number and table size to be recalculated in the unit memory (setting parameter control
area).
⑤
ⓑ
Request recalculation until it is completes.
ⓒ
Reset the recalculation table size stored in the unit memory (setting parameter control area) to zero.
8-54