2 Instruction Descriptions
2-100
NJ-series Instructions Reference Manual (W502)
ZoneCmp
The ZoneCmp instruction determines if the comparison data is within the specified maximum and mini-
mum values.
* If you omit an input parameter, the default value is not applied. A building error will occur.
Instruction Name FB/FUN Graphic expression ST expression
ZoneCmp Zone Comparison FUN Out:=ZoneCmp(MN, In,
MX);
Variables
Name Meaning I/O Description Valid range Unit Default
MN Minimum value
Input
Minimum value
Depends on data type.
---
0
In Comparison
data
Value to compare *
MX Maximum value Maximum value 0
Out Comparison
result
Output Comparison result Depends on data type.
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
MN OK OK OK OK OK OK OK OK OK OK
In OK OK OK OK OK OK OK OK OK OK
MX OK OK OK OK OK OK OK OK OK OK
Out OK
(@)ZoneCmp
EN Out
MN
In
MX