DMIS S I R Entry

Dimensional Measuring Interface Standard
Standard Improvement Request

SIR No.
97-41
DMIS Release
3.0
SIR Type
Enhancement
Severity
Prevents Programming
Status
Resolved
Date Submitted
July 27 1997
Date Validated
July 27 1997
Date In Process

Date Referred

Date Vote Pending

Date Closed
April 12 1998
Action
Significant Changes
Submitted By
Dietmar May
Object Workshops, Inc.
PO Box 597
Whytheville VA 24382
USA
Phone: (540)223-1145
Fax: (540)223-1241
dcmay@object-workshops.com

Problem Topic
TEXT/QUERY: Question on usage.

Problem Description
The only standard way to prompt the operator for input to a variable is using INPUT/, but this lacks several of the features which TEXT/QUERY has.

It would be desirable to modify TEXT/QUERY to allow operator prompting to fill in different types of variables.

References
None

Related SIRs
None

Suggested Resolution
Add an optional parameter to TEXT/QUERY called ,UPDATE. This would indicate that the ~(label)~ is an identifier for a DECL/ variable or QIS symbol. This symbol would be updated with the results of operator prompting.

The syntax becomes:
var_1 can ...
or:QUERY,(label),length,var_2,var_3,var_5

var_5 can be: ,UPDATE
or: does not exist

(label) is an alphanumeric label of up to 10 characters in length.

If UPDATE is specified, this label signifies either a CHAR, INTGR, LONG, REAL, or DOUBLE variable declared using DECL/, or any of the QIS variables described in section 11.2. If var_2 is ~N~, the type of (label) will determine whether a decimal value is accepted. If var_2 is ~N~ and (label) specifies a CHAR variable or a QIS variable, the numeric value obtained from the operator will be converted to a text string. If var_2 is ~A~ or ~AN~, (label) must specify a CHAR variable or a QIS variable. If (label) is of CHAR type, ~length~ must be no greater than ~n~ specified in the DECL/CHAR,n declaration for (label).

Whether UPDATE is specified or not, the response will be output into the output file.

Support Documentation
None


Resolution

Warning!!

The following statement is only a resolution to a Standard Improvement Request (SIR) and is NOT part of the current DMIS standard, nor is it guaranteed to become part of the next revision of the DMIS standard even if voted and accepted by the DMIS National Standards Committee. This resolution is tentative because it may not be incorporated into the next version of the standard, it could be changed prior to the next release, or it could be changed as the result of the "public review and comment" period required for the next version of the standard. If you choose to use this tentative resolution, you do so at your own risk since at this time it is not part of the DMIS standard.

PROMPT

Resolves SIRs 97-41, 97-81, 97-92, 98-20

Function: To prompt the DME operator for a value to be assigned to a high level variable.

Input Format: varnam=PROMPT/’text’ var_1

Output Format: None

Where:

varnam is the name of the previously declared high level variable or array element to which the value is assigned or is a QIS label.

‘text’ is the text string consisting of printable ASCII characters, and must be started and terminated with an apostrophe.

$ signifies that the text extends to the following line.

Note: Use two apostrophes, one before the one required, when an apostrophe is required within a text string.

var_1 can be: ,maxval var_2
or: does not exist

var_2 can be: ,minval
or: does not exist

maxval is the maximum string length if varname is CHAR, or maximum limit if varname is LONG, REAL, DOUBLE or INTGR.

minval is the minimum limit if varname is LONG, REAL, DOUBLE or INTGR.

Examples:

DECL/DOUBLE,dHoleDia
dHoleDia=PROMPT/’Hole diameter ? ’ accept any numeric value
dHoleDia=PROMPT/’Hole diameter ? ’,100 limit input to less than 100
dHoleDia=PROMPT/’Hole diameter ? ’,100,5 limit to range 5-100

DECL/CHAR,cName,40
cName=PROMPT/’Operator name ? ’ accept input up to 40 alphanumeric chars
cName=PROMPT/’Operator name ? ’,20 accept input up to 20 alphanumeric chars

OP(label)=PROMPT/’Enter your employee number: ’
PN(label)=PROMPT/’Enter part identification: ’
PS(label)=PROMPT/’Enter part serial number: ’

Attachments
None

Notes
None

Return to SIR List