11 - 138 11 - 138
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
LPRINT USING
Instruction
LPRINT USING
• Outputs data in the specified format to the printer.
LPRINT USING ” <display format> “; <expression> [, <expression> ] ... [;]
display format
• • • •
Specify the format for the character string or numeric
values to be displayed.
Syntax
expression
• • • •
Specify the character string or numeric values to be
displayed.
SIN(12
0°)
Examples
LPRINT USING
“SIN(###°)”;120
• • • •
Displays SIN(120°) on the printer.
Description
• The LPRINT USING instruction outputs data in the specified format to the printer.
• This instruction is the same as the PRINT USING instruction except for the fact that it
outputs data to the printer.
• The output printer is specified with the ZLDV instruction.
• While printing is in progress, all keys will not be accepted, including the Break ,
Ctrl + C keys. To stop printing, turn off the printer or set it to the offline status.
The printer output process will stop after approximately 5 seconds.
• For <display format> setting using the LPRINT USING instruction, see the format
specification of the PRINT USING instruction.
REMARK
See the PRINT USING instruction and Section 7.3.3.