With the method RemoveLastSample(...), the last stored sample is removed. If the selected set is already empty, the method removes the last sample from the previous set. In this case, the previous set becomes the selected set.
Access: PUBLIC
Output |
Data type |
Description |
---|---|---|
q_xError |
BOOL |
TRUE: An error occurred during last command. For more information refer also to q_etResult and q_sResultMsg. |
q_etResult |
Provides diagnostic and status information. If q_xError = FALSE, then q_etResult provides status information. If q_xError = TRUE, then q_etResult provides diagnostic/error information. The enumeration ET_Result contains the possible values of the POU operation results. |
|
q_sResultMsg |
STRING[80] |
Event-triggered message that gives more detailed information on the diagnostic state. |
q_xError |
q_etResult |
Enumeration value of q_etResult |
Description |
---|---|---|---|
FALSE |
Ok |
0 |
Success. |
FALSE |
PreviousSetSelected |
33 |
Samples across different sets must contain positions sorted in a monotone increasing or decreasing order along the X coordinate. |
TRUE |
NoSamplesToRemove |
34 |
No samples available to remove. |
Enumeration name: |
NoSolutionFound |
Enumeration value: |
34 |
Description: |
No samples available to remove. |
Issue |
Cause |
Solution |
---|---|---|
It is not possible to remove the last sample. |
There are no samples stored inside the function block. |
Do not call this method if there are no available samples to remove. |