8 Application Examples 8.1.2 Design Procedure 1. Trajectory 1: Set up the absolute coordinates of the four points (-20, 20), (60, 20), (60, 100) and (-20, 100). Start from (0, 0). 2. Trajectory 2: Set up the absolute coordinates of the four points (-10, 10), (20, 10), (20, 70) and (-10, 70). Start from (0, 0). 3. Trajectory 3: Set up the absolute coordinates of the three points (-25, 25), (25, 25) and (0, 85). Start from (0, 0). 4. Trajectory 4: Set up the absolute coordinates of the seven points (10, 10), (10, 30), (10, 110), (10, 230), (10, 210), (10, 130) and (10, 10). Start from (0, 0). 5. Instruction List of Motion instructions or G-codes O100 main program:
Design instructions for initializing current status of X/Y axis and enabling OX0 motion subroutine O100 O100 main program LD M1002 DMOV K0 D1848 Set the current position of X axis to 0 DMOV K0 D1928 Set the current position of Y axis to 0 RST M1074 Disable OX motion subroutine MOV H8000 D1868 Write the No. (0) of OX to be enabled SET M1074 Enable OX motion subroutine M102 OX0 subroutine:
Call pointer P0 in subroutine OX0 OX motion subroutine BRET Return to bus line CALL P0 Call P0 subroutine M2 Example of motion instructions for trajectory 1 P0 P0 subroutine ABST Set-up absolute coordinate DRV X-20000 Y20000 Fast move to designated position LIN X60000 Y20000 F20000 Move to designated position by linear interpolation. Can also be written as LIN X60000 F20000 LIN X60000 Y100000 F20000 Move to designated position by linear interpolation. Can also be written as LIN Y100000 LIN X-20000 Y100000 F20000 Move to designated position by linear interpolation. Can also be written as LIN X-20000 LIN X-20000 Y20000 F20000 Move to designated position by linear interpolation.
Can also be written as LIN Y20000 SRET DVP-PM Application Manual 8-3