Delta Tau GEO BRICK LV Reference Manual

Page of 760
Turbo PMAC/PMAC2 Software Reference
 
Turbo PMAC On-line Command Specification 
 381 
OPEN PROGRAM 
Function: 
Open a fixed motion program buffer for entry 
Scope: 
Port specific 
Syntax: 
OPEN PROGRAM {constant} 
 
OPEN PROG {constant} 
where: 
 
{constant} is an integer from 1 to 32767 representing the motion program to be opened 
This command causes Turbo PMAC to open the specified fixed (non-rotary) motion program buffer for 
entry or editing on this port.  Subsequent program commands valid for motion programs sent from this 
port will be entered into this buffer.  When entry of the program is finished, the CLOSE or CLOSE ALL 
command should be used to prevent further lines from being put in the buffer. 
No other program buffers (PLC, fixed or rotary motion) may be open when this command is sent (Turbo 
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. 
No motion programs may be running in any coordinate system when this command is sent (Turbo PMAC 
will report ERR001 if I6=1 or 3).  As long as a fixed motion program buffer is open, no motion program 
may be run in any coordinate system (Turbo PMAC will report ERR015 if I6=1 or 3). 
PROGs 1000-32767 can be protected by password.  If the PROG is protected by password, and the proper 
password has not been given, Turbo PMAC will reject this command (reporting an ERR002 if I6=1 or 3). 
After any fixed motion program buffer has been opened, each coordinate system must be commanded to 
point to a motion program with the B{constant} command before it can run a motion command 
(otherwise Turbo PMAC will report ERR015 if I6=1 or 3) 
Example: 
CLOSE 
; Make sure other buffers are closed 
DELETE GATHER 
; Make sure memory is free 
OPEN PROG 255 
; Open buffer for entry, disabling program 
CLEAR 
; Erase existing contents 
X10 Y20 F5 
; Enter new version of program... 
     ... 
CLOSE 
; Close buffer at end of program 
&1B255R 
; Point to this program and run it 
See Also: 
Writing and Executing Motion Programs 
On-line commands CLEARCLOSEDELETE GATHER 
Program Command Specification 
OPEN ROTARY 
Function: 
Open all existing rotary motion program buffers for text entry 
Scope: 
Port specific 
Syntax: 
OPEN ROTARY 
 
OPEN ROT 
This command causes Turbo PMAC to open all existing rotary motion program buffers (created with the 
DEFINE ROTARY command) for entry with ASCII text program lines from this port.  Subsequent 
program commands valid for rotary motion programs sent on this port are entered into the rotary program 
buffer of the coordinate system addressed at the time of that command.