
94
FM-3 Programming Module Reference Manual
Home.0.Initiate ‘Sensor,Offset=1.000in,Vel=-5.0 in/s
ModuleEncoderInput.DefineHome=ON ‘Set the master position to 0.0
PLS.0.Enable=ON ‘Turn on PLS.0
Do While (TRUE) ‘Repeat until the program is halted
Wait For DriveInput.1=ON ‘Input 1 is used as a “hold” input.
If PLS.0 = ON Then ‘If the PLS is already on you are too late.
ModuleOutput.4=ON ‘Set a “Too Late” output
End ‘Drop out of the program
Endif
Wait For PLS.0=ON ‘Start the Index when PLS.0 goes on
‘(every 100 inches).
Index.1.Initiate ‘Incremental,Sync,Dist=20.0in,Vel=1.0in/in
Index.0.Initiate ‘Absolute,Sync,Posn=0.0in,Vel=2.0in/in
Wait For Index.AnyCommandComplete
Loop
Synchronized Jog with Manual Phase Adjustment
The motor controls a lugged conveyor belt which is synchronized to another lugged conveyor
belt. Jog.0 is configured as a “Synchronized” jog using the setup software. The program first
homes the follower and then waits for an input from a sensor on the master axis lugs. When
the input comes on the follower starts the synchronized jog. If the home is setup correctly the
follower will be in perfect phase when it gets up to speed. If the follower gets out of phase
with the master the operator can manually bring the it back into phase using “Advance” and
“Retard” inputs. The program adjusts the phase of the follower axis by adjusting the jog
velocity (Jog.0.Vel) when the operator hits one of the phasing inputs.
Home.0.Initiate ‘Sensor,Offset=2.25in,Vel=10in/s
Jog.0.Vel=1.000 ‘follower inches/master inch
Wait For ModuleInput.1=ON ‘Start when a master lug is detected
Jog.0.PlusInitiate ‘Sync,Vel=1.000in/in
Do While (TRUE) ‘Repeat until the program is halted
If (ModuleInput.2=ON) Then ‘Phase Advance when ModuleInput.2=ON
Jog.0.Vel=1.100 ‘follower inches/master inch
Wait For ModuleInput.2=OFF
Jog.0.Vel=1.000 ‘follower inches/master inch
Endif
If (ModuleInput.3=ON) Then ‘Phase Retard when ModuleIput.3=ON
Jog.0.Vel=0.900 ‘follower inches/master inch
Wait For ModuleInput.3=OFF
Jog.0.Vel=1.000 ‘follower inches/master inch
Endif
Loop
Comentarios a estos manuales