Mitsubishi MELSEC Q Series Programming Manual page 807

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

Advertisement

(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
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
K2
Control data
Loaded data
Stores the number of read data
Main/sub item
Data between , and ,
Length
Read
data
1
Temperature
-21
When data is read after CSV format conversion and the designated No. of
columns is other than "0":
Measured value
LF
LF
Elements outside the designated
number of columns are ignored.
D10
D20 D99 M0
Data that was read
File name
Control data
D10
H0100
Execution/completion type
D11
-
Not used
D12
K6
Number of request read data
Not used
D13
-
D14
K0
D15
K0
D16
K2
Designation of the number of columns
Data type specification
D17
K0
File name
D20
H4241
"ABCD"
D21
H4443
D22
H0000
D099
K6
Number of read result data
D100
K0
Conversion data (0) is stored since "Main/sub item" is nonnumeric data.
D101
Conversion data (0) is stored since " " is nonnumeric data.
K0
D102
K0
Conversion data (0) is stored since "Length" is nonnumeric data.
D103
K1
Since " 1 " is a numeric value, it is converted to a binary value.
D104
K0
Conversion data (0) is stored since "Temperature" is nonnumeric data.
D105
K-21
Since " -21 " is a numeric value, it is converted to a binary value.
SP.FREAD
1
2
3
4
6
6
7
8
7-433

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents