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-01

1. Realpoint Technology's 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 properly connected, the IOE indicator on the module will still flash red, alerting the user that the module has alarm information.

↑ Load-side power supply not connected, module IOE indicator flashes red

3. At this point, open TIA Portal for monitoring, and you can see the diagnostic information is displayed in green, but not checked - it is a small green wrench icon, indicating that maintenance is required.

4. This maintenance-required status can be seen when monitoring in TIA Portal, so how is it reflected in the program? This requires the Siemens built-in "GET_DIAG" function block for reading diagnostic information.

5. First, create a global DB block and add the following variables. One of them has a DIS data type, which can be selected directly without user configuration. Set the MODE initial value to 1.

6. Now start calling the function block.

7. Fill in the interfaces with the newly created variables. The LADDR interface can be used to fill in the hardware identifier - find the submodule to be monitored and fill it in. Here, XB6S-PT04A is used as an example.

8. After the program is downloaded, you can monitor the diagnostic status of the module.

9. Since the load-side power supply is not connected, IOState = 4, indicating maintenance is required; once the load-side power supply is connected, IOState = 1, indicating the status is good.

10. The above is an introduction to how to read diagnostic information in TIA Portal for Realpoint Technology's Slice I/O XB6S PROFINET Protocol coupler. If you have any questions, please feel free to contact us - we will be at your service!