FB_ACSI_CreateDataSetFromCSV

FB_ACSI_CreateDataSetFromCSV 1:

With this function block DataSets for the IEC 61850/61400-25 can be generated. The generation of the DataSets only can be done after the completion of the initialization of all of the Logical Devices.

VAR_IN_OUT

VAR_IN_OUT
    db : T_HACSIDB; (* ACSI configuration database *)
END_VAR

db: Is the database of the IEC-Server

VAR_INPUT

VAR_INPUT
    sDSRef  : T_MaxString := ''; (* data-set reference string (data-set name)*)
    pList   : DWORD := 0; (* Adress of data-set member list (CSV-String) *)
    cbList  : UDINT := 0; (* Byte size of data-set member list (CSV-String) *)
END_VAR

sDSRef: Names all DataSet references of the corresponding DataSet-instance.

pList: Pointer (address) onto the list of the structure of the DataSet-instance. The address can be found out with the help of the ADR-Operator.

cbList: Length of the list of the DataSet-instance.

VAR_OUTPUT

VAR_OUTPUT
    eError : E_ACSI_ServiceError := eACSI_ServiceError_Success;
END_VAR

eError: Give-back parameter. See E_ACSI_ServiceError

Example:

In the following example the generation of the DataSet that is applied in the TcTelecontrol for the IEC-server is shown

PROGRAM MAIN
VAR
    fbCreateDataSet : FB_ACSI_CreateDataSetFromCSV; DataSet_1 : ST_DataSet_IEDDevice_XCBR1_DataSet_1; (* Your configured DataSet from TcTelecontrol *)
END_VAR
...
(* create DataSet *)
fbCreateDataSet(sDSRef := DataSet_1.sDSRef, pList := ADR(DataSet_1.sList), cbList := LEN(DataSet_1.sList) +1, db := fbIEC61850Server.system.db, eError =>errID);

Requirements

Development environment

Target system

PLC-libraries to be included

TwinCAT v2.10.0 Build >= 1340

PC or CX (x86, ARM)

TcACSI.Lib