Linking of power supply terminals with diagnostics
The power supply terminals with diagnostics have a channel with two input bits and therefore cannot easily be linked to a digital signal in the TwinCAT Building Automation Manager. The procedure to obtain the values is slightly different from the normal way.
Procedure
First, the input bits of the terminal will be routed by PLC symbols into the PLC. Create two input variables of type BOOL within the PLC program and re-read the *.tpy file in the TwinCAT Building Automation Manager. Then link the PLC symbols to the input bits of the terminal.

Thus, the PLC symbols can be used like normal digital signals, you have to create two digital signals and keep the object ids (see Object Id) in mind. With this object ids now the created digital signals can be overwritten with the values of the PLC symbols anywhere in the PLC program.
