Of - on fault, Command details, Parameter details – Applied Motion RS-232 User Manual

Page 146: Examples

Advertising
background image

146

920-0002 Rev. I
2/2013

Host Command Reference

OF - On Fault

Compatibility: Q drives only
Affects:

Stored program flow

See also:

AL, AX, AX, ME, OI commands

When a drive fault occurs, the OF command causes a given program segment to immediately load from non-
volatile memory into the queue. The OF command acts as a kind of software switch in that when this function
is turned on the drive’s response to a drive fault (loading the designated program segment) is automatic. Once
a fault occurs the fault must be cleared (AX) and the motor re-enabled (ME) before continuing normal program
execution.

Please note that while immediately executing AX will clear the alarm code, it does not guarantee that the condition
that caused the alarm has been resolved. Therefore it is recommended to include a short delay or wait for user
input before clearing the alarm and resuming normal operation.

Also, a drive fault will turn the OF function off, so after a fault the OF command must be executed again to reset
the function. For this reason it is common to place the OF command in segment 1 of a Q program, and then load
segment 1 (QX1) from the designated OF segment after the fault has been cleared and the motor re-enabled.
A parameter value of “0” disables the On Fault function. See the AL (Alarm code) command for details of drive
faults.

Command Details:

Structure

OF(Parameter #1)

Type

BUFFERED

Usage

WRITE ONLY

Non-Volatile

No

Register Access

None

Parameter Details:

Parameter #1

program segment #

- units

integer

- range

1 - 12 = segment 1 - 12
0 = disable On Fault function

Examples:

Command

Drive sends

Notes

In segment 1 of a Q program...
OF9

-

When a drive fault occurs load and execute program segment 9

In segment 9 of the same Q program...
WT0.1

-

Short delay to allow the system to settle

AX

-

Alarm reset

ME

-

Motor enable

QX1

-

Load and execute segment 1, which will also reset the OF function.

OF0

-

Disable the On Fault function

Advertising
This manual is related to the following products: