10ć20, 10 inquire – Rockwell Automation 1775-S4B,D17756.5.3 User Manual SCANNER/MSG HND User Manual
Page 123

Using Commands in Report Generation
Chapter 10
10Ć20
If you enter:
US_4==(US_4+$N4:25)
The 1775-S4B scanner adds the current value at logical address N4:25 to
the current value in user symbol US_4 and places the result in
interprocedural user symbol
Definition: To make the 1775-S4B scanner wait for data and a carriage
return to be entered before executing the rest of the procedure.
Abbreviation: IN
Format: IN
Description: The inquire command causes the 1775-S4B scanner to wait
for you to enter a value followed by a carriage return from the data
terminal before executing the rest of the procedure. The incoming value
from the data terminal is assigned to the user symbol. The !format specifies
the format that the 1775-S4B scanner stores incoming data (table 1O.B). If
you do not specify a format, the 1775-S4B scanner stores the incoming
data in decimal format. The data specifier allows you to display a message
which prompts the operator to input data. You can use the same data
specifiers as with the print command. You can enter \X with the string to
have the input data display on the same line.
Table 10.B
Inquire Format Specification
Format Characters
Format Description
IN
IN
IN
IN
IN
IN
Decimal
Decimal
Binary
Hexadecimal
Octal
String
When you are using the inquire commands for reading and/or writing data,
the 1775-S4B scanner waits until all the data is typed in and [ENTER] is
pressed before continuing execution. You may want to condition the
inquire command with an if command so that the 1775-S4B scanner only
executes the inquire command when someone is available to respond.
10.3.10
Inquire