76Example Six: In this example, we will first find the fully retracted position ofthe motor within a linear application. The motor will continuously move in theextend direction, until getting 0.9” from the fully retracted position. When the 0.9”position is reached, the motor will retract back to the 0” position, and resume theextend. If at any time during the program, input 1 changes state, the program willabort.We first need to set up the interrupt triggered by the input.• Click the “Int on Input” Button.• Select “Enabled” for Input 1 Interrupt• Enter “Abort” as the destination.• Select “Both Edges” as the trigger type.• Select “0-Highest” as the priority.• Click the “Add At End” button. This places the command in program.We now want to retract the full stroke of the actuator.• Click the “Retract” button.• Input the distance as 1".• Input the speed as 0.5 inch per second.• Select “1/4” as the step mode.• All other parameters can be left as the defaults.• No Label is required.• You can add a comment in the comment line if you wish.• Click the “Add At End” button. This places the command in program.Note: You will notice that when the retract command populates in the programfield on the screen, that it is followed by a second command that states “Wait ForMove“. This is also true when using the Extend and Move To commands. This isa command to allow the move to finish before execution of the next command.