Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions
Variables
Name
Meaning
In1 to InN
Comparison
data
Out
Comparison
result
* If you omit the input parameter that connects to InN, the default value is not applied, and a building error will occur. For
example, if N is 3 and the input parameters that connect to In1 and In2 are omitted, the default values are applied, but if the
input parameter that connects to In3 is omitted, a building error will occur.
Bit strings
In1 to InN
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
Out
OK
* You can specify BYTE, WORD, DWORD, LWORD, TIME, DATE, TOD, DT, and STRING data with Sysmac Studio version
1.02 or higher. If you open a project that was created with Sysmac Studio version 1.01 or lower on Sysmac Studio version
1.02 or higher and then use any of these data types, refresh the display. To refresh the display, right-click the instruction in
the Edit Pane and select Update. If you do not refresh the display, a building error will occur.
Function
These instructions compare the data in In1 to InN (N = 2 to 5).
The output value Out is shown below for each instruction.
Instruction
LT (<)
LE (<=)
GT (>)
GE (>=)
The relationship between values with data types that are not integers or real numbers are determined
as given in the following table.
Data type
BYTE, WORD, DWORD, or LWORD
TIME
DATE, TOD, or DT
STRING
2-98
I/O
Description
Input
Values to compare, N = 2 to
5
Output
Comparison result
*
If In1 < In2 < ... < InN, Out is TRUE. Otherwise, it is FALSE.
If In1 <= In2 <= ... <= InN, Out is TRUE. Otherwise, it is FALSE.
If In1 > In2 > ... > InN, Out is TRUE. Otherwise, it is FALSE.
If In1 >= In2 >= ... >= InN, Out is TRUE. Otherwise, it is FALSE.
The data is compared as unsigned integers.
The numerically larger value is considered to be larger.
Later dates or times of day are considered to be larger.
The specifications are the same as for the LTascii, LEascii, GTascii, and
GEascii instructions (page 2-104). Refer to the specified page for details.
Valid range
Depends on data type.
Depends on data type.
Integers
Value of Out
Relationship

NY-series Instructions Reference Manual (W560)

Unit
Default
---
0*
---
---
Times, durations,
dates, and text strings
*

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents