Example: CAA Device Diagnosis
Product: CODESYS Fieldbuses
This example shows how to use of the CAA Device Diagnosis
library for generic diagnosis of the devices available in the project.
Description
The examples show how to use the CAA Device Diagnosis
library for the following actions:
Starting, stopping, and resetting devices
Activating and deactivating devices
Browsing the device tree
Collecting device and bus information
Additional information
Two controllers are configured in the sample project. In the first controller, the functions of the Device Diagnose are displayed. The second controller acts as a communication partner for the EtherNet/IP scanner.
The first controller contains two function blocks:
DeviceChecker
: Browses the device tree and counts the number of devices and their states (DED.Device_State
).DeviceController
: Provides methods to start, stop, and reset a device, as well as to enable and disable individual devices or entire subtrees.
System requirements and restrictions
Programming system | CODESYS Development System (version 3.5.14.0 or higher) |
Runtime system | CODESYS Control Win (version 3.5.14.0) |
Add-on components | - |
Note
DOWNLOAD Project