Xylookup, Parameters, Error description – Yaskawa MotionWorks IEC Toolboxes User Manual
Page 582

Yaskawa Toolbox: Function Blocks
MotionWorks IEC61131-3 Toolboxes: 2013-09-13
569
XYLookup
This function block will do a binary search on the XYdata to find the X value, then output the corresponding Y
value. This function will perform linear interpolation if the X value is between two data points in the XYData and
calculate the appropriate Y value.
Parameters
*
Parameter
Data Type
Description
VAR_IN_OUT
V
XYData
An array of X & Y data pairs
VAR_INPUT
Default
B
Enable
BOOL
The function will continue to execute while
enable is held high.
FALSE
V
X
LREAL
The input reference
VAR_OUTPUT
B
Valid
BOOL
Indicates that the outputs of the function are valid.
V
Y
LREAL
The resulting output that relates the input.
B
Error
BOOL
Set high if error has occurred during the execution of the
function block. This output is cleared when 'Execute' or 'Enable'
goes low.
B
ErrorID
UINT
If Error is true, this output provides the Error ID. This output is
reset when 'Execute' or 'Enable' goes low.
Error Description