Eqascii - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

EQascii

The EQascii instruction determines if two or more text strings are all equivalent.
Instruction
Name
EQascii
Text String Com-
parison Equal
Variables
Name
Meaning
In1 to InN
Comparison
text strings
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
Out
OK
Function
The EQascii instruction determines if from two to five text strings In1 to InN are all equivalent. If the are
all equivalent, comparison result Out changes to TRUE. Otherwise, the value of Out is FALSE. "Equiva-
lent" means that both the lengths and contents of the text strings are the same.
The following example is for when In1 is "A", In2 is "AB", and In3 is "ABC". The value of variable abc will
be FALSE.
LD
EN
'A'
In1
'AB'
In2
'ABC'
In3
NJ-series Instructions Reference Manual (W502)
FB/FUN
FUN
I/O
Description
Input
Text strings to compare, N =
2 to 5
Output
Comparison result
abc
EQascii
Graphic expression
(@)EQascii
EN
Out
In1
:
:
InN
Valid range
Depends on data type.
Depends on data type.
Integers
ST
abc:=EQascii('A', 'AB', 'ABC');
2 Instruction Descriptions
ST expression
Out:=EQascii(In1, ··,
InN);
Unit
Default
'' *
---
---
---
Times, durations,
dates, and text strings
2
OK
2-91

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents