Mitsubishi QD51 Programming Manual page 519

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
PRINT#
Instruction
• Writes data to a sequential file.
PRINT #<file number>, <data to be written>
Syntax
file number
data to be written
PRINT #1,A
Examples
PRINT #2,A$
• The PRINT# instruction writes data to a sequential file.
Description
• In order to use the PRINT# instruction, it is necessary to open a sequential file using the
OPEN instruction in advance.
• The PRINT# instruction writes data to a sequential file in the same manner as data is
displayed on the display screen using the PRINT instruction. Therefore, it is necessary to
use semicolons (;) to separate numeric expressions and character string expressions in
<data to be written>.
If a comma (,) is used instead of a semicolon (;) to separate expressions, any extra
spaces that would be inserted when displaying numeric values and characters, are also
written to a file.
• The PRINT# instruction does not display data on the screen.
11 - 349
PRINT#
• • • •
• • • •
• • • •
• • • •
REMARK
See the OPEN, INPUT#, LINE INPUT#, CLOSE PRINT, PRINT USING and PRINT#
USING instructions, and Chapter 6.
Specify the file number of a file opened as a
sequential file using the OPEN instruction.
Specify the numeric values or character string
expressions to be written to the file.
Writes the value of A to the file opened as file
number 1.
Whites the character string A$ to the file opened as
file number 2.
MELSEC-Q
11 - 349

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents