Reading Data From The Specified File - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

Reading data from the specified file

SP.FREAD
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
This instruction reads device data from the specified file on the SD memory card.
Ladder
(U)
(s1)
(d1)
FBD/LD
EN
ENO
U
d1
s1
d2
s2
d3
■Execution condition
Instruction
SP.FREAD
Setting data
■Description, range, data type
Operand
Description
(U)
Dummy
(s1)
Drive specification
(d1)
Start device where the control data is stored
(s2)
Start device where the file name is stored
(d2)
Start device for storing the data that has been read
(d3)
Bit device that turns on upon completion of the processing
(In the case of an error completion, the device specified by
(d3)+1 also turns on.)
EN
Execution condition
ENO
Execution result
*1 Only drive 2 (for the SD memory card) can be set.
*2 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(U)
(s1)
(d1)
(s2)
(d2)
(d3)
RnSFCPU RnSFCPU
(Standard)
(Safety)
(s2)
(d2)
(d3)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
ST
ENO:=SP_FREAD(EN,U,s1,s2,d1,d2,d3);
Range
Data type
Device name
*1
2 (fixed)
Word
Refer to the control data.
Word
Unicode string
Word
Bit
Bit
Bit
Double word Indirect
specification
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
7.6 Reading/Writing Data Instructions
7
Data type (label)
ANY16
ANY16
ANY16_ARRAY
(Number of elements: 8)
ANYSTRING_DOUBLE
*2
ANY16
ANYBIT_ARRAY
(Number of elements: 2)
BOOL
BOOL
Constant
Others
(U)
K, H E
$
599

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents