Data transfer within the PLC
863
Part III FP Instructions
WriteDataToFile
RegisterBank
Write Data to File Register Bank 1 or 2
With this function you cannot write data to 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.
PLC types
Availability of WriteDataToFileRegisterBank (see page 1333)
Variable Data type Function
BankNumber Specifies bank number
BankOffset
INT
Specifies bank number offset
DataStartAddress ANY16 Specifies start address of data to be
written to File Register Bank
DataNumberOfWords INT Specifies number of word units to be
written to File Register Bank
For Relay T/C Register
Const
ant
BankNum
ber
WX WY WR WL - - DT LD FL dec. or
hex
BankOffse
t
WX WY WR WL - - DT LD FL dec. or
hex.
DataStart
Address
WX WY WR WL - - DT LD - -
DataNumb
erOfWord
s
WX WY WR WL - - DT LD FL -
Description
This instruction reads the number of words specified by DataNumberOfWords from
DataStartAddress and writes it to the File Register Bank 1 or 2 as specified by BankNumber
beginning with BankOffset.
Data types
Operands
Example
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
POU header
All input and output variables used for programming this function have been declared in the POU
header.