Emerson Control Techniques FM-4 Reference Manual page 182

Programming module
Table of Contents

Advertisement

FM-4 Programming Module Reference Manual
Simple Jogging within a Program
Jog+ when DriveInput.2 goes ON and stop when it goes off. Jog- when DriveInput.3 goes ON and stop when it goes off. This
could also be accomplished using the Jog input functions when there is no program running.
Do While (TRUE)
If(DriveInput.2=ON) Then
Jog.0.PlusInitiate
Wait For DriveInput.2=OFF
Jog.Stop
Endif
If (DriveInput.3=ON) Then
Jog.0.MinusInitiate
Wait For DriveInput.3=OFF
Jog.Stop
Endif
Loop
Rotary Table with "Calibrated" Stop Positions
Home the axis, wait for an input and then index to 3 different stop positions (absolute positions), wait for an input between
indexes. The InPosn output function could be assigned to an output to indicate when the axis has completed the index and the
following error is less than a specified amount. Since the indexes are to absolute positions they can be adjusted to "calibrate"
the stop positions to account for mechanical non-linearity in the particular rotary table. A rollover position of 360.00 degrees
would be entered into the setup view so that the system would take the shortest path (across the rollover) during the last move.
Home.0.Initiate
Do While (TRUE)
Wait For ModuleInput.1=ON
Index.2.Initiate
Wait For InPosn
Wait For ModuleInput.1=ON
Index.3.Initiate
Wait For InPosn
Wait For ModuleInput.1=ON
Index.1.Initiate
Wait For InPosn
Loop
Flying Cutoff/Shear
Flying cutoff or flying shear application to perform synchronized out and return indexes which repeat every 100 inches of
master travel.
Part Length = 100 inches
Knife Travel Distance = 20 inches
PLS.0 is used to initiate Index.0 every 100 inches. PLS.0 has an "ON" point at 0.000 inches and an "OFF" point at 90.000
inches. PLS.0 has a rollover position of 100.000 inches. The rollover position is used to set the part length. The source for
PLS.0 is the master axis. The PLS is configured in the PLS view. The PLS output does not necessarily need to be connected
to an output line on the drive or module because it is used within the program to initiate an index.
An Index PLS is used to fire the cutoff knife. The Index PLS is connected to Output #1 on the drive. The Index PLS is
configured in the index setup view. The Index PLS for Index.1 has an "ON" point 2.000 inches into the index and an "OFF"
point 18 inches into the index.
Home.0.Initiate
MasterAxis.DefineHome=ON
PLS.0.Enable=ON
Do While (TRUE)
Wait For DriveInput.1=ON
If PLS.0.Status = ON Then
168
'Repeat until the program is halted
'Jog+ when DriveInput.2=ON
'Vel=20in/s
'Stop jogging when DriveIput.2 goes OFF
'Decelerate to a stop
'Jog- when DriveInput.3=ON
'Vel=20in/s
'Stop jogging when DriveInput.3 goes OFF
'Decelerate to a stop
'Sensor,Offset=0.0deg/s,Vel=-1000deg/s
'Repeat until the program is halted
'ModuleInput.1 is the "Go" input
'Absolute,Dist=120.07deg,Vel=1000deg/s
'Absolute,Dist=239.95deg,Vel=1000deg/s
'Absolute,Dist=0.03deg,Vel=1000deg/s
'Sensor,Offset=1.000in,Vel=-5.0 in/s
'Set the master position to 0.0
'Turn on PLS.0
'Repeat until the program is halted
'Input 1 is used as a "hold" input.
'If the PLS is already on you are too late.
ModuleOutput.4=ON'Set a "Too Late" output
End'Drop out of the program

Advertisement

Table of Contents
loading

Table of Contents