Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 610

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Ex.
When "Reading data after converted to CSV format" (String (ASCII data)) is specified
[Data stored in CSV format]
PARTS.CSV
No.
,
Name
AA_0001
,
Prts_A
BB_0002
,
Prts_B
[Data to be loaded to the device]
SP.FREAD
U0
K2
[Control data]
D10
H0130
D11
H0000
D12
K6
D13
K100
D14
K2
D15
D16
K3
D17
K2
PARTS.CSV
No.
AA_0001
BB_0002
D099
K6
D100
H4141
"AA_0001"
D101
H305F
D102
H3030
D103
H0031
D104
H7250
"Prts_A"
D105
H7374
D106
H415F
D107
H0000
D108
H3031
"100"
D109
H0030
D110
H4242
"BB_0002"
D111
H305F
D112
H3030
D113
H0032
D114
H7250
"Prts_B"
D115
H7374
D116
H425F
D117
H0000
D118
H3033
"300"
D119
H0030
7 APPLICATION INSTRUCTIONS
608
7.6 Reading/Writing Data Instructions
,
Value1
,
Value2
,
100
,
200
,
300
,
400
D10
"PARTS" D99
M0
(1)
(2)
(3)
,
Name
,
Value1
,
Prts_A
,
100
,
Prts_B
,
300
CR LF
CR LF
CR LF
,
Value2
CR LF
,
200
CR LF
,
400
CR LF
Enclosed values as shown to the left are
read.
(Total of six elements, three columns
from two lines of PARTS.CSV, are read.)
(1) Loaded data
(2) File name
(3) Control data
D10: Execution/completion type
D11: Completion status
D12: Number of read-target data
D13: Maximum number of read data
D14, D15: File position
D16: Number of columns
D17: Data type specification
D99: Number of data actually read
D100 to D103: String in the 1st column of
the 2nd line
D104 to D107: String in the 2nd column
of the 2nd line
D108, D109: String in the 3rd column of
the 2nd line
D110 to D113: String in the 1st column of
the 3rd line
D114 to D117: String in the 2nd column of
the 3rd line
D118, D119: String in the 3rd column of
the 3rd line

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents