Crd (File Data Read Instruction) - Panasonic FP7 Series Command Reference Manual

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

18.4 CRD (File Data Read Instruction)

Ladder diagram
List of operands
Operand
Description
Path name (folder name + file name: 1 to 256 characters) of the file from which data is read and the
S1
number of characters or the starting address of the stored device (data format: character data)
Starting address of the device that stores the parameters related to the data to be read (data
S2
format: unsigned 16-bit integer)
n
Number of read data (data format: unsigned 16-bit integer)
Starting address of the device where the data to be read is stored (data format: unsigned 16-bit
D
integer)
Devices that can be specified (indicated by ●)
Operan
d
W
W
X
Y
S1
S2
n
D
(Note 1)
Only 16-bit devices can be modified. (Integer constants and character constants cannot be specified.)
Outline of operation
● This instruction reads [n] pieces of data from the file in an SD memory card specified by [S1]
according to the parameter specified by [S2], and stores it in the device starting with [D].
● A comma and a line break code (LF or CR+LF) are recognized as delimiters between data
pieces.
● If you specify ASCII data and read an odd number of bytes, only the lowest byte of the last
word is stored.
● If you specify binary data and read an odd number of bytes, H00 is stored in the highest byte
of the last word.
WUME-FP7CPUPGR-12
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
18.4 CRD (File Data Read Instruction)
32-Bit
device:
TS
TE
U
W
WI
IX
C
C
M
O
S
E
Real
St
Integer
numbe
rin
r
g
D
K
H
SF
" "
F
Index
modifie
r
(Note 1)
18-19

Advertisement

Table of Contents
loading

Table of Contents