Neascii - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions

NEascii

The NEascii instruction determines if two text strings are not equivalent.
Instruction
Name
NEascii
Text String Com-
parison Not
Equal
Variables
Name
Meaning
In1 and In2
Comparison
text strings
Out
Comparison
result
* If you omit an input parameter, the default value is not applied. A building error will occur.
Bit strings
In1 and In2
Out
OK
Function
The NEascii instruction determines if two text strings In1 and In2 are not equivalent. If they are different,
comparison result Out will be TRUE. If they are the same, comparison result Out will be FALSE. "Equiv-
alent" means that both the lengths and contents of the text strings are the same.
The following example is for when In1 is "A" and In2 is "AB". The value of variable abc will be TRUE.
LD
EN
'A'
In1
'AB'
In2
2-102
FB/FUN
FUN
I/O
Description
Input
Text strings to compare
Output
Comparison result
abc
NEascii
Graphic expression
(@)NEascii
EN
Out
In1
In2
Valid range
Depends on data type.
Depends on data type.
Integers
ST
abc:=NEascii('A', 'AB');
NY-series Instructions Reference Manual (W560)
ST expression
Out:=NEascii(In1, In2);
Unit
Default
*
---
---
---
Times, durations,
dates, and text strings
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents