
155
Quick Start
Figure 75: Index Setup View (Incremental Type)
Now that all of the motion parameters are setup, the jogs and indexes can be initiated through
assignments to hardware inputs that were made on the assignment view. See Figure 16 to
determine which input is used to activate which functions.
This example specifies that the indexes must be initiated from assignments, as well as from a
program. So a program must be created using Step 4 of this guide.
Upon initiating the program, it will wait until DriveInput.1 is activated, then run all three
indexes with a 1 second dwell in between each, and then loop back to the top of the program.
The program will run continuously, or until the Stop destination is activated.
The example program uses the following instructions:
Do While / Loop – This program instruction is used to repeat a sequence of code as long as
a test expression is true. The test expression is validated before the loop is entered. If the test
expression is evaluated as False (0), then the code inside the loop will be skipped over. If the
expression is evaluated as True (1), then the code inside the loop will be performed. Upon
reaching the Loop instruction, the program flow returns to the Do While instruction, and the
expression is evaluated again. The example program uses an expression of TRUE, which is
always evaluated as True (1). Therefore the program will run continuously.
Comentarios a estos manuales