Programming example

Programing Example

prg_example

Measure angle in Z axis (B axis)

; touch probe activation

T1 D1

 

; deactivation of the zero offset

G53

 

; positioning to the starting point

G0 X0 Y0

G0 Z-15

 

#VAR

  ;input parameters

  V.L.MeasDistX          = 10

  V.L.ZeroOffsetNumber   = 54

  V.L.PositioningZ       = -10

 

  ;output variables

  V.CYC.SysRetB

#ENDVAR

 

;cycle call

L CYCLE [NAME="SysMeasWcs33.ecy"   \

        @P4=V.L.MeasDistX        \

        @P7=V.L.ZeroOffsetNumber \

        @P19=V.L.PositioningZ    ]

 

; print result

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

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

 

G0 Z10

 

M30

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