beautypg.com

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

Page 565: Example

background image

Yaskawa Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

552

RangeCheck

This function block will set the output 'InRange' if the Value input is between the Minimum and Maximum. The
check is inclusive, meaning that if Value=Minimum or Value=Maximum, then the InRange output will be on.

Parameters

*

Parameter

Data
Type

Description

VAR_INPUT

Default

B

Enable

BOOL

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

FALSE

V

Minimum

LREAL

The smallest 'Value' that will set the InRange
output high.

LREAL#0.0

V

Value

LREAL

The data to be tested against the Minimum and
Maximum.

LREAL#0.0

V

Maximum

LREAL

The largest 'Value' that will set the InRange output
high.

LREAL#0.0

VAR_OUTPUT

B

Valid

BOOL

Indicates that the outputs of the function are valid.

V

InRange

BOOL

Indicates if the Value is between the Minimum and Maximum.
(Inclusive)

Error Description

No errors will be generated.

Example