Delta Tau GEO BRICK LV User Manual

Page of 440
 
Turbo PMAC User Manual 
382
 
Writing and Executing PLC Programs
 
Running Compiled PLCs 
The downloader automatically activates the compiled PLCs after downloading.  If I5 is set to permit these 
programs to run, they will be executing immediately after download.  Compiled PLC programs can be 
enabled and disabled individually or in groups with the ENABLE PLCC and DISABLE PLCC 
commands.  These can be given as on-line commands, or as buffered commands within motion programs, 
uncompiled PLC programs, or compiled PLC programs.  A PLC program can even disable itself.  The 
only limitation is that you should not use the DISABLE PLCC command from within either PLC 0 or 
PLCC 0; they cannot be guaranteed to work here. 
On power-up/reset, all existing PLC programs, compiled and uncompiled, are enabled individually.  If I5 
was saved to a value that permits a given PLC program to run, it will be ready to run on power-up. PLC 1 
will be the first PLC to execute after power-up/reset (before even PLCC 1).  Many people use this as the 
reset PLC, executing once and disabling itself to prevent repeated execution.  This PLC program can be 
used to prevent other PLC programs from executing immediately on power up with DISABLE PLC and 
DISABLE PLCC commands.  In this way, power up can be done with only a choice of PLC programs 
enabled. 
Sending the <CONTROL-D> character is a quick way of disabling all PLC programs, compiled and 
interpreted. 
Note:  
It is never advisable to have PLC 0 or PLCC 0 running on power-up.  Therefore, 
do not save an I5 value of 1 or 3.  Instead, save I5 as 2; then in the PLC 1 reset 
PLC use a command sequence like: 
DISABLE PLCC 0 
DISABLE PLC 0 
I5=3 
The PLC 0 and/or PLCC 0 can then be enabled as needed.