
123
Programming
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 DriveInput.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 (DriveInput.2=ON) Then ‘Phase Advance when DriveInput.2=ON
Jog.0.Vel=1.100 ‘follower inches/master inch
Wait For DriveInput.2=OFF
Jog.0.Vel=1.000 ‘follower inches/master inch
Endif
If (DriveInput.3=ON) Then ‘Phase Retard when DriveIput.3=ON
Jog.0.Vel=0.900 ‘follower inches/master inch
Wait For DriveInput.3=OFF
Jog.0.Vel=1.000 ‘follower inches/master inch
Endif
Loop
Auger Filler with Inputs to Adjust the Fill Amount
Incremental indexes are used to squirt a specified amount of food product into a box. Inputs are used to adjust the index
distance. It would be much simpler to adjust the index distance with an OIT-3165 operator interface panel, but inputs could
be used as described below.
DriveOutput.3=OFF
DriveOutput.4=OFF
Do While (TRUE) ‘Repeat until the program is halted
If (DriveInput.2=ON) Then ‘Fill a box if the “Go” input is on.
Index.1.Initiate ‘Incremental,Dist=16.00oz,Vel=16.0oz/s
Wait For Index.AnyCommandComplete
Endif
‘Increase the fill amount once every time DriveInput.3 is pressed
If((DriveInput.3=ON) AND (DriveOutput.3=OFF)) Then
Index.1.Dist = Index.1.Dist + 0.10‘ounces
DriveOutput.3=ON
‘DriveOutput.3 is used to make sure that the distance is
‘incremented only once each time DriveInput.3 is pressed.
If (Index.1.Dist > 20) Then
DriveOutput.1=ON ‘Long index output
Else
DriveOutput.1=OFF
Endif
Endif
If((DriveInput.3=OFF) AND (DriveOutput.3=ON)) Then
DriveOutput.3=OFF
Endif
‘Decrease the fill amount once every time DriveInput.4 is pressed.
Comentarios a estos manuales