Mitsubishi MELSEC Q Series Programming Manual page 805

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

Advertisement

(e) When the designated number of columns is 0, the data is read by ignoring the rows in
CSV format file.
Example
Data created by EXCEL
Main / sub item
Length
Temperature
Data saved in the CSV format
Main / sub item
, , Measured value CR LF
Length
, 1 , 3 CR LF
Temperature ,
-21 , CR LF
Data to be read into devices
SP.FREAD
U0
Control data
Loaded data
Stores the number of read data
Main/sub item
Data between , and ,
Measured value
Length
Read
1
data
3
Temperature
-21
Data between , and CR
When data is read after CSV format conversion and the designated No. of
columns is 0:
Measured value
K2
D10
D20 D99 M0
Data that was read
File name
Control data
D10
H0100
Execution/completion type
D11
-
Number of unused read data
D12
K9
Request
Not used
D13
-
D14
K0
D15
K0
Designation of the number of columns
D16
K0
Data type specification
D17
K0
File name
D20
H4241
"ABCDE"
D21
H4443
D22
H0045
D099
K9
Number of read result data
D100
K0
Conversion data (0) is stored since "Main/sub item" is nonnumeric data.
D101
K0
Conversion data (0) is stored since " " is nonnumeric data.
Conversion data (0) is stored since "Measured value" is nonnumeric data.
D102
K0
D103
K0
Conversion data (0) is stored since "Length" is nonnumeric data.
D104
K1
Since " 1 " is a numeric value, it is converted to a binary value.
Since " 3 " is a numeric value, it is converted to a binary value.
D105
K3
D106
K0
Conversion data (0) is stored since "Temperature" is nonnumeric data.
D107
Since " -21 " is a numeric value, it is converted to a binary value.
K-21
D108
Conversion data (0) is stored since " " is nonnumeric data.
K0
SP.FREAD
1
2
3
4
6
6
7
8
7-431

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents