# Programming example

## Programing Example

Measure angle in Y axis (C axis)

; touch probe activation

T1 D1

; deactivation of the zero offset

G53

; positioning to the starting point

G0 X0 Y0

G0 Z-10

#VAR

;input parameters

V.L.MeasDistY = 10

V.L.ZeroOffsetNumber = 54

V.L.PositioningX = 10

;output variables

V.CYC.SysRetC

#ENDVAR

;cycle call

L CYCLE [NAME="SysMeasWcs20.ecy"\

@P5=V.L.MeasDistY\

@P7=V.L.ZeroOffsetNumber\

@P17=V.L.PositioningX]

; print result

#FILE NAME [MSG="SysMeasWcsResult.txt"]

#MSG SAVE ["V.CYC.SysRetC =%f", V.CYC.SysRetC]

G0 Z10

M30

Another example for handling SysMeasWcs cycles is contained in the Overview section in the subsection Programming.