ErrorBits
Description
( DW#16#...)
0004_0000
The interpolation calculation yields an invalid REAL value for the Output parameter.
Check the REAL values in the WorkingData structure for validity.
The Output parameter is assigned the substitute output value that you configure at the ErrorMode tag.
If you want to change the polyline data, first edit the UserData structure and then set parameter Validate
= TRUE. Do not manually change the data in WorkingData structure.
The NextXIndex tag can have an invalid value as long as this error is pending.
The error bit at the Error parameter is cleared and enable output ENO is set to TRUE again, when
The interpolation calculation yields valid values for the Output parameter again.
•
or
The Reset parameter is set to TRUE.
•
If the interpolation calculation yields valid REAL values again and parameter Reset = FALSE is set, FB
Polyline outputs the interpolation value again at the output.
0008_0000
One or more tags in the UserData structure have invalid values while no valid polyline data is available
in the WorkingData structure.
The polyline data in the UserData structure were checked because
The Validate parameter is set to TRUE while the Reset parameter is set to FALSE.
•
or
When Polyline is executed for the first time after the change of operating state of the CPU from RUN
•
to STOP , the Reset parameter is set to FALSE .
The polyline data in the UserData structure is not transferred to the WorkingData structure so that the
values in the UserData structure will not become effective. FB Polyline does not output the interpolation
value at the Output parameter because no valid polyline data is contained in the WorkingData structure.
The Output parameter is assigned the substitute output value that is configure at the ErrorMode tag.
Ensure that the following conditions are met when the Validate parameter is set to TRUE or when the
Reset parameter is set to FALSE while Polyline is being executed for the first time after the change of
operating state of the CPU from STOP to RUN :
1. 2 ≤ UserData.NumberOfUsedPoints ≤ 50
2. UserData.Point[j].x < UserData.Point[j+1].x with index j = 1..(UserData.NumberOfUsedPoints – 1)
3. -3.402823e+38 ≤ UserData.Point[i].x ≤ 3.402823e+38 with index i =
1..UserData.NumberOfUsedPoints
4. -3.402823e+38 ≤ UserData.Point[i].y ≤ 3.402823e+38 with index i =
1..UserData.NumberOfUsedPoints
5. UserData.Point[i].x and UserData.Point[i].y are valid REAL values (≠ NaN) with index i =
1..UserData.NumberOfUsedPoints
PID control
Function Manual, 03/2017, A5E35300227-AC
Instructions
9.5 Polyline
521