FM-3 Programming Module Reference Manual

Resetting Faults in "Run Anytime" Programs

To reset a fault from a "Run Anytime" program, use Fault.Reset = ON command in the user program. The Fault.Reset command does not clear all types of faults. Some faults require power to be cycled in order to clear the fault. For more information on the method used to clear individual faults, see the Faults section.

After using the Fault.Reset command in a user program, use a Wait For Time 0.100’seconds command to give the drive time to clear the fault and re-enable the drive before initiating motion. If this is not done, the motion will be initiated before the drive is disabled. and the instruction will be ignored.

Example Programs

Out and Return - Simple

Description: Move out to an absolute position and return

Index.2.Initiate‘Absolute,Posn=10.000in,Vel=5.0in/s

Index.1.Initiate‘Absolute,Posn=0.000in,Vel=10.0in/s

Wait For Index.AnyCommandComplete

Out and Return – More Complex

Description: Home, Wait For an input, Move out to an absolute position, set an output, dwell for 1 second, clear the output, return to home position, repeat the out and return sequence until the stop input halts the program.

Home.0.Initiate

‘Sensor,Offset=0.000in,Vel=-10.0in/s

ModuleOutput.1=ON

‘Set the “At Position 1” output

Do While (TRUE)

‘Repeat until the program is halted

Wait For ModuleInput.2=ON

‘Wait for the “Go” Input

ModuleOutput.1=OFF

‘Clear the “At Position 1” output

Index.2.Initiate

‘Absolute,Dist=10.000in,Vel=5.0in/s

Wait For InPosn

 

ModuleOutput.2=ON

‘Set the “At Position 2” output

Wait For Time 1.000

‘Seconds

ModuleOutput.2=OFF

‘Clear the “At Position 2” output

Index.1.Initiate

‘Absolute,Dist=0.000in,Vel=10.0in/s

Wait For InPosn

 

ModuleOutput.1=ON

‘Set the “At Position 1” output

Loop

 

134

Page 148
Image 148
Emerson FM-3 manual Example Programs, Resetting Faults in Run Anytime Programs, Out and Return Simple