Reference Manual
PMAC 2 Software Reference
314 PMAC Program Command Specification
ENABLE PLC
Function
Enable PLC Buffer(s)
Type
Motion program (PROG and ROT), PLC program
Syntax
ENABLE PLC {constant}[,{constant}...]
ENA PLC {constant}[,{constant}...]
ENABLE PLC {constant}[..{constant}]
ENA PLC {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 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 no buffer is open when this command is sent to PMAC, it will be executed
immediately as an on-line command.
Example
ENABLE PLC 0
ENABLE PLC 1,2,5
ENABLE PLC 1..16
ENA PLC 7
See Also
I-variable I5
On-line commands ENABLE PLC, DISABLE PLC, <CONTROL-D>
Program command DISABLE PLC
ENABLE PLCC
Function
Enable Compiled PLC Program(s)
Type
Motion program (PROG and ROT), PLC program (uncompiled and compiled)
Syntax
ENABLE PLCC {constant}[,{constant}...]
ENABLE PLCC {constant}[..{constant}]
ENA PLCC {constant}[,{constant}...]
ENA PLCC {constant}[..{constant}]
where:
• {constant} is an integer from 0 to 31 representing the compiled PLC number.
Remarks
This command enables the operation of the specified compiled PLC (PLCC) buffers,
provided I5 is set properly to allow their operation. The programs are specified by
number, and can be used singly, in a list separated by commas, or in a continuous range.
I-variable I5 is a separate master control of PLC program operation. Think of the two
bits of I5 as two master circuit breakers for a house, and the individual PLC and PLCC
enable/disable bits as separate light switches within the house. Both the master breaker
and the switch must be on for the PLC to operate. The breakers and the switches can be
operated independently without affecting the setting of the others.
Example
ENABLE PLCC 0
ENABLE PLCC 1,2,5
ENABLE PLCC 1..16
ENA PLCC 7