Delta Tau GEO BRICK LV Reference Manual

Page of 760
Turbo PMAC/PMAC2 Software Reference
 
Turbo PMAC On-line Command Specification 
 320 
Example: 
EAVERSION 
; Ask Turbo PMAC for firmware version 
1934201 
; Turbo PMAC responds Version 1.934 2
nd
 test revision  
 
; Turbo PMAC2 firmware 
See Also: 
Resetting Turbo PMAC (Talking to Turbo PMAC) 
On-line command DATEVERSIONTYPE 
ENABLE PLC 
Function: 
Enable specified PLC programs. 
Scope: 
Global 
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 
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 PLCPAUSE PLC, or OPEN PLC command. 
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 PLC programs 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 disables the program 
automatically 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 on the download automatically: 
OPEN PLC 7 CLEAR 
P1=P1+1 
CLOSE 
ENABLE PLC 7 
See Also: 
I-variable I5 
On-line commands ENABLE PLCOPEN PLC<CONTROL-D>
Program commands DISABLE PLCENABLE PLC