Emerson FM-3 Network Card User Manual


 
138
FM-3 Programming Module Reference Manual
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
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.
ModuleOutput.3=OFF
ModuleOutput.4=OFF
Do While (TRUE) ‘Repeat until the program is halted
If (ModuleInput.2=ON) Then ‘Fill a box if the “Go” input is on.
Index.1.Initiate‘Incremen-
tal,Dist=16.00oz,Vel=16.0oz/s
Wait For Index.AnyCommandComplete
Endif
‘Increase the fill amount once every time ModuleInput.3 is pressed
If((ModuleInput.3=ON) AND (ModuleOutput.3=OFF)) Then
Index.1.Dist = Index.1.Dist + 0.10‘ounces
ModuleOutput.3=ON
‘ModuleOutput.3 is used to make sure that the distance is
‘incremented only once each time ModuleInput.3 is pressed.
If (Index.1.Dist > 20) Then
ModuleOutput.1=ON ‘Long index output
Else
ModuleOutput.1=OFF
Endif
Endif
If((ModuleInput.3=OFF) AND (ModuleOutput.3=ON)) Then