Chkrange - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions

ChkRange

The ChkRange instruction determines if the value of a variable is within the valid range of the range
type specification.
Instruction
ChkRange
Check Subrange
Variable
Variables
Name
Meaning
In
Variable to
check
Val
Range
specificatio
n variable
Out
Check
result
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
In
Val
The basic data type that is the basis for the range specification must be the same as In.
Out
OK
Function
The ChkRange instruction determines if the value of variable to check In is within the valid range of the
range specification variable Val. If the value is within the valid range, check result Out is TRUE. If the
value is not within the valid range, check result Out is FALSE.
Additional Information
You can define the range type specification for integer variables (USINT, UINT, UDINT, ULINT, SINT,
INT, DINT, and LINT).
2-1370
Name
FB/FUN
FUN
I/O
Description
Variable to check
Input
Range specification variable Depends on the range
Output
Check result
OK OK OK OK OK OK OK OK
Graphic expression
(@)ChkRange
EN
Out
In
Val
Valid range
Depends on data type.
specification.
Depends on data type.
Integers
NY-series Instructions Reference Manual (W560)
ST expression
Out:=ChkRange(In, Val);
Unit
Default
---
*
---
---
Times, durations,
dates, and text strings

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents