Step 7: Read status LED indicators of S7-300 CPU
Update: See https://github.com/planken/Step7/blob/ma... for the latest source code.
This function obtains the status of the CPU LED indicators, for visualization on an HMI, for example. In this function block, we only output the status for system fault and a combined bus fault (for any interface), but you can easily change that.