Data transfer within the PLC
822
Part III FP Instructions
F10_BKMV_NUMBER
Block move by number
This instruction is a modification of the F10_BKMV (see page 819) generated by the compiler.
Whe
never s1
_Start and d_Start are in the same data area:
s1_Start = d_Start: data will be recopied to the same data area.
PLC types
Availability of F10_BKMV_NUMBER (see page 1320)
The value for 's2_Number' has to be greater than 0.
Variable Data type Function
s1_Start starting 16-bit area, source
s2_Number number of words to be copied, source
d_Start
ANY16
starting 16-bit area, destination
The variables s1_Start, s2_Number and d_Start have to be of the same data type.
For Relay T/C Register Constant
s1_Start WX WY WR WL SV EV DT LD FL -
s2_Number WX WY WR WL SV EV DT LD FL dec. or hex.
d_Start - WY WR WL SV EV DT LD FL -
Description
The data block specified by the 16-bit starting area specified by s1_Start and the number of
WORDs specified by s2_Number are copied to the block starting from the 16-bit area specified by
d_Start if the trigger EN is in the ON-state.
Data types
Operands
Example
In this example the function is programmed in ladder diagram (LD). The same POU header is used
for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable CopyArray changes from FALSE to TRUE, the function is carried out. It copies
the data block starting at the 16-bit area specified by s1_Start and the number of WORDs
specified by s2_Number to the block starting from the 16-bit area specified by d_Start.
LD