Programming example
Programing Example
Measure in X and Z axes
; touch probe activation
T1 D1
; deactivation of the zero offset
G53
; positioning to the starting point
G0 X-50 Y0 Z5
#VAR
; input parameters:
V.L.MeasDistX = 10
V.L.MeasDistZ = -10
V.L.ZeroOffsetNumber = 54
V.L.PositioningX = 20
V.L.PositioningZ = -15
; output variables:
V.CYC.SysRetX
V.CYC.SysRetZ
#ENDVAR
;cycle call
L CYCLE [NAME="SysMeasWcs5.ecy"\
@P4=V.L.MeasDistX\
@P6=V.L.MeasDistZ\
@P7=V.L.ZeroOffsetNumber\
@P17=V.L.PositioningX\
@P19=V.L.PositioningZ]
; print result
#FILE NAME [MSG="SysMeasWcsResult.txt"]
#MSG SAVE ["V.CYC.SysRetX =%f", V.CYC.SysRetX]
#MSG SAVE ["V.CYC.SysRetZ =%f", V.CYC.SysRetZ]
M30
Another example for handling SysMeasWcs cycles is contained in the Overview section in the subsection Programming.