Reference Manual

PMAC 2 Software Reference
272 PMAC On-Line Command Specification
See Also
PLC Program Features
I-variable I5
On-line commands CLOSE, DELETE GATHER, ENABLE PLC
OPEN PROGRAM
Function
Open a fixed motion program buffer for entry
Scope
Global
Syntax
OPEN PROGRAM {constant}
OPEN PROG {constant}
where:
{constant} is an integer from 1 to 32767 representing the motion program to be
opened.
Remarks
This command causes PMAC to open the specified fixed (non-rotary) motion program buffer
for entry or editing. Subsequent program commands valid for motion programs will be
entered into this buffer. When entry of the program is finished, the CLOSE 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 (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
(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 (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, 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 PMAC will report ERR015 if I6=1 or 3)
Example
CLOSE ............... ; Make sure other buffers are closed
DELETE GATHER DELETE TRACE ; 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 a Motion Program
On-line commands CLEAR, CLOSE, DELETE GATHER, DELETE TRACE
Program Command Specification