TcIEC870_5_102Link: IEC 60870-5-102 Serial Link Interface (master)
The control stations (masters) according to IEC60870-5-102 can be realised in the TwinCAT PLC with the PLC functions and function blocks. The IEC60870-5-102 transmission protocol is companion standard tor the transmission of integrated totals in electric power systems.
The end application is imposed on the software interface of the PLC library. Unlike the implementation of other 101/104 TwinCAT products only one "so called" 'Low level' interface is available. The reason: The IEC 60870-5-102 devices are featuring a lot of vendor specific data. The 'Low level' interface allows the access to this data. The characteristics of both interfaces are described briefly below.
'Low level' interface: IEC 60870-5-102 Serial Link Interface
This interface starts lower down on the protocol stack and enables the sending and/or receipt of individual frames (ASDUs).
Pro: Very flexible; all properties in the ASDU frame can be changed (e.g. an own time stamp, Select/Execute or a special command execution etc.); high performance can be achieved because only the necessary services are implemented; high performance if there are many data points;
Contra: Larger amount of programming work; all services, such as general query, counter query, time synchronisation, command execution, spontaneous data transmission etc. must be implemented by the PLC programmer himself (programmed out); the PLC programmer must be familiar with the protocol standard.
Interoperability check list
for TwinCAT PLC Library: IEC 60870-5-102 control station (master). Here you can open/save the protocol interoperability document (zipped PDF).
System requirements
Development environment:
- Windows NT (XP, XPe/WES, Vista, W7, WES7, ...);
- TwinCAT installation level: TwinCAT PLC or higher;
- TwinCAT System version 2.10.0 Build >= 1319 or higher;
Target system:
- Industrie PC oder Embedded PC/CX (x86, ARM);
- Operating system:
- Windows NT (XP, XPe/WES, Vista, W7, WES7, ...);
- Windows CE (x86, ARM) (image v2.16 or higher);
- TwinCAT PLC runtime system version 2.10.0 or higher;
- Serial COM port or KL6xxx or EL6xxx bus terminal (EL6xxx support implemented in product version 1.0.4 and higher);
Product components
- TcIEC870_5_102Link.Lib (implements the transfer procedures for the transport of IEC 60870-5-102 ASDU's );
This library have to be included in the PLC project. All other libraries are included automatically. - TcIEC870_5_101Link.Lib (base library, implements the transfer procedures for the transport of ASDU's via the serial interfaces of PC and Beckhoff KL6xxx/EL6xxxbus terminal);
- TcIEC870_5_101.Lib (implements the connection functions and common data types);
- COMLibV2.Lib (implements the functions for the serial COM- or KL6xxx/EL6xxx communication);
Installation on Windows NT (XP, XPe/WES, Vista, W7, WES7, ...)
The PLC libraries are copied into the folder: ..\TwinCAT\Plc\Lib.
Installation on Windows CE
You don't have to install any additional components on the CE platform.
This document is not full product manual. Please install the full version of the Beckhoff Information System. |
Hint:
You will find it
- on the Beckhoff Product DVDs
- on our Web-Server: http://www.beckhoff.com under download.
Examples
Example projects are in the Beckhoff Information System documentation of TwinCAT PLC library.
Link to example overview page ('low level' interface): IEC 60870-5-102 Serial Link Interface;
Further Documentation
- Documentation of TwinCAT PLC Library: IEC 60870-5-101 Serial Link Interface;
- Documentation of TwinCAT PLC Library: IEC 60870-5-101 Common Data Types;
- Documentation of TwinCAT PLC Library: Serial communication;
- IEC 60870-5-1 Transmission frame formats;
- IEC 60870-5-2 Link transmission procedures;
- IEC 60870-5-3 General structure of application data;
- IEC 60870-5-4 Definition and coding of application information elements;
- IEC 60870-5-5 Basic application functions;
- IEC 60870-5-101 Companion Standard for basic telecontrol tasks;
- IEC 60870-5-101:1995/A1:2000 Companion Standard for basic telecontrol tasks. Amendment 1;
- IEC 60870-5-101:1995/A2:2001 Companion Standard for basic telecontrol tasks. Amendment 2;
- IEC 60870-5-102:1996 Transmission protocols - Companion Standard for the transmission of integrated totals in electric power systems;