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 | |
Output 1 | 0x1601 | DPO Extended Diag Outputs Channel 1 | 0x1A01 | DPO Extended Diag Inputs Channel 1 |
Output 2 | 0x1603 | DPO Extended Diag Outputs Channel 2 | 0x1A03 | DPO Extended Diag Inputs Channel 2 |
Output 3 | 0x1605 | DPO Extended Diag Outputs Channel 3 | 0x1A05 | DPO Extended Diag Inputs Channel 3 |
Output 4 | 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 EP9224-002x in Solution Explorer under the entry "I/O".
- 2. Select the Process Data tab.
- 3. In the field Sync Manager, click on the “Outputs” entry.
- 4. In the field PDO Assignment (0x1C12), check the desired PDOs.
- The corresponding process data object "DPO Extended Diag Outputs [...]" appears in Solution Explorer.
- 5. In the field Sync Manager, click on the “Inputs” entry.
- 6. In the field PDO Assignment (0x1C13), check the desired PDOs.
- The corresponding process data object "DPO Extended Diag Inputs [...]" appears in Solution Explorer.
- 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 output.
- 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 |
---|---|---|
Output 1 | „DPO Extended Diag Inputs Channel 1“ | 8000:15 |
„DPO Extended Diag Inputs Channel 1“ | 8000:16 | |
Output 2 | „DPO Extended Diag Inputs Channel 2“ | 8010:15 |
„DPO Extended Diag Inputs Channel 2“ | 8010:16 | |
Output 3 | „DPO Extended Diag Inputs Channel 3“ | 8020:15 |
„DPO Extended Diag Inputs Channel 3“ | 8020:16 | |
Output 4 | „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"