Counting value query and time synchronization

The sample program presented here shows an IEC 60870-5-104 slave with High Level interface. At the core of the sample is the time synchronization from the master to the slave and the counter interrogation. In the sample, the time is synchronized every 120 seconds. A data type M_IT_NA_1 is used to transfer the counting value via a general counter interrogation.

Download TwinCAT XAE Project (*.zip): IEC870_104_HighLevel_Slave_counter_time.zip

In the sample, the following parameters are set for the substation (slave):

Counting value query and time synchronization 1:
  • The applications represent an exemplary implementation of the High Level interface. We make no claim to completeness and correctness. Set the IP address of the slave, both in the master part and in the slave part! Verify that port 2404 is not blocked by a firewall!
  • The connection is established after the start of the program. The data points are managed in the Global Variable List (GVL).