Get key 230, Get id [r] 234 [r – Industrial Data Systems IDS Scale Basic User Manual
Page 25

Scale Basic 4.2E
Reference
The prompt is displayed for 0.7 seconds, then if the register is non-zero, the register data is
displayed. If the register data is zero, then the prompt is displayed until the operator enters
data. Condition codes Positive, Negative, and Zero are set to reflect data input. Press the
Clear key to abort data entry and leave the register unchanged.. NOTE: use the Dp adjust
instruction for data entry with decimal points.
Example: get the percent of moisture. The Get data instruction automatically prompts “EntEr”:
Set, Memory1, 0
Memory1=0. The “EntEr” prompt remains until
data entry.
Dp adjust, Memory1, 2
Set the decimal position of Memory register 1
Get data, Memory1
Get the kg/liter into Memory1
To use a prompt other than ENTER, use the prompt instruction.
Dp adjust, Memory1, 2
Set the decimal position of Memory register 1
Prompt,
“PERCEN”
display
“PErcEn”
Get data, Memory1
get the percentage.
An alternative method to prompt for data uses a time delay to display the prompt, then the
Get data instruction uses it’s default “ENTER” prompt. Assume Timer 1 is configured for 1
second delay:
Dp adjust, Memory1, 2
Set the decimal position of Memory register 1
Prompt, PERCEN
display “PErcEn” on the display
Timer on, 1
turn on timer 1 (1 seconds delay).
Loop1
While
timer
1
on
If,
Timer1
looping> Next1 End if End while Get data, Memory1 get setpoint. Prompt is replaced by “EntEr”. End End of function Get key 230 Purpose: stop processing until the operator presses a key. acknowledgment before proceeding. Prompt, START display “StArt” Get key wait for any key-press Get id [r] 234 [r] Purpose: use the number in register [r] to open an Id in memory. the Id is not found. Set, Memory1, 25
Remarks: this instruction is usually used when displaying a message that requires operator
Example:
Remarks: Condition code Positive is set true if the Id is found, condition code Zero is set true if
Example: