F_iecMoveStreamToStream

From product version  TwinCAT PLC Library IEC60870-5-104 substation v2.0.6 and higher.

F_iecMoveStreamToStream 1:

This function copies data bytes from the source variable to the target variable and deletes afterwards the copied data bytes from the source variable. The memory content of the source variable decreases. The memory content of the target variable increases

FUNCTION F_iecMoveStreamToStream : UDINT

VAR_INPUT
    cbCopy  : UDINT;
END_VAR
VAR_IN_OUT
    target  : ST_IEC870_5_101Stream;
    source  : ST_IEC870_5_101Stream;
END_VAR

cbCopy: Number of data bytes to be copied from the source variable to the target variable.

target: Target data buffer

source: Source data buffer.

 

Example in ST:

under construction

 

Requirements

Development Environment

Target System

PLC libraries to include

TwinCAT v2.10.0 Build >= 1301

PC or CX (x86)

CX (ARM)

TcIEC870_5_101.Lib
( Standard.Lib; TcBase.Lib; TcSystem.Lib; TcUtilities.Lib;  are included automatically )