Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual

Page 80

Advertising
background image

6Ć40

places to the right of the decimal point is specified as greater than

zero.
The following are all valid PRINT USING statements:

20 PRINT USING L24:HI",R34:THERE"
20 PRINT USING L40:HI" + THERE"
20 PRINT USING D80.0:CURRENT_REFERENCE
20 PRINT USING &

D(LINEWIDTH%-16).(DECPTS%):SPEED

20 PRINT USING L42:INTEGER%,SPEED

In the last example, an unformatted print field follows a formatted

one of L42:INTEGER%, which is legal. Unformatted print

expressions may be mixed with formatted expressions in PRINT

USING. However, an unformatted PRINT statement may not contain

formatted print fields. If an unformatted print expression is used in a

PRINT USING statement, it will follow the same rules for zoning" as

the PRINT statement.
Commas or semicolons may be used to separate fields in a PRINT

USING statement the same way as in the PRINT statement. If

formatted fields are used backĆtoĆback, they are not zoned but get

their format information from the format type they are printing

(L/R/C/Z/D/). If a nonĆformatted field follows a formatted field and

they are separated by a comma, the nonĆformatted field will follow

the same rules as the normal PRINT statement: it will zone the

unformatted value.

Advertising
This manual is related to the following products: