Reference Manual
PMAC 2 Software Reference
PMAC On-Line Command Specification 273
OPEN ROTARY
Function
Open all existing rotary motion program buffers for entry
Scope
Global
Syntax
OPEN ROTARY
OPEN ROT
Remarks
This command causes PMAC to open all existing rotary motion program buffers (created
with the DEFINE ROTARY command) for entry. Subsequent program commands valid for
rotary motion programs are entered into the rotary program buffer of the coordinate system
addressed at the time of that command. (Branching and looping commands should not be
used in a rotary program buffer.)
No other program buffers (PLC, fixed or rotary motion) may be open when this command is
sent (PMAC will report ERR007 if I6=1 or 3). It is a good idea always to precede an OPEN
command with a CLOSE command to make sure no other buffers have been left open.
The <CTRL-U> command performs the same function as OPEN ROTARY.
Note:
The B0 command that points the coordinate system to the rotary
buffer cannot be given while the rotary buffers are open, because
PMAC will interpret the command as a B-axis move command.
Example
&2 DEFINE ROT 100 ; Create C.S. 2 rotary buffer
&1 DEFINE ROT 100 ; Create C.S. 1 rotary buffer
&1 B0 &2 B0. ; Point both C.S.s to rotary buffers
OPEN ROT ........ ; Open buffers for entry
&1 X10 Y10 F5 ; Write to C.S. 1’s buffer
&2 X30 Y30 F10 ; Write to C.S. 2’s buffer
&1R &2R ; Start executing both buffers
See Also
Rotary Motion Programs (Writing a Motion Program)
On-line commands <CTRL-L>, <CTRL-U>, CLOSE, DEFINE ROT, B{constant}, R
P
Function
Report motor position
Scope
Motor specific
Syntax
P
Remarks
This command causes PMAC to report the present actual position for the addressed motor to
the host, scaled in counts, rounded to the nearest tenth of a count.
PMAC reports the value of the actual position register plus the position bias register plus the
compensation correction register, and if bit 16 of Ix05 is 1 (handwheel offset mode), minus
the master position register.
Example
P......................... ; Request the position of the addressed motor
1995.................. ; PMAC responds
#1P .................... ; Request position of Motor 1
-0.5.................. ; PMAC responds
#2P#4P............. ; Request positions of Motors 2 and 4
9998.................. ; PMAC responds with Motor 2 position first
10002 ; PMAC responds with Motor 4 position next