Tutorial
The tutorial explains how to implement and configure an IEC60870-5-101 substation (slave) in the TwinCAT PLC. The sample can be downloaded here.
Further Information
- Download: Substation tutorial (slave, unbalanced mode)
- Glossary
- Creating a PLC project and integrating PLC libraries
- The fast PLC task
- Defining and configuring an application object database of controlled station
- Mapping of PLC and IEC process data
- Declaring and calling an instance of the IEC60870-5-101 substation
- IEC60870-5-101 protocol parameters
- System parameters
- Station interrogation
- Transfer of integrated totals (counter interrogation)
- Clock (time) synchronisation
- Background scan
- Cyclic data transmission
- Command transmission
- Interrogation / Read command
- Double transmission
- Quality Flags
- Testing the communication
- Protocol and data transmission errors
- Troubleshooting and debugging
- Configuration of serial interface