
177
Quick Start for an FM-4 Module
Distance – The distance is a signed value that specifies the distance the load will travel from the start position. The sign of
this parameter determines direction of travel for the load. The distance has been set to 2.5 inches.
Velocity – Is the target velocity of the index profile. The velocity parameter is unsigned and is always greater than zero.
Direction of the index is determined not by the velocity, but by the Distance/Position parameter.
Acceleration – Is the average acceleration rate used when accelerating to the target index velocity.
Deceleration - Is the average deceleration rate used when decelerating to zero speed, or to the new target velocity.
Figure 117: 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 114 to determine which input is used to activate which function.
This example specifies that the indexes must be initiated from assignments, as well as from a program. So a program must
be created using the guidelines below.
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