Example Function Blocks for evaluation using the PLC data types

Example function block (FB_example_evaliation) Example Function Blocks for evaluation using the PLC data types 1:Download

Example Function Blocks for evaluation using the PLC data types 2:

User note

Due to the complexity of this sample program, it is recommended to use these function blocks only as an experienced user. Alternative function blocks can be found in the chapter Example program for the evaluation of the EL34xx.

This functionblock handles the complete reading of the available values from the EL3443 and EL3453 power measurement terminals and stores them in a STRUCT provided for this purpose:

Example Function Blocks for evaluation using the PLC data types 3:
STRUCT representation

To use the function module

Example Function Blocks for evaluation using the PLC data types 10:

View of the complete structure

In this example function block all variables that are present in both the PDOs and the Variant Values are read out via the PDOs, so that these values are updated every cycle. Due to the multiplexing of the values in the Variant Values, the reading of the terminal information requires several PLC cycles. Cyclic reading of all possible data from the PDOs reduces the time required for complete readout. Compared with multiplexing over several cycles, cyclical reading of the PDOs also makes it easier to detect peak values of variables. The following figure shows a scope recording of the power factor in comparison with the PDOs and the Variant Values.

Example Function Blocks for evaluation using the PLC data types 11:
Comparison of the PDOs with values from the Variant Value