Using Control and Substations in CODESYSΒΆ

To map the IEC60870-5-104 Control and Substation to CODESYS, use IEC 60870-5-104 Function Block Library. See documentation of IEC60870 Library for more information.

The created Station (Control and Substation) which is available at the global variable list Creating Configuration Data has to be assigned to the corresponding Input of the Function Blocks of the IEC60870 Library.

The created Control and Substation characteristics itself with:

  • Unique names: Names of all connections (substation and control station)
  • Unique addresses: All telecontrol addresses (consist of GADU1, GADU2, IA1, IA2, IA3) have to be unique within 1 telecontrol connection (all knots beneath 1 connection knot).
  • Aliases: For the project planning the plug-in generates constant data structure aliases as global variables (read-only).

For each created connection (Substation and Control Station) the plug-in generates e.g.:

VAR_GLOBAL CONSTANT

Control_Station : IEC60870_5_104_Connection:=(Slot:=0, Con:=0);

END_VAR