Reference Manual

PMAC 2 Software Reference
PMAC On-Line Command Specification 203
move; it simply assigns a new value to the position..
Internally, a position bias register is written to which creates this new position offset. PSET
is the equivalent motion program command.
Example
X=0 ................... ; Call axis X’s current position zero
Z=5000 ; Re-define axis Z’s position as 5000
See Also
Axes, Coordinate Systems (Setting Up a Coordinate System)
On-line command Z
Program commands PSET, ADIS, IDIS.
B{constant}
B
Function
Point the addressed coordinate system to a motion program.
Scope
Coordinate-system specific
Syntax
B{constant}
where:
{constant} is a floating point value from 0.0 to 32767.99999 representing the
program and location to point the coordinate system to; with the integer part representing
the program number, and the fractional part multiplied by 100,000 representing the line
label (zero fractional part means the top of the program).
Remarks
This command causes PMAC to set the program counter of the addressed coordinate system
to the specified motion program and location. It is usually used to set the program counter to
the Beginning of a motion program. The next R or S command will start execution at this
point.
If {constant} is an integer, the program counter will point to the beginning of the
program whose number matches {constant}. Fixed motion program buffers (PROG) can
have numbers from 1 to 32,767. The rotary motion program carries program number 0 for
the purpose of this command.
If {constant} is not an integer, the fractional part of the number represents the line label
(N or O) in the program to which to point. The fractional value multiplied by 100,000
determines the number of the line label to which to point (it fills the fraction to 5 decimal
places with zeros).
Note:
If a motion program buffer (including ROTARY) is open when this
command is sent to PMAC, the command is entered into the buffer for
later execution, to be interpreted as a B-axis move command.
Example
B7 ...................... ;points to the top of PROG 7
B0 ...................... ;points to the top of the rotary buffer
B12.6 ............... ;points to label N60000 of PROG 12
B3.025R ;points to label N2500 of PROG 3 and runs
See Also
On-line commands DEFINE ROT,R, S
Program commands B{data}, N{constant}, O{constant}.