Mitsubishi MELSEC-Q/L Programming Manual page 646

Table of Contents

Advertisement

SP.FREAD
(f)
When data is read after CSV format conversion and the designated number of columns is other than 0, the data is
read as the table with designated number of columns in CSV format file. The elements outside of the designated
columns are ignored.
Example
When data is read after CSV format conversion and the designated No. of columns is other than "0":
Data created by EXCEL
Main / sub item
Length
Temperature
Data saved in the CSV format
Main / sub item
Length
, 1 , 3 CR LF
Temperature ,
Data to be read into devices
U0
SP.FREAD
Control data
Loaded data
Stores the number of read data
Main/sub item
Data between , and ,
Length
Read
data
1
Temperature
-21
644
Measured value
, , Measured value CR LF
LF
-21 , CR LF
LF
Elements outside the designated
number of columns are ignored.
K2
D10
D20 D99 M0
Data that was read
File name
Control data
D10
H0100
Execution/completion type
D11
-
Not used
D12
K6
No. of request read data
Not used
D13
-
D14
K0
File position
D15
K0
No. of columns designation
D16
K2
Data type specification
D17
K0
File name
D20
H4241
"ABCD"
D21
H4443
D22
H0000
Reading result (No. of read data)
D099
K6
Conversion data (0) is stored since "Main/sub item" is nonnumeric data.
D100
K0
Conversion data (0) is stored since " " is nonnumeric data.
D101
K0
D102
K0
Conversion data (0) is stored since "Length" is nonnumeric data.
D103
Since " 1 " is a numeric value, it is converted to a binary value.
K1
Conversion data (0) is stored since "Temperature" is nonnumeric data.
D104
K0
Since " -21 " is a numeric value, it is converted to a binary value.
D105
K-21

Advertisement

Table of Contents
loading

Table of Contents