Reference Manual

Turbo PMAC/PMAC2 Software Reference
Turbo PMAC On-line Command Specification 299
CLRF
Function: Clear faults on MACRO ring
Scope: Global
Syntax: CLRF
The CLRF command causes Turbo PMAC to send a command over the MACRO ring to clear any faults
on slave MACRO devices. The command is sent as a ring broadcast over Node 14 to all stations on the
MACRO ring. It is the “global” equivalent of the station-specific MS CLRFn command. It should only be
sent by the synchronizing master on the ring.
All stations receiving the command will clear any fault bits present and reset ring error counters to zero. If
a slave station had turned itself into a master to notify the synchronizing master of a ring break, it will
turn itself back into a slave. The Turbo PMAC sending the command will clear its own global “ring fault”
status bit and reset its ring-error counter (at Y:$343B) to zero.
Of course, if the underlying condition that caused the original fault is still present, fault bits can
immediately be set back to 1 and error counters incremented from zero.
{constant}
Function: Assign value to variable P0, or to table entry.
Scope: Global
Syntax: {constant}
where:
{constant} is a floating-point value
This command is the equivalent of P0={constant}. That is, a value entered by itself on a command
line will be assigned to P-variable P0. This allows simple operator entry of numeric values through a
dumb terminal interface. Where the value goes is hidden from the operator; the Turbo PMAC user
program must take P0 and use it as appropriate.
Note:
If a compensation table on Turbo PMAC (BLCOMP, COMP, or TCOMP) has been
defined but not filled, a constant value will be entered into this table, not into P0.
Example:
In a motion program:
P0=-1 ; Set P0 to an illegal value
SEND"Enter number of parts in run:"
; Prompt operator at dumb terminal
; Operator simply needs to type in number
WHILE (P0<1) DWELL10 ; Hold until get legal response
P1=0 ; Initialize part counter
WHILE (P0<P1) ; Loop once per part
P1=P1+1
...
P0=1 ; Temporary value for P0
#1DEFINE COMP 5,2000 ; Set up 5-entry table
32 48 96 64 0 1 ; Firt 5 numbers into table; sixth into P0
P0 ; Query P0 value
-1 ; Turbo PMAC responds