HomeKnowledgeHow to read diagnostic information of the XB6S PROFINET protocol coupler of Shidian Technology on the TIA Portal software

How to read diagnostic information of the XB6S PROFINET protocol coupler of Shidian Technology on the TIA Portal software

2025-01-02

Solidot Technology slice I/O-XB6S PROFINET protocol coupler (XB6S-PN2002) has a diagnostic function. For example, when the load side power supply is not connected, even if the module bus is normally connected, the IOE indicator on the module will still flash red, prompting the user that the module has an alarm message.

↑ The load side power supply is not connected, and the module IOE indicator light flashes red

At this time, open the TIA Portal software monitoring, you can see that the diagnostic information is displayed in green, but it is not checked. It is a green small wrench icon, indicating that maintenance is required.

We can see this maintenance-required status when monitoring with the Portal software, but how to reflect it in the program: This requires the use of Siemens' built-in "GET_DIAG" function block to read diagnostic information.

First, create a global DB block and the following variables. One of them has a data type of DIS, which can be directly selected without user configuration. The starting value of MODE is set to 1.

Now start calling the function block.

Fill in the newly created variables into the interface. The LADDR interface can be used to fill in the hardware identifier. Find the submodule that needs to be monitored and fill it in. Here we take XB6S-PT04A as an example.

Once the program has been downloaded, the diagnostic status of the module can be monitored.

Because the load side power supply is not connected, IOState=4, which means maintenance is required; after the load side power supply is connected, IOState=1, which means the status is good.

The above is an introduction to how to read diagnostic information of the XB6S PROFINET protocol coupler of Solidot Technology on the TIA Portal software. If you have any questions, please feel free to contact with us, we will serve you wholeheartedly!