Panasonic FP Series Programming Manual page 862

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

ReadDataFromFile
RegisterBank
This instruction reads the number of words specified by DataNumberOfWords from File Register
Description
Bank 1 or 2, as specified by BankNumber beginning with BankOffset, and writes it to
DataStartAddress.
With this function you cannot read data in the FL area (File Register Bank 0), i.e., the variable
applied at DataStartAddress must not be located in the FL area.
To add an enable input and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
Availability of ReadDataFromFileRegisterBank (see page 1330)
PLC types
Data types
Variable
BankNumber
BankOffset
DataNumberOfWords
DataStartAddress
Operands
For
WX
BankN
umber
WX
BankO
ffset
WX
DataN
umber
OfWor
ds
WX
DataSt
artAdd
ress
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
Example
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
If bGetData changes from FALSE to TRUE, the entire data unit variable awProcessDataToGet (a
DUT containing 11 elements) is filled with the data from File Register Bank 2 BankOffset 1000.
Read Data from File Register Bank 1 or 2
Data type
INT
ANY16
Relay
T/C
WY
WR
WL
-
-
WY
WR
WL
-
-
WY
WR
WL
-
-
WY
WR
WL
-
-
Function
Specifies the bank number
Specifies the bank number offset
Number of word units to be read
from the file register bank
Specifies the start address of
data which is read from the file
register bank
Register
Constant
DT
LD
FL
dec. or hex
DT
LD
FL
dec. or hex.
DT
LD
FL
-
DT
LD
-
-
Data transfer within the PLC
861

Advertisement

Table of Contents
loading

Table of Contents