Context Variable ($P_Teccycle) - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Motion synchronous actions
10.5 Technology cycles
10.5.1

Context variable ($P_TECCYCLE)

Function
The $P_TECCYCLE variable 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
parts program cycle.
Interpreting context variable
The $P_TECCYCLE system variable allows context-specific interpretation of program
sections to be controlled in technology cycles if
IF $P_TECCYCLE==TRUE
otherwise
ELSE
Note
A block with incorrect or unauthorized program syntax as well as unknown value
assignments also result in an alarm message in the parts program cycle.
Example of program sequence with query of $P_TECCYCLE in the technology cycle
PROC CYCLE
N10 DEF REAL "value1"
N15 G01 X100 F1000
N20 IF $P_TECCYCLE==TRUE
N25 "Program sequence for technology cycle (without variable value1)"
N30 ELSE
N35 "Program sequence for parts program cycle (variable value1 is present)"
ENDIF
10-70
Program sequence for technology cycle in
synchronized action
Program sequence for parts program cycle
;is read over in the technology cycle
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents