Reference Manual

Turbo PMAC/PMAC2 Software Reference
Turbo PMAC On-line Command Specification 321
ENABLE PLCC
Function: Enable specified compiled PLC programs.
Scope: Global
Syntax: ENABLE PLCC {constant}[,{constant}]
ENA PLCC {constant}[,{constant}]
PLCC {constant}..{constant}
ENA PLCC {constant}..{constant}
where:
{constant} is an integer from 0 to 31, representing the program number
This command causes Turbo 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 Turbo 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 programs specified in this command
to execute.
Example:
ENABLE PLCC 1
ENA PLCC 2,7
ENABLE PLCC 3,21
ENABLE PLCC 0..31
See Also:
I-variable I5
On-line commands DISABLE PLC, DISABLE PLCC, ENABLE PLC, OPEN PLC, <CONTROL-D>.
Program commands DISABLE PLC, DISABLE PLCC, ENABLE PLC, ENABLE PLCC
ENDGATHER
Function: Stop data gathering.
Scope: Global
Syntax: ENDGATHER
ENDG
This command causes data gathering to cease. Data gathering may start up again (without overwriting
old data) with another GATHER command.
Usually, this command is used in conjunction with the data gathering and plotting functions of the Turbo
PMAC Executive Program.
If a motion or PLC program buffer is open when this command is sent to Turbo PMAC, the command
will be entered into that buffer for later execution.
Examples:
GAT B1R ; Start gathering and run program 1
ENDG ; Stop gathering -- give this command when moves of interest are done
OPEN PROG2 CLEAR
X10
DWELL1000
CMD"GATHER" ; Program issues start command here
X20 ; Move of interest
DWELL50
CMD"ENDG" ; Program issues stop command here
CLOSE