Finally, the application (typically “PLC_PRG (PRG)”) including the logical node functionality needs to be configured. The IEC 61850 generated code only contains the logical node interfaces = control and monitoring values.
The “PLC_PRG (PRG)” application consumes the control values which were received by the “IEC 61850 Server” (e.g. Operate) or GOOSE Subscriber and calculates monitoring values which are then sent by the “IEC 61850 Server” (e.g. MMS Report) or GOOSE Publisher.
The following figure shows a simple example of a switch simulation in “PLC_PRG (PRG)”, based on the global variables which were mapped to “XSWI.Pos”.
⮫ “Configuration of IEC 61850 server with logical nodes”
The simulated switch is controlled by the control variable “oper_var_ctrl” and the resulting status (_ON or _OFF) is written to the monitoring variable “status_var_mon”.

Real applications will contain more logic and connections to physical inputs or outputs.