11 - 345 11 - 345
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
PRINT USING
Instruction
PRINT USING
• Displays a character string or numeric value in the specified format.
PRINT USING ”<display format>”; <data to be displayed>
display format
• • • •
Specify the format of the character string or numeric
value to be displayed.
Syntax
data to be displayed
• • • •
Specify the character string or numeric value to be
displayed.
Examples
123.56
PRINT USING "###.##" ;123.56
Displays 123.56.
ABCD
PRINT USING "& &" , "ABCD"
Displays four letters, ABCD.
Description
• The PRINT USING instruction displays data in the specified format.
• Specify the type of format for displaying a character string or numeric value in <display
format> (see the next page).
• It is possible to output the data to the console screen as well as to a general-purpose port.