omron — OPEN PROGRAM

PMAC Product Guide OPEN PLC Function : Open a PLC program buffer for entry Scope : Global Syntax : OPEN PLC {constant} where {constant} is an integer from 0 to 31 representing the PLC program to be opened. This command causes PMAC to open the specified PLC program buffer for entry and editing. This permits subsequent program lines that are valid for a PLC to 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).

Precede an OPEN command with a CLOSE command to make sure no other buffers have been left open. PLCs 0-15 can be protected by password. If the PLC 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). Opening a PLC program buffer automatically disables that PLC program. Other PLC programs and motion programs will keep executing. Closing the PLC program buffer after entry does not re-enable the program. To re-enable the program, the ENABLE PLC command must be used, or PMAC must be reset (with a saved value of I5 permitting this PLC program to execute). Examples:

CLOSE ; Make sure other buffers are closed DELETE GATHER ; Make sure memory is free OPEN PLC 7 ; Open buffer for entry, disabling program CLEAR ; Erase existing contents IF (M11=1) ; Enter new version of program... ... CLOSE ; Close buffer at end of program ENABLE PLC 7 ; Re-enable program 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. 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). 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). 182 Online Commands