Previous | Next | DMIS Question and Answer
Topic: OBTAIN INTOL value
Conf: DMIS Question and Answer, Msg: 5211
From: Ross Edwards (edwards@yskcorp.com)
Date: 2/20/2004 04:09 PM

Using LKDMIS 5.5, I want to output the phrase "This is out of tolerance" to the terminal (monitor screen) if the actual value of the diameter of the circle is out of tolerance. How would I do this?

Will the example below do this? Every time I run the program, the value for OKNG is zero.

Also, in the example below, what possible values will variable OKNG have? zero if in tolerance? one if out of tolerance? (The statement that contains the ordinals from which OKNG derives a value is TA(1)=TOL/DIAM,0,INTOL; correct? What values can INTOL be?)

T(1)=TOL/DIAM,-0.015,0.015
DECL/LOCAL,DOUBLE,okng

F(112T)=FEAT/CIRCLE,INNER,CART,100,100,-3.25,0,0,1,5
MEAS/CIRCLE,F(112T),7
ENDMES
OUTPUT/FA(112T),TA(1)

okng=OBTAIN/TA(1),3

IF/(okng.eq.(what value goes here???))
TEXT/OUTFIL,'This is out of tolerance'
ENDIF