Reference Manual

PMAC 2 Software Reference
PMAC Program Command Specification 311
{message} is the ASCII text string to be displayed.
Remarks
This command causes PMAC to send the string contained in {message} to the display
port (J1 connector) for the liquid-crystal or vacuum-fluorescent display (Accessory 12 or
equivalent).
The optional constant value specifies the starting point for the string on the display. It has
a range of 0 to 79, where 0 is upper left, 39 is upper right, 40 is lower left, and 79 is
lower right.
Example
DISPLAY 10"Hello World"
DISP "VALUE OF P1 IS"
DISP 15, 8.3, P1
See Also
Display Port (Connecting PMAC to the Machine);
Accessory 12 (Basic Specifications)
Program commands DISPLAY {variable}, SEND"{message}"
DISPLAY ... {variable}
Function
Formatted Display of Variable Value
Type
Motion program (PROG and ROT), PLC program
Syntax
DISPLAY {constant}, {constant}.{constant}, {variable}
DISP {constant}, {constant}.{constant}, {variable}
where:
the first {constant} is an integer from 0 to 79 representing the starting location
(character number) on the display.
the second {constant} is an integer from 2 to 16 representing the total number of
characters to be used to display the value (integer digits, decimal point, and fractional
digits).
the third {constant} is an integer from 0 to 9 (and at least two less than the
second {constant}) representing the number of fractional digits to be displayed.
{variable} is the name of the variable to be displayed.
Remarks
This command causes PMAC to send a formatted string containing the value of the
specified variable to the display port. The value of any I, P, Q, or M variable may be
displayed with this command.
The first constant value specifies the starting point for the string on the display. It has a
range of 0 to 79, where 0 is upper left, 39 is upper right, 40 is lower left, and 79 is lower
right. The second constant specifies the number of characters to be used in displaying
the value. It has a range of 2 to 16. The third constant specifies the number of places to
the right of the decimal point. It has a range of 0 to 9, and must be at least 2 less than the
number of characters. The last thing specified in the statement is the name of the
variable – I, P, Q, or M.
Example
DISPLAY 0, 8.0, P50
DISPLAY 24, 2.0, M1
DISPLAY 40, 12.4, Q100
See Also
Display Port (Connecting PMAC to the Machine);
Accessory 12 (Basic Specifications)
Program commands DISPLAY"{message}", COMMAND"{command}"