For anyone working with WAGO’s Linux-based controllers (e.g. 750‑8111, 750‑821x, etc.), the WagoAppConfigTool library provides a flexible way to access low-level system diagnostic information directly from CODESYS. This is especially helpful to access internal diagnostic data not exposed through standard I/O variables.
The WagoAppConfigTool library gives access to the FbConfigTool function block, which allows your CODESYS application to execute Linux-based shell commands and retrieve their output. These commands can query built-in configuration tools on the controller located under /etc/config-tools. The config-tools commands can be checked by SSH through PuTTY and navigating to that directory.
Once in that directory the help command can be used to check the commands parameters. In this example get_led_config will be used to check the status of the IO LED on the controller.
With the WagoAppConfigTool added to the Codesys project, the FbConfigTool can be used to call the get_led_config command. In the example project the “./get_led_config frequency1 IO”, “./get_led_config frequency2 IO”, and “./get_led_config diagtext IO” are scanned periodically to check the status of the blink error codes and diagnostic text which can be used to diagnose issues with the input modules on the KBus.
FbConfigTool_Example.project (346.9 KB)



