Overview

Task

Measure the position and orientation of workpieces.

Possible applications

Programming

The cycles are called with the L CYCLE[..] function and the required parameters are taken directly from the NC program. A more detailed description of the call is provided in the subsections for each of the cycles.

The section below explains the typical programming of a teach-in by the example of the SysMeasCs4.ecy cycle which determines the inclined position of a workpiece by 3 measurements. After the cycle is called, activate the machining coordinate system generated in the cycle to compensate for the inclined position of the workpiece. In addition, the example writes the calculated values of the machining coordinate system to a text file. This can be implemented in the NC program as follows:

Programing Example

prg_example

Teach-in

#VAR

  V.CYC.SysRetX

  V.CYC.SysRetY

  V.CYC.SysRetZ

  V.CYC.SysRetA

  V.CYC.SysRetB

  V.CYC.SysRetC

#ENDVAR

T1 D1

G00 G90 X140 Y-65 Z100

L CYCLE [NAME=SysMeasCs4.ecy @P6=50 @P17=30 @P18=30 \

                      @P39=2 @P41=40 @P42=60 @P44=50]

G00 G91 Z100

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

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

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

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

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

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

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

L CS_BASE_2.bcs

G0 G90 X0 Y0 Z100

... machining ...

#CS OFF

M30

To enable program execution, a configuration file must also be saved as NC program.