Mitsubishi MELSEC Q Series Programming Manual page 804

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

SP.FREAD
(3) Be sure to use word units to designate the number of request read data (
(
+4 and
D0
The following shows how the individual device data is read in binary data reading operation.
(4) When reading binary data
(a) If the extension of the target file is omitted, ".BIN" is used as an extension.
(b) When the designated file does not exist, an error occurs.
(c) If the position specified is greater than the existing file size:
(5) When reading data after CSV format conversion
(a) The elements in CSV format file (cells for EXCEL) are read by each row. The numerical
value and character strings are converted into binary data and stored in the device.
(b) If the extension is omitted, ".CSV" is used as an extension.
(c) When the designated file does not exist, an error occurs.
(d) The elements designated by the number of request read data (
beginning of the file.
When the last data of the file is reached before the specified number of data are read:
7-430
+5), and read data device size (
D0
Control data
D0+0
H0000
D0+1
-
D0+2
K3
D0+3
-
K1
D0+4
D0+5
D0+6
-
D0+7
K0
Data device
D1+0
K3
D1+1
H33 22
Total
D1+2
H55 44
Read data
D1+3
H77
66
• The High Performance model QCPU of which the first 5 digits of the serial number
are "01111" or lower results in an error.
• The High Performance model QCPU/Process CPU/Redundant CPU/Universal
model QCPU/LCPU of which the first 5 digits of the serial number are '01112' or
higher will perform reading at point 0 and will be completed normally.
• The High Performance model QCPU of which the first 5 digits of the serial number
are "01111" or lower results in an error.
• The High Performance model QCPU/Process CPU/Redundant CPU/Universal
model QCPU/LCPU whose the first 5 digits of the serial number are '01112' or higher
reads the data up to the point where the reading is possible.
).
D1
Execution/completion type
(Not used)
Number of request read data
(Not used)
Location to start reading in the file
Designation of columns
Data type specification
File data (in byte units)
H00
H11
H22
H33
H44
H55
H66
H77
H88
H99
HAA
+2), file position
D0
+2) are read from the
D0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents