Reference Manual
PMAC 2 Software Reference
226 PMAC On-Line Command Specification
Remarks
This command causes PMAC to enable (start executing) the specified uncompiled PLC
program or programs at the top of the program. Execution of the PLC program may have
been stopped with the DISABLE PLC, PAUSE PLC, or OPEN PLC command.
PLC programs are specified by number, and may be used singularly in this command, in a list
(separated by commas), or in a range of consecutively numbered programs.
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.
I-variable I5 must be in the proper state to allow the PLC program(s) specified in this
command to execute.
Note:
This command must be used to start operation of a PLC program after
it has been entered or edited, because the OPEN PLC command
automatically disables the program, and CLOSE does not re-enable it.
Example
ENABLE PLC 1
ENA PLC 2,7
ENABLE PLC 3,21
ENABLE PLC 0..31
This example shows the sequence of commands to download a very simple PLC program and have it
enabled automatically on the download:
OPEN PLC 7 CLEAR
P1=P1+1
CLOSE
ENABLE PLC 7
See Also
I-variable I5
On-line commands DISABLE PLC, OPEN PLC, PAUSE PLC, RESUME PLC, LIST
PLC, <CONTROL-D>.
Program commands DISABLE PLC, ENABLE PLC, PAUSE PLC, RESUME PLC
ENABLE PLCC
Function
Enable specified compiled PLC program(s).
Scope
Global
Syntax
ENABLE PLCC {constant}[,{constant}]
ENA PLCC {constant}[,{constant}]
ENABLE PLCC {constant}..{constant}
ENA PLCC {constant}..{constant}
where:
• {constant} is an integer from 0 to 31, representing the program number
Remarks
This command causes PMAC to enable (start executing) the specified compiled PLC
program or programs. Compiled PLC programs are specified by number, and may be used
singularly in this command, in a list (separated by commas), or in a range of consecutively
numbered programs.
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.
I-variable I5 must be in the proper state to allow the compiled PLC program(s) specified in
this command to execute.