Right now I have an operator comment that will tell me the number of dimensions out of tolerance. Is there a way to display the dimension IDs that measure out of tolerance into an operator comment?
DIM ID Out of Tolerance in a Comment
Collapse
X
-
Yes, you would have to program code for each ID to display a comment if the out of tolerance is exceeded. How many IDs are you talking about?
Code:DIM [COLOR=#3498db]LOC1[/COLOR]= LOCATION OF CIRCLE CIR1 UNITS=IN ,$ GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO AX NOMINAL +TOL -TOL MEAS DEV [COLOR=#3498db]OUTTOL[/COLOR] [COLOR=#3498db]D[/COLOR] 1.0000 0.0020 0.0020 1.0050 0.0050 0.0030 -------> END OF DIMENSION LOC1 ASSIGN/[COLOR=#27ae60]V1[/COLOR]=[COLOR=#3498db]LOC1.D.OUTTOL[/COLOR] IF/[COLOR=#27ae60]V1[/COLOR]>0 COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO, "Circle 1 ID is out of tolerance by "+[COLOR=#27ae60]V1[/COLOR] END_IF/
Last edited by acgarcia; 12-31-2020, 03:30 PM.
- 3 likes
-
If there are multiple locations to perform this function. I've had luck building the full structure, assigning 2-3 variables above the group command to handle the output name (Consider Positional output)
1 assignment is the name :LOC1
2 assignment is the AX : DF <--This is your main ID: M,X,D.... whatever the primary axis you want to check on
3 assignment is additional AX:TP <--In the event of a second axis in 1 output requiring check
start_group
assign1 + "." +assign2 + "." + outtol
Test if o/tol
if no perform test2 for TP
if no, do nothing and carry on
if test1 or test2 are yes - activate comment
end group
close the group and give it a generic name (outtol_finder_#)
each copy you make just be sure to update the group# your assignments will be updated (even when redundant) by the last input it has received.
- 1 like
Comment
-
This is a nice suggestion though I would use a subroutine at the end of your program lead by a PROGRAM END command so that it doesn't execute without being called. So instead of multiple group commands it will be a call to the same subroutine code. Maintenance in the future will be less of a headache too.
-
You've already done most of the work just copy and paste that in your subroutine and tweak whatever else is left (shouldn't be much). Don't have my dongle license on me today... I'll post something when I get it back.Last edited by Kp61dude!; 01-05-2021, 11:06 AM.
Related Topics
Collapse
-
by keegoI'm writing a program to measure ring gages of various sizes. How can I, at the start of the program, have it ask the user to input the nominal diameter...
-
Channel: PC-DMIS for CMMs
10-19-2007, 09:03 AM -
-
good morning !
I am just starting to try out comments and such.
I have a yes/no report/comment in a prog but would like to know how to...-
Channel: PC-DMIS for CMMs
02-27-2013, 06:23 AM -
-
I have sample below code with ASSIGN:
Code:$$ NO, ASSIGN 70% of drawing tolerance ASSIGN/[COLOR=#FF0000]V0[/COLOR]=0.7
-
Channel: PC-DMIS Code Samples
07-16-2016, 03:16 PM -
-
by kalepitohello everybody
my english is not very good
a have this doubt
I would like to display a comment in the report, only when a feature...-
Channel: PC-DMIS for CMMs
09-28-2012, 05:22 PM -
-
hello,
I am having trouble getting if/then statements to work for me.
In excel it would look like this:
=IF((A1>0.001),"PASS","FAIL")...-
Channel: PC-DMIS for CMMs
03-07-2007, 02:12 PM -
Comment