612
7 APPLICATION INSTRUCTIONS
7.6 Reading/Writing Data Instructions
• When the number of columns differs in each row, the elements outside the specified number of columns are ignored and 0
is added to the cells where no element exists.
Ex.
When the number of columns differs in each row
(1) Columns out of the specified range are ignored.
(2) Loaded data
(3) File name
(4) 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: Since "Main/sub item" is not a numerical value, the conversion data, 0, is stored.
D101: Since " " is not a numerical value, the conversion data, 0, is stored.
D102: Since "Length" is not a numerical value, the conversion data, 0, is stored.
D103: Since no element exists, the conversion data, 0, is added.
D104: Since "Temperature" is not a numerical value, the conversion data, 0, is stored.
D105: Since "-21" is a numerical value, it is converted to a binary value.
,
,
CR LF
,
-21
,
CR
LF
CR LF
,
(1)
Excess
Main/sub item
Measured value
Length
Temperature
[Data saved in CSV format]
SP.FREAD
D10
K2
U0
"ABCD"
D99
M0
(2)
(3)
(4)
[Data to be read into devices]
0100H
D10
D11
D12
D13
D14
D15
D16
D17
-
K6
K0
K0
K0
K2
K0
[Control data]
D99
D100
D101
D102
D103
D104
D105
K6
K0
K0
K0
K0
K0
K-21
[Loaded data]
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......