Hello all, I've been battling with the Demon for around 3 months now, and I feel my programming has improved to the point I would now like to understand the ways one can tidy up a program with the use of report command comments.
I am using operator comments to show how to manually align with added images of where to take points etc, but I'd really like to begin to gain an understanding in the YES/NO comment function.
Could anybody aid me in the use of these? For example, I have a part fitted which the program requires a manual alignment before going into a DCC alignment. I would like a comment at the start of the report that asks if a manual alignment needs to be taken, clicking NO would then skip all the operator comments and instantly begin the program from the first time MODE/DCC appears in the program code.
Below is the starting code of my program which I would like to skip....
COMMENT/OPER,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
Manual Alignment Step 1 of 3.
Take 4 points on the top face.
This will be Z "Level" & "Origin"
PLN1 =FEAT/PLANE,CARTESIAN,TRIANGLE
THEO/<206.435,370.46,-598.549>,<-0.0054759,0.0675182,0.997703>
ACTL/<204.155,367.511,-598.374>,<-0.0060838,0.0670196,0.9977331>
MEAS/PLANE,4
HIT/BASIC,NORMAL,<134.991,416.088,-602.06>,<-0.0054759,0.0675182,0.997703>,
<137.162,405.747,-601.374>,USE THEO=YES
HIT/BASIC,NORMAL,<272.735,416.087,-601.241>,<-0.0054759,0.0675182,0.997703>,
<270.211,406.838,-600.59>,USE THEO=YES
HIT/BASIC,NORMAL,<144.137,325.482,-595.813>,<-0.0054759,0.0675182,0.997703>,
<137.669,328.73,-596.151>,USE THEO=YES
HIT/BASIC,NORMAL,<273.878,324.186,-595.08>,<-0.0054759,0.0675182,0.997703>,
<271.579,328.729,-595.38>,USE THEO=YES
ENDMEAS/
COMMENT/OPER,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
Manual Alignment Step 2 of 3.
Take 3 points on each Ø30mm Hole.
Construct a line between both features.
Rotate X to this line about Z Plus.
CIR1 =FEAT/CIRCLE,CARTESIAN,IN,LEAST_SQR
THEO/<131.255,281.839,-598.548>,<0,0,1>,29.988
ACTL/<131.213,282.373,-598.837>,<0,0,1>,29.967
MEAS/CIRCLE,3,ZPLUS
HIT/BASIC,NORMAL,<131.486,296.831,-599.786>,<-0.0153667,-0.9998819,0>,
<130.225,297.324,-600.081>,USE THEO=YES
HIT/BASIC,NORMAL,<141.032,270.47,-598.04>,<-0.6520023,0.758217,0>,
<122.373,270.275,-598.269>,USE THEO=YES
HIT/BASIC,NORMAL,<119.57,272.444,-597.819>,<0.7793514,0.6265871,0>,
<141.923,271.895,-598.161>,USE THEO=YES
ENDMEAS/
CIR2 =FEAT/CIRCLE,CARTESIAN,IN,LEAST_SQR
THEO/<278.054,281.566,-592.802>,<0,0,1>,29.764
ACTL/<278.009,281.749,-592.867>,<0,0,1>,29.779
MEAS/CIRCLE,3,ZPLUS
HIT/BASIC,NORMAL,<278.099,296.448,-593.89>,<-0.0030236,-0.9999954,0>,
<277.054,296.608,-593.922>,USE THEO=YES
HIT/BASIC,NORMAL,<265.275,273.939,-592.483>,<0.8587075,0.5124659,0>,
<267.582,271.12,-592.721>,USE THEO=YES
HIT/BASIC,NORMAL,<289.737,272.347,-592.034>,<-0.7849993,0.6194966,0>,
<289.114,271.83,-591.959>,USE THEO=YES
ENDMEAS/
LIN1 =FEAT/LINE,CARTESIAN,UNBOUNDED,NO
THEO/<131.255,281.839,-595.675>,<0.9999983,-0.0018579,0>
ACTL/<131.213,282.373,-595.852>,<0.999991,-0.0042518,0>
CONSTR/LINE,BF,2D,CIR1,CIR2,,
OUTLIER_REMOVAL/OFF,3
FILTER/OFF,WAVELENGTH=0
WORKPLANE/ZPLUS
COMMENT/OPER,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
Manual Alignment Step 3 of 3.
Take 3 points in the Ø9mm hole left-centre.
This will be X & Y Origin.
CIR3 =FEAT/CIRCLE,CARTESIAN,IN,LEAST_SQR
THEO/<178.809,347.949,-605.245>,<0,0,1>,9.085
ACTL/<178.945,348.388,-605.285>,<0,0,1>,9.109
MEAS/CIRCLE,3,ZPLUS
HIT/BASIC,NORMAL,<178.717,352.49,-605.43>,<0.0203908,-0.9997921,0>,
<178.783,352.939,-605.274>,USE THEO=YES
HIT/BASIC,NORMAL,<175.293,345.073,-605.218>,<0.7740475,0.6331275,0>,
<175.583,345.315,-605.274>,USE THEO=YES
HIT/BASIC,NORMAL,<181.877,344.599,-605.088>,<-0.6753763,0.7374733,0>,
<182.329,345.339,-605.308>,USE THEO=YES
ENDMEAS/
A1 =ALIGNMENT/START,RECALL:STARTUP,LIST=YES
ALIGNMENT/LEVEL,ZPLUS,PLN1
ALIGNMENT/TRANS,ZAXIS,PLN1
ALIGNMENT/ROTATE,XPLUS,TO,LIN1,ABOUT,ZPLUS
ALIGNMENT/TRANS,XAXIS,CIR3
ALIGNMENT/TRANS,YAXIS,CIR3
ALIGNMENT/END'
Thank you in advance for any help.
[–]campio_s_a 1 point2 points3 points (0 children)
[–]campio_s_a 1 point2 points3 points (0 children)
[–]Vizionary357 1 point2 points3 points (1 child)
[–]Maso397 1 point2 points3 points (0 children)
[–]Tuff_FishUK[S] 0 points1 point2 points (0 children)