This repository contains official sample code for the power measurement terminals offered by Beckhoff Automation.
The repository is split into 2 parts:
-
Function blocks and DUT definitions for each terminal type, provided as PlcOpenXML files → easily import in existing projects
-
Sample project, where all function blocks are used → quick reference how they are supposed to be used
The sample code is provided as-is under the Zero-Clause BSD license.
- Download the XML files for your used terminals
- Import the XML in your project
- Instanciate the function block, call it cyclically and rebuild solution
- Set your terminals PDO assignment to the desired PDO (refere to PDO Overview)
- Map the terminal's PDO to the PLC
In the following table, you can see, which predefined PDO assignment the function blocks are designed for.
| function block | predefined PDO |
|---|---|
| EL3423 | Statistics |
| EL3443 | Default + Variant |
| EL3443_DPM | Default + Variant + DPM |
| EL3443_DPM_CurrentOnly | Default + Variant + Adjustments |
| EL3453 | Default + Variant |
| EL3453_DPM | DPM |
| EL3483-0000 | Default |
| EL3483-0060 | Default |
For EL3443_DPM_CurrentOnly some additional adjustments are necessary. For those please refer to the documentation.
Should you have any questions regarding the provided sample code, please contact your local Beckhoff support team. Contact information can be found on the official Beckhoff website at https://www.beckhoff.com/contact/.
Further information about this sample code can be found on the Beckhoff Information System in the EL34xx documentation.




