Quick Start

Simple projects including complete sources is to be found here: IEC60870-5-104 substation.

Interoperability list is to be found here: Interoperability check list

Overview of error codes is to be found here: Error Error codes

A detailed instruction about implementing the substation within the PLC is to be found here: TUTORIAL

Brief instruction

  1. Create a new PLC project and link the PLC library TcIEC870_5_104Slave.Lib.
  2. Apply an instance of the T_HSERVER variable (connection handle) at the main program and initialize it once at the program part by calling of the F_CreateServerHnd function with the fitting parameters.
  3. Configuration of data points: Apply an array variable of ST_IEC870_5_101AODBEntry. Every array element corresponds to a data point. Configure the data points via the function F_iecInitAOEntry at runtime (e.g. at an init step).
  4. Apply an instance of the des protocol block FB_IEC870_5_104Slave at the main program, configure it and call it.
    The system and protocol parameter are to be configured according to the parameter of the control station.