Print – 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 273

Advertising
background image

Language Reference • Reference

251

Publication 1398-PM601A-EN-P — October 2000

WORDS

PRINT

Print

Operator Terminal

Purpose

Print a message or a variable, or both, to the Operator Terminal or a serial port.

Syntax

PRINT [#n] [row, column] ["message"] [, variable] [, field, precision[, F]]

n

Serial port 1 or 2 is specified by n. If a port is not specified, the
output defaults to serial port 1, the Operator Terminal port.

row

The row that printing begins on. The top row is 1.

column

The column that printing begins on. The left hand column is 1.

message

The message to be printed can be any string of characters in dou-
ble quotation marks. The message may also contain codes to con-
trol the display.

variable

If variable is a G or V variable, the value of the variable is dis-
played. If variable is a B or F flag variable, “Y” is displayed if
the variable is ON, “N” is displayed if the variable is OFF

field

field determines how many characters are allowed for the vari-
able including the decimal point. field does not apply when print-
ing flag variables. If the value to be printed is longer than the
specified field, the entire value will be printed, overflowing the
field length.

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. This does not apply when printing flag
variables.

Advertising