Client - GOOSE Subscriber (GetGoCBDataValues, SetGoCBDataValues)

This example shows how a GOOSE control block on the Server side is controlled with the help of the services GetGoCBDataValues and SetGoCBDataValues. The services enable the reading and/or writing of the attribute values of the GOOSE control block. The sending (publishing) of the GOOSE messages on the Server side is activated when the attribute "GoEna" is set to "TRUE". The sending of the GOOSE messages is deactivated when the attribute "GoEna" is set to "FALSE".

A Subscriber that receives the GOOSE messages on the Client side is also included in the example.

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

The example described here uses the state machine that is described in the "General Client project structure" chapter. The States 0, 1, 11 and 100 are identical to the state machine described there. Other states were modified for the example or new states were also added.

In the project tree under the I/O-Device branch you will find a network adapter instance named "GSE (RT Ethernet adapter)". This adapter instance must be configured accordingly, i.e. the I/O configuration must be adapted to the existing hardware and to the target platform on which the project is to run.
A new I/O configuration is also necessary if you change the target platform. This configuration must be done manually in TwinCAT XAE. In addition to the I/O configuration of the network adapter, a link must be established between the network adapter and the PLC function blocks for Goose communication. The link can be used to forward the data received from the network adapter to the instance of the function block: "FB_[IEDName]Gse". In the opposite direction the instance of the function block "FB_[IEDName]Gse" can forward the data to be sent to the network adapter.

Here you can find more information: RT Ethernet adapter Configuration.