Eqascii - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions

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
2-100
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');
NY-series Instructions Reference Manual (W560)
ST expression
Out:=EQascii(In1, ··,
InN);
Unit
Default
---
'' *
---
---
Times, durations,
dates, and text strings
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents