Example Programs - Emerson Control Techniques FM-4 Reference Manual

Programming module
Table of Contents

Advertisement

FM-4 Programming Module Reference Manual
Figure 145:
Program View (FM-4E) with "Run Anytime" Check Box Enabled
When a fault occurs, the drive will still be disabled, and no motion will be possible. For this reason, it may be necessary to
reset the fault in the "Run Anytime" program prior to running motion again. If a motion instruction is processed while the
drive is disabled, the program will stall on that particular line of the program, but the program will not stop.
Certain conditions will still cause a program designated as "Run Anytime" to stop. These conditions are listed below:
Stop Function is activated
"Run Anytime" program has a program fault
Multiple programs may be configured as "Run Anytime" programs and can be called from a program the same as any other
program. If a "Run Anytime" program calls another program which is not configured to run anytime while the drive is faulted
or disabled, the task will be stopped.
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 Diagnostics and Troubleshooting 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
Index.1.Initiate
Wait For Index.AnyCommandComplete
166
'Absolute,Posn=10.000in,Vel=5.0in/s
'Absolute,Posn=0.000in,Vel=10.0in/s

Advertisement

Table of Contents
loading

Table of Contents