Peak value detector
The peak value detector detects two types of event:
- Occurrence of an extreme value of a measured variable (output current, supply voltage, temperature).
- Output of a warning message or error message.
The value of the maximum extreme value and the time of occurrence in input variables are available at all times.
The following diagrams illustrate the mode of operation of the peak value detector taking the example of the maximum of a measured variable:
Activate peak value detector
You have to activate additional process data objects in the process image in order to be able to use the peak value detector:
Scope | Process data objects for control | Process data objects for evaluation | ||
---|---|---|---|---|
Index | Name | Index | Name | |
EtherCAT P port X52 | 0x1601 | DPO Extended Diag Outputs Channel 1 | 0x1A01 | DPO Extended Diag Inputs Channel 1 |
EtherCAT P port X53 | 0x1603 | DPO Extended Diag Outputs Channel 2 | 0x1A03 | DPO Extended Diag Inputs Channel 2 |
EtherCAT P port X54 | 0x1605 | DPO Extended Diag Outputs Channel 3 | 0x1A05 | DPO Extended Diag Inputs Channel 3 |
EtherCAT P port X55 | 0x1607 | DPO Extended Diag Outputs Channel 4 | 0x1A07 | DPO Extended Diag Inputs Channel 4 |
Global | 0x1609 | DPO Extended Diag Outputs Device | 0x1A09 | DPO Extended Diag Inputs Device |
Proceed as follows:
- 1. Double-click on the EP9224-0037 I/O module in the I/O tree.
- 2. Click the Process Data tab.
- 3. Click "Outputs" in the "Sync Manager" box.
- 4. Activate the PDO Assignment (0x1C12) checkbox next to the desired PDOs.
- The corresponding process data object "DPO Extended Diag Outputs […]" appears in the I/O tree.
- 5. Click "Inputs" in the Sync Manager box.
- 6. Activate the PDO Assignment (0x1C13) checkbox next to the desired PDOs.
- The corresponding process data object "DPO Extended Diag Inputs […]" appears in the I/O tree.
- Result: The process data objects for controlling and evaluating the peak value detector are activated.
Select measured variables/messages
You can select ten measured variables or messages for which events are to be detected:
- Two measured variables or messages per EtherCAT P port.
- Two global measured variables or messages that concern the complete box (temperatures, supply voltages, sum currents).
The following table shows the CoE indices in which the measured variables or messages can be selected:
Scope | Input variables | CoE Index |
---|---|---|
EtherCAT P port X52 | "DPO Extended Diag Inputs Channel 1" | 8000:15 |
"DPO Extended Diag Inputs Channel 1" | 8000:16 | |
EtherCAT P port X53 | "DPO Extended Diag Inputs Channel 2" | 8010:15 |
"DPO Extended Diag Inputs Channel 2" | 8010:16 | |
EtherCAT P port X54 | "DPO Extended Diag Inputs Channel 3" | 8020:15 |
"DPO Extended Diag Inputs Channel 3" | 8020:16 | |
EtherCAT P port X55 | "DPO Extended Diag Inputs Channel 4" | 8030:15 |
"DPO Extended Diag Inputs Channel 4" | 8030:16 | |
Global | "DPO Extended Diag Inputs Device" | F80E:15 |
"DPO Extended Diag Inputs Device" | F80E:16 |
Reset
Resetting the peak value detector leads to the current measured value and the current timestamp being adopted as the new peak value and new timestamp.
You can reset the peak value detector for each port and for the global peak values individually.
To do this, apply a positive edge to the respective output variable "Reset Extended Diag Data".
Evaluation
The peak values and timestamp can be found in the process data objects "DPO Extended Diag Inputs" as input variables:
- "Peak Value 1" and the associate "Timestamp 1"
- "Peak Value 2" and the associate "Timestamp 2"