Windowcheck, Parameters, Error description – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 580

Advertising
background image

Yaskawa Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

567


WindowCheck

This function block sets the InWindiow output high if the InputValue is within +/- (Window/2) of the
TargetValue. This function is useful when making a comparison that only relies on the InputValue to be close to
the Target, but an exact match is not required.

Parameters

*

Parameter

Data
Type

Description

VAR_INPUT

Default

B

Enable

BOOL

The function will continue to execute while enable is
held high.

FALSE

V

InputValue

LREAL

The data to be tested against the TargetValue

LREAL#0.0

V

TargetValue

LREAL

The desired data to be compared against.

LREAL#0.0

V

Window

LREAL

This amount will be divided in two. The InputValue
must fall within half the window distance of the
TargetValue for the InWindow output to go high.
Window must be greater than zero.

LREAL#0.0

VAR_OUTPUT

B

Valid

BOOL

Indicates that the outputs of the function are valid.

V

InWindow

BOOL

Indicates that the InputValue is within the TargetValue +/-
(Window/2) inclusive.

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

Advertising