Current Help System: Tutor Translator (View Core Help)

### Canned Circle Measurement Commands

The cycle_circle Tutor command is translated as an Autocircle command within PC-DMIS. The current workplane is used to set the Autofeature vector. The current workplanerefers to the workplane at the time of translation and may differ from the workplane that used during part program execution.

CYCLE_CIRCLE (,8,x=63,y=-78,z=-3,dm=80)
cycle_circle (WM1,8,x=63,y=-78,z=-3,dm=80) translates to è

With current workplane = ZPLUS (Selpl y)

ASSIGN/E.BADMEAS = 0

CIR1 =AUTO/CIRCLE,SHOWALLPARAMS = YES,SHOWHITS = YES

THEO/<63,-78,-3>,<0,0,1>,80
ACTL/<63,-78,-3>,<0,0,1>,80
TARG/<63,-78,-3>,<0,0,1>
THEO_THICKNESS = 0,RECT,IN,STRAIGHT,LEAST_SQR,ONERROR = NO,$
AUTO MOVE = BOTH,DISTANCE = 0,RMEAS = None,None,None,$
READ POS = NO,FIND HOLE = NO,REMEASURE = NO,$
NUMHITS = 8,INIT = 1,PERM = 0,SPACER = 0,PITCH = 0,$
START ANG = 0,END ANG = 360,DEPTH = 0,$
ANGLE VEC = 1,0,0
MEAS/CIRCLE
HIT/BASIC,<63,-78,-43>,<0,0,1>,<63,-78,-43>
HIT/BASIC,<63,-49.7157,-31.2843>,<0,-0.7071,0.7071>,<63,-49.7157,-31.2843>
HIT/BASIC,<63,-38,-3>,<0,-1,0>,<63,-38,-3>
HIT/BASIC,<63,-49.7157,25.2843>,<0,-0.7071,-0.7071>,<63,-49.7157,25.2843>
HIT/BASIC,<63,-78,37>,<0,0,-1>,<63,-78,37>
HIT/BASIC,<63,-106.2843,25.2843>,<0,0.7071,-0.7071>,<63,-106.2843,25.2843>
HIT/BASIC,<63,-118,-3>,<0,1,0>,<63,-118,-3>
HIT/BASIC,<63,-106.2843,-31.2843,0>,<0.7071,0.7071,63>,-106.2843,-31.2843>
ENDMEAS/

ASSIGN/E.WM2 = E.WM1
ASSIGN/E.WM1 = TUTORELEMENT("CIR1")
…
… Evaluation commands.

…

cycle_circle (WM2,6,x=0,y=0,z=-23,dm=30) translates to è

With current workplane = XPLUS (Selpl y)

ASSIGN/E.BADMEAS = 0

CIR3 =AUTO/CIRCLE,SHOWALLPARAMS = YES,SHOWHITS = YES

THEO/<0,0,-23>,<1,0,0>,30
ACTL/<0,0,-23>,<1,0,0>,30
TARG/<0,0,-23>,<1,0,0>
THEO_THICKNESS = 0,RECT,IN,STRAIGHT,LEAST_SQR,ONERROR = NO,$
AUTO MOVE = BOTH,DISTANCE = 0,RMEAS = None,None,None,$
READ POS = NO,FIND HOLE = NO,REMEASURE = NO,$
NUMHITS = 6,INIT = 1,PERM = 0,SPACER = 0,PITCH = 0,$
START ANG = 0,END ANG = 360,DEPTH = 0,$
ANGLE VEC = 0,0,-1
MEAS/CIRCLE
HIT/BASIC,<0,0,-38>,<0,0,1>,<0,0,-38>
HIT/BASIC,<0,12.9904,-30.5>,<0,-0.866,0.5>,<0,12.9904,-30.5>
HIT/BASIC,<0,12.9904,-15.5>,<0,-0.866,-0.5>,<0,12.9904,-15.5>
HIT/BASIC,<0,0,-8>,<0,0,-1>,<0,0,-8>
HIT/BASIC,<0,-12.9904,-15.5>,<0,0.866,-0.5>,<0,-12.9904,-15.5>
HIT/BASIC,<0,-12.9904,-30.5>,<0,0.866,0.5>,<0,-12.9904,-30.5>
ENDMEAS/

ASSIGN/E.WM2 = E.WM1
ASSIGN/E.WM1 = TUTORELEMENT("CIR3")
ASSIGN/E.WM2 = E.WM1
…
… Evaluation commands.
…

cycle_circle (MEMORY[1],4,x=51,y=0,z=-13,dm=16) translates to è

With current workplane = XPLUS (Selpl y)

ASSIGN/E.BADMEAS = 0

CIR4 =AUTO/CIRCLE,SHOWALLPARAMS = YES,SHOWHITS = YES

THEO/<51,0,-13>,<1,0,0>,16
ACTL/<51,0,-13>,<1,0,0>,16
TARG/<51,0,-13>,<1,0,0>
THEO_THICKNESS = 0,RECT,IN,STRAIGHT,LEAST_SQR,ONERROR = NO,$
AUTO MOVE = BOTH,DISTANCE = 0,RMEAS = None,None,None,$
READ POS = NO,FIND HOLE = NO,REMEASURE = NO,$
NUMHITS = 4,INIT = 1,PERM = 0,SPACER = 0,PITCH = 0,$
START ANG = 0,END ANG = 360,DEPTH = 0,$
ANGLE VEC = 0,0,-1
MEAS/CIRCLE
HIT/BASIC,<51,0,-21>,<0,0,1>,<51,0,-21>
HIT/BASIC,<51,8,-13>,<0,-1,0>,<51,8,-13>
HIT/BASIC,<51,0,-5>,<0,0,-1>,<51,0,-5>
HIT/BASIC,<51,-8,-13>,<0,1,0>,<51,-8,-13>
ENDMEAS/

ASSIGN/E.WM2 = E.WM1
ASSIGN/E.WM1 = TUTORELEMENT("CIR4")
ASSIGN/E.MEMORY[1] = E.WM1
…
… Evaluation commands.
…

cycle_circle (,8,z=-3,dm=80,y=-78,x=63) translates to è

With current workplane = YPLUS (Selpl z)

ASSIGN/E.BADMEAS = 0

CIR5 =AUTO/CIRCLE,SHOWALLPARAMS = YES,SHOWHITS = YES

THEO/<63,-78,-3>,<0,1,0>,80
ACTL/<63,-78,-3>,<0,1,0>,80
TARG/<63,-78,-3>,<0,1,0>
THEO_THICKNESS = 0,RECT,IN,STRAIGHT,LEAST_SQR,ONERROR = NO,$
AUTO MOVE = BOTH,DISTANCE = 0,RMEAS = None,None,None,$
READ POS = NO,FIND HOLE = NO,REMEASURE = NO,$
NUMHITS = 8,INIT = 1,PERM = 0,SPACER = 0,PITCH = 0,$
START ANG = 0,END ANG = 360,DEPTH = 0,$
ANGLE VEC = 0,0,-1
MEAS/CIRCLE
HIT/BASIC,<63,-78,-43>,<0,0,1>,<63,-78,-43
HIT/BASIC,<63,-49.7157,-31.2843>,<0,-0.7071,0.7071>,<63,-49.7157,-31.2843>
HIT/BASIC,<63,-38,-3>,<0,-1,0>,<63,-38,-3>
HIT/BASIC,<63,-49.7157,25.2843>,<0,-0.7071,-0.7071>,<63,-49.7157,25.2843>
HIT/BASIC,<63,-78,37>,<0,0,-1>,<63,-78,37>
HIT/BASIC,<63,-106.2843,25.2843>,<0,0.7071,-0.7071>,<63,-106.2843,25.2843>
HIT/BASIC,<63,-118,-3>,<0,1,0>,<63,-118,-3>
HIT/BASIC,<63,-106.2843,-31.2843>,<0,0.7071,0.7071>,<63,-106.2843,-31.2843>
ENDMEAS/

ASSIGN/E.WM2 = E.WM1
ASSIGN/E.WM1 = TUTORELEMENT("CIR5")
…
… Evaluation commands.
…

cycle_circle (,num,x=xx,y=2*yy,z=zz,dm=50) translates to è

With current workplane = YPLUS (Selpl z)

ASSIGN/E.BADMEAS = 0

CIR6 =AUTO/CIRCLE,SHOWALLPARAMS = YES,SHOWHITS = YES

THEO/<E.XX,2*E.YY,E.ZZ>,<0,1,0,50>
ACTL/<63,-78,-3>,<0,1,0,50>
TARG/<E.XX,2*E.YY,E.ZZ>,<0,1,0>
THEO_THICKNESS = 0,RECT,IN,STRAIGHT,LEAST_SQR,ONERROR = NO,$
AUTO MOVE = BOTH,DISTANCE = 0,RMEAS = None,None,None,$
READ POS = NO,FIND HOLE = NO,REMEASURE = NO,$
NUMHITS = E.NUM,INIT = 1,PERM = 0,SPACER = 0,PITCH = 0,$
START ANG = 0,END ANG = 360,DEPTH = 0,$ANGLE VEC = 0,0,-1
MEAS/CIRCLE
HIT/BASIC,<0,0,-25>,<0,0,1>,<0,0,-25>
HIT/BASIC,<-25,0,0>,<1,0,0>,<-25,0,0>
HIT/BASIC,<0,0,25>,<0,0,-1>,<0,0,25>
HIT/BASIC,<25,0,0>,<-1,0,0>,<25,0,0>
ENDMEAS/

ASSIGN/E.WM2 = E.WM1
ASSIGN/E.WM1 = TUTORELEMENT("CIR6")

CS8 =CALLSUB/TUTOR_OUTPUT,TUTORSUB.PRG:E.WM1,E.OFMT,E.TH,"WM1",,

COMMENT/DOC,NO,================================================
,= selpl x
WORKPLANE/E.ZPLUS
ASSIGN/E.SELPL = E.ZPLUS
…
… Evaluation commands.
…

cycle_circle (WM2,6,x=MEA[1]|x,y=MEA[1]|y,z=-23,dm=30) translates to è

With current workplane = ZPLUS (Selpl x)

ASSIGN/E.BADMEAS = 0

CIR7 =AUTO/CIRCLE,SHOWALLPARAMS = YES,SHOWHITS = YES

THEO/<E.MEA[1].X,E.MEA[1].Y,-23>,<0,0,1>,30
ACTL/<63,-78,-23>,<0,0,1>,30
TARG/<E.MEA[1].X,E.MEA[1].Y,-23>,<0,0,1>
THEO_THICKNESS = 0,RECT,IN,STRAIGHT,LEAST_SQR,ONERROR = NO,$
AUTO MOVE = BOTH,DISTANCE = 0,RMEAS = None,None,None,$
READ POS = NO,FIND HOLE = NO,REMEASURE = NO,$
NUMHITS = 6,INIT = 1,PERM = 0,SPACER = 0,PITCH = 0,$
START ANG = 0,END ANG = 360,DEPTH = 0,$
ANGLE VEC = 1,0,0
MEAS/CIRCLE
HIT/BASIC,<15,0,-23>,<-1,0,0>,<15,0,-23>
HIT/BASIC,<7.5,12.9904,-23>,<-0.5,-0.866,0>,<7.5,12.9904,-23>
HIT/BASIC,<-7.5,12.9904,-23>,<0.5,-0.866,0>,<-7.5,12.9904,-23>
HIT/BASIC,<-15,0,-23>,<1,0,0>,<-15,0,-23>
HIT/BASIC,<-7.5,-12.9904,-23>,<0.5,0.866,0>,<-7.5,-12.9904,-23>
HIT/BASIC,<7.5,-12.9904,-23>,<-0.5,0.866,0>,<7.5,-12.9904,-23>
ENDMEAS/

ASSIGN/E.WM2 = E.WM1
ASSIGN/E.WM1 = TUTORELEMENT("CIR7")
ASSIGN/E.WM2 = E.WM1
…
… Evaluation commands.
…

cycle_circle (MEMORY[1],4,x=51,y=0,z=-13,dm=16,10.0,30.0) translates to è

With current workplane = ZPLUS (Selpl x)

ASSIGN/E.BADMEAS = 0

CIR8 =AUTO/CIRCLE,SHOWALLPARAMS = YES,SHOWHITS = YES

THEO/<51,0,-13>,<0,0,1>,16
ACTL/<51,0,-13>,<0,0,1>,16
TARG/<51,0,-13>,<0,0,1>
THEO_THICKNESS = 0,RECT,IN,STRAIGHT,LEAST_SQR,ONERROR = NO,$
AUTO MOVE = BOTH,DISTANCE = 0,RMEAS = None,None,None,$
READ POS = NO,FIND HOLE = NO,REMEASURE = NO,$
NUMHITS = 4,INIT = 1,PERM = 0,SPACER = 0,PITCH = 0,$
START ANG = 10,END ANG = 30,DEPTH = 0,$
ANGLE VEC = 1,0,0
MEAS/CIRCLE
HIT/BASIC,<58.8785,1.3892,-13>,<-0.9848,-0.1736,0>,<58.8785,1.3892,-13>
HIT/BASIC,<58.6639,2.2944,-13>,<-0.958,-0.2868,0>,<58.6639,2.2944,-13>
HIT/BASIC,<58.3457,3.1686,-13>,<-0.9182,-0.3961,0>,<58.3457,3.1686,-13>
HIT/BASIC,<57.9282,4,-13>,<-0.866,-0.5,0>,<57.9282,4,-13>
ENDMEAS/

ASSIGN/E.WM2 = E.WM1
ASSIGN/E.WM1 = TUTORELEMENT("CIR8")
ASSIGN/E.MEMORY[1] = E.WM1
…
… Evaluation commands.
…

cycle_circle (MEMORY[1],4,x=51,y=0,z=-13,dm=16,zz,yy) translates to è

With current workplane = ZPLUS (Selpl x)

CIR9 =AUTO/CIRCLE,SHOWALLPARAMS = YES,SHOWHITS = YES

THEO/<51,0,-13>,<0,0,1>,16
ACTL/<51,0,-13>,<0,0,1>,16
TARG/<51,0,-13>,<0,0,1>
THEO_THICKNESS = 0,RECT,IN,STRAIGHT,LEAST_SQR,ONERROR = NO,$
AUTO MOVE = BOTH,DISTANCE = 0,RMEAS = None,None,None,$
READ POS = NO,FIND HOLE = NO,REMEASURE = NO,$
NUMHITS = 4,INIT = 1,PERM = 0,SPACER = 0,PITCH = 0,$
START ANG = E.ZZ,END ANG = E.YY,DEPTH = 0,$
ANGLE VEC = 1,0,0
MEAS/CIRCLE
HIT/BASIC,<59,0,-13>,<-1,0,0>,<59,0,-13>
HIT/BASIC,<51,8,-13>,<0,-1,0>,<51,8,-13>
HIT/BASIC,<43,0,-13>,<1,0,0>,<43,0,-13>
HIT/BASIC,<51,-8,-13>,<0,1,0>,<51,-8,-13>
ENDMEAS/

ASSIGN/E.WM2 = E.WM1
ASSIGN/E.WM1 = TUTORELEMENT("CIR9")
ASSIGN/E.MEMORY[1] = E.WM1
…
… Evaluation commands.
…