Mitsubishi QD51 Programming Manual page 521

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
PUT
Instruction
• Writes one record from a random file buffer to a random file.
PUT #<file number>[,<record number>]
Syntax
file number
record number
PUT #1,20
Examples
• The PUT instruction writes data in a random file buffer to a random file.
Description
• If <file number> is omitted, data will be written to the record number next to the one
specified by the GET or PUT instruction executed immediately before.
If <record number> is not specified in the PUT instruction executed immediately after the
OPEN instruction, "1" is assigned to <record number> and the data will be written to
record number 1.
• When the PUT instruction is executed, 256 bytes of data in the random file buffer are
written to the specified record.
11 - 351
PUT
• • • •
• • • •
• • • •
Random file #1
REMARK
See the OPEN, FIELD, GET, LSET and RSET instructions, and Chapter 6.
Specify the file number of the file to which data is
written.
Specify the record number to which data is written.
Writes a record to the 20th record in the random file
opened as file number 1.
Random file buffer
Record number
1
2
3
19
20
MELSEC-Q
21
11 - 351

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents