-

Y_YA_Scaler

Image

This function block performs the calculation y:= mx + b.

Parameters:

* Parameter Data Type Description Default
VAR_INPUT
B Enable BOOL The function will continue to execute every scan while Enable is held high and there are no errors. FALSE
V Input LREAL The x variable of y:=mx + b. LREAL#0.0
V CalX1 LREAL Datapoint specifying a line along which data is to be scaled. LREAL#0.0
V CalY1 LREAL Datapoint specifying a line along which data is to be scaled. LREAL#0.0
V CalX2 LREAL Datapoint specifying a line along which data is to be scaled. LREAL#0.0
V CalY2 LREAL Datapoint specifying a line along which data is to be scaled. LREAL#0.0
VAR_OUTPUT
B Valid BOOL Indicates that the function is operating normally and the outputs of the function are valid.
V Output LREAL The result of the calculation y:=mx + b.
V m LREAL The calculated slope of the line.
V b LREAL The calculated intercept of the line.
B Error BOOL Set high if an 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.

Note:

Error Description

See the Function Block ErrorID List

 


This help information is valid for iCube Engineer Online Help 2025.6

Copyright © 2025 YASKAWA EUROPE GmbH and © 2025 YASKAWA America, Inc.