Mitsubishi MELSEC Q Series Programming Manual page 808

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

Advertisement

SP.FREAD
If the number of columns varies in each row, the elements outside of the designated columns are
ignored and "0" is added to the places where elements do not exist.
Example
If the number of columns varies in each row when the data is read:
Main / sub item
Length
CR LF
Temperature ,
Data to be read into devices
SP.FREAD
U0
Control data
Loaded data
Stores the number of read data
Main/sub item
Data between , and ,
Length
Read
data
No data
Temperature
-21
7-434
, , Measured value
,
Excess CR LF
-21 , CR LF
K2
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
Designation of the number of columns
D16
K2
D17
K0
Data type specification
File name
D20
H4241
"ABCD"
D21
H4443
D22
H0000
D099
K6
D100
K0
D101
K0
D102
K0
D103
K0
D104
K0
D105
K-21
Elements outside the designated
number of columns are ignored.
Number of read result data
Conversion data (0) is stored since "Main/sub item" is nonnumeric data.
Conversion data (0) is stored since " " is nonnumeric data.
Conversion data (0) is stored since "Length" is nonnumeric data.
No data Since no element exists here, conversion data (D) is added.
Conversion data (0) is stored since "Temperature" is nonnumeric data.
Since " -21 " is a numeric value, it is converted to a binary value.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents