Description
Original instructions
Function description
This function block copies the value entered at SRC to the DEST parameter which is interpreted as a table.
EN and ENO can be configured as additional parameters.
Available functions
The following blocks are available:
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
CAL R2T_Instance (NOINC:=FreezesPointerValue,
    R:=ResetPointerValue, SRC:=SourceData,
    OFF:=PositionInTable, END=>PointerStatus,
    DEST=>DestinationTable)
Representation in ST
Representation:
R2T_Instance (NOINC:=FreezesPointerValue,
    R:=ResetPointerValue, SRC:=SourceData,
    OFF:=PositionInTable, END=>PointerStatus,
    DEST=>DestinationTable) ;
Parameter description
Description of input parameters:
Parameter
Data type
Description
NOINC
1: freezes the pointer value
R
BOOL
1: resets the pointer value to zero
SRC
Source data to be copied in the current cycle
Description of input / output parameters:
Parameter
Data type
Description
OFF
UINT
OFF shows the position in the table. OFF is standardized with a reset (R), i.e. when R=1, OFF is set to "1". After the restore, OFF is incremented by 1.
Description of output parameters:
Parameter
Data type
Description
END
BOOL
1: Pointer value = Table length, i.e. table is full, the function block performs no further copy functions, and OFF is no longer incremented. The function block (and consequently END as well) can be reset with R=1.
DEST
ANY should be array of INT, DINT, UINT, UDINT or REALe.g. ARRAY[0..X] of INT
Destination register where source data will be copied in the cycle.