Reference Manual
PMAC 2 Software Reference
224 PMAC On-Line Command Specification
Remarks
This command causes PMAC to disable (stop executing) the specified uncompiled PLC
program or programs. Execution can subsequently be resumed at the top of the program with
the ENABLE PLC command. If it is desired to restart execution at the stopped point,
execution should be stopped with the PAUSE PLC command, and restarted with the
RESUME PLC command
The on-line DISABLE PLC command can only suspend execution of a PLC program at the
end of a scan, which is either the end of the program, or after an ENDWHILE statement in the
program.
PLC programs are specified by number, and may be specified in a command singularly, in a
list (separated by commas), or in a range of consecutively numbered programs. PLC
programs can be re-enabled by using the ENABLE PLC command.
If a motion or PLC program buffer is open when this command is sent to PMAC, the
command will be entered into that buffer for later execution.
Example
DISABLE PLC 1
DIS PLC 5
DIS PLC 3,4,7
DISABLE PLC 0..31
See Also
I-variable I5
On-line commands ENABLE PLC, OPEN PLC, PAUSE PLC, RESUME PLC, LIST PLC,
<CONTROL-D>.
Program commands DISABLE PLC, ENABLE PLC, PAUSE PLC, RESUME PLC
DISABLE PLCC
Function
Disable compiled PLC program(s).
Scope
Global
Syntax
DISABLE PLCC {constant}[,{constant}]
DIS PLCC {constant}[,{constant}]
DISABLE PLCC {constant}..{constant}
DIS PLCC {constant}..{constant}
where:
• {constant} is an integer from 0 to 31, representing the compiled PLC program
number
Remarks
This command causes PMAC to disable (stop executing) the specified compiled PLC
program or programs. Compiled PLC programs are specified by number, and may be
specified in a command singularly, in a list (separated by commas), or in a range of
consecutively numbered programs. PLC programs can be re-enabled by using the ENABLE
PLCC command.
If a motion or PLC program buffer is open when this command is sent to PMAC, the
command will be entered into that buffer for later execution.
Example
DISABLE PLCC 1
DIS PLCC 5
DIS PLCC 3,4,7
DISABLE PLCC 0..31
See Also
I-variable I5
On-line commands DISABLE PLC, ENABLE PLC, ENABLE PLCC, OPEN PLC,
<CONTROL-D>.
Program commands DISABLE PLC, DISABLE PLCC, ENABLE PLC, ENABLE PLCC