Programming example

Programming Example

Centre point of a hole circle

; touch probe activation
T1 D1
 
; deactivation of the zero offset
G53
 
; positioning to the starting point
G0 X0 Y0 Z5
 
#VAR
  ;input parameters
  V.L.HoleDiameter       = 30
  V.L.ZeroOffsetNumber   = 54
  V.L.PositioningZ       = -15
  V.L.HoleCircleDiameter = 50
  V.L.NumberOfHoles      = 3
  V.L.CrossOver          = 10
 
  ;output variables
  V.CYC.SysRetX
  V.CYC.SysRetY
#ENDVAR
 
;cycle call
L CYCLE [NAME="SysMeasWcs31.ecy"      \
        @P2=V.L.HoleDiameter        \
        @P7=V.L.ZeroOffsetNumber    \
        @P22=V.L.PositioningZ       \
        @P29=V.L.HoleCircleDiameter \
        @P30=V.L.NumberOfHoles      \
        @P33=V.L.CrossOver          ]
 
; print result
#FILE NAME [MSG="SysMeasWcsResult.txt"]
#MSG SAVE ["V.CYC.SysRetX =%f", V.CYC.SysRetX]
#MSG SAVE ["V.CYC.SysRetY =%f", V.CYC.SysRetY]
 
M30

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