
Parker Hannifin
Getting Started 15
4. In the Program Editor window under the comment 'TODO: edit
your program here, type the following (or copy and paste the
code to the program editor):
DRIVE ON Z : REM Enable Z Axis
Z0 : REM Return Z Axis to Zero Position
_Safe : REM Just a marker label
WHILE (BIT10=0) : REM Wait for Input 10 to be activated = -1
WEND : REM Gantry in Danger Zone
Z5 : REM Retract Carriage to Safe Position
WHILE(BIT10=-1) : REM Wait for gantry to move out of danger zone
WEND : REM Input 10 back to normal state = 0
Z0 : REM Extend carriage down
GOTO Safe : REM Go back to marker to wait for next danger zone
Running the Application
You’ve configured your controller, drives, and motors. And you’ve
created the necessary programs for the application. The application
hardware is set up, and the servo motors are already tuned. You are
ready to run the application.
1. In the Project Workspace, click Terminal Emulator.
2. In the Terminal Emulator window type:
PROG 0
RUN
PROG 1
RUN
Kommentare zu diesen Handbüchern