Rockwell Automation 1398-PDM-xxx IQ Master Version 3.2.4 for IA-2000 and IQ-5000 Positioning Drive Modules, IQ-55 User Manual

Page 279

Advertising
background image

Language Reference • Reference

257

Publication 1398-PM601A-EN-P — October 2000

WORDS

precision

precision determines the number of places (1 to 4) after the deci-
mal point. The maximum precision that will be permitted is 4. If
field and precision are not included, the default precision is 2.
precision does not apply when printing flag variables.

F

If F is used after precision, AND precision is set to 0, the variable
will be printed as a fraction if the variable contains a fractional
part. If the variable is a whole number, it will be printed as a dec-
imal number even if F is specified. If F is used with precision
from 1 to 4, the variable will be printed as a fraction unless the
fractional part can be expressed as a decimal number. For exam-
ple, 5 1/3 would be printed as 5 1/3 rather than 5.3333, but 5 1/4
would be printed as 5.25. Does not apply when printing flag vari-
ables.

min,max

min and max can be used to specify the limits of the input that
will be accepted by the READ statement. min and max must be
integer values. If the value input is not within the limits, a mes-
sage will appear and a new value must be entered. min and max
should not be used with any device other than the Allen-Bradley
Operator Terminal.

Remarks

Unlike the PRINT statement, there must be a comma between the variable and any
other arguments that come before it (the variable is not optional in a READ statement).

Control codes may be printed in the message portion of a READ statement. See
PRINT for more information.

If the SHOW option is specified when READing from a generic serial terminal, the
ULTRA Plus or IQ will automatically send backspace characters and space characters
to overwrite the old value when a character other than a carriage return (ENTER) is
received. (If the SHOW option is used with an Allen-Bradley Operator Terminal, cur-
sor positioning commands are automatically sent to erase the old value.)

Note: Use caution when using a READ statement specifying serial port 2. A READ
statement can interfere with normal Host communications with an ULTRA Plus or IQ
since characters received in port 2 while a READ statement is active will be inter-
preted as a value for the READ statement rather than a valid Host command. For
example, if the IQ Master I/O status window is open, IQ Master is constantly sending
and receiving data from port 2 to determine I/O status.

See Also

PRINT

Example

READ #1 1, 1 "The Length is ", V1, 3, 2

READ 1, 1, F1

READ F1

Advertising