Reference Manual

Turbo PMAC/PMAC2 Software Reference
Turbo PMAC Program Command Specification 431
ELSE X-10
See Also:
Program commands IF, ENDIF.
ENABLE PLC
Function: Enable PLC Buffers
Type: Motion program (PROG and ROT), PLC program
Syntax: ENABLE PLC {constant}[,{constant}...]
ENABLE PLC {constant}[..{constant}]
ENA PLC {constant}[,{constant}...]
ENA PLC {constant}[..{constant}]
where:
each {constant} is an integer from 0 to 31 representing the PLC number
This command causes Turbo 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.
Examples:
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, PAUSE PLC, RESUME PLC
ENABLE PLCC
Function: Enable Compiled PLC Programs
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:
each {constant} is an integer from 0 to 31 representing the compiled PLC number
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.
Examples:
ENABLE PLCC 0