CAL R2T_Instance (NOINC:=FreezesPointerValue, R:=ResetPointerValue, SRC:=SourceData, OFF:=PositionInTable, END=>PointerStatus, DEST=>DestinationTable)
R2T_Instance (NOINC:=FreezesPointerValue, R:=ResetPointerValue, SRC:=SourceData, OFF:=PositionInTable, END=>PointerStatus, DEST=>DestinationTable) ;
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
|
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.
|
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.
|