Motion synchronous actions
10.5 Technology cycles
Job planning
622 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
10.5.1 Context variable ($P_TECCYCLE)
Function
The $P_TECCYCLE variables can be used to divide programs into synchronized action
programs and preprocessing programs. It is then possible to process blocks or program
sequences that are written correctly (in terms of syntax) or alternatively process them as the
part program cycle.
Interpreting context variable
The $P_TECCYCLE system variable allows context-specific interpretation of program
sections to be controlled in technology cycles:
IF $P_TECCYCLE==TRUE
... ; Program sequence for technology cycle in synchronized
action
ELSE
... ; Program sequence for part program cycle
ENDIF
Note
A block with incorrect or unauthorized program syntax as well as unknown value
assignments also result in an alarm message in the part program cycle.
Example
Program sequence with interrogation of $P_TECCYCLE in the technology cycle:
Program code Comments
PROC CYCLE
N10 DEF REAL VALUE1 ; Is read over in the technology cycle.
N15 G01 X100 F1000
N20 IF $P_TECCYCLE==TRUE
... ; Program sequence for technology cycle (without variable VALUE1)
N30 ELSE
... ; Program sequence for part program cycle (variable VALUE1 is
available)
N40 ENDIF