7 APPLICATION INSTRUCTIONS
7.6 Reading/Writing Data Instructions
609
7
When "Reading data after converted to CSV format" (Decimal (16-bit data)) is specified and the number of columns is set to 0
(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: 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 "Measured value" is not a numerical value, the conversion data, 0, is
stored.
D103: Since "Length" is not a numerical value, the conversion data, 0, is stored.
D104: Since "1" is a numerical value, it is converted to a binary value.
D105: Since "3" is a numerical value, it is converted to a binary value.
D106: Since "Temperature" is not a numerical value, the conversion data, 0, is stored.
D107: Since "-21" is a numerical value, it is converted to a binary value.
D108: Since " " is not a numerical value, the conversion data, 0, is stored.
, , CR LF
,,3CRLF
, -21 , CR LF
1
[Data saved in CSV format]
Main/sub item Measured value
Length
Temperature
SP.FREAD
D10
K2
U0 "ABCDE" D99
M0
(1)
(2)
(3)
[Data to be loaded to the device]
0100HD10
D11
D12
D13
D14
D15
D16
D17
-
K9
K0
K0
K0
K0
K0
[Control data]
D99
D100
D101
D103
D104
D106
D107
K9
K0
K0
K0
K0
K1
K3
K0
K-21
K0
D105
D102
D108
[Loaded data]