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
Joining Text Strings
If In1 to InN are STRING data, the text strings are joined. However, if In1 to InN are STRING data, you
must use the instruction in a ladder diagram.
The following example is for when In1 is UV, In2 is WX and In3 is YZ. The value of STRING variable
abc will be 'UVWXYZ'.
LD
EN
In1
'UV'
'WX'
In2
In3
'YZ'
'UV'
In1
Text strings joined.
'WX'
In2
'YZ'
In3
Differences in Specifications between Ladder Diagrams and ST
Specifications of this instruction depend on whether it is used in a ladder diagram or ST. The following
table gives the differences in specifications. In ladder diagrams, the specifications of the ADD instruc-
tion and the + instruction are exactly the same.
Item
Maximum number of values to
add
Omitting input parameters for
values to add
Existence of EN and ENO vari-
ables
Number of data processing bits
if the values to add are all inte-
ger data
Joining of text strings
Errors
*1 However, you can use more instructions if you use them as operators in an expression, such as result := val1
+ val2 + val3;. You can use up to 64 instructions in one expression.
*2 The number of processing bits is aligned with the largest data type of all the values to add. For example, if you
add SINT, INT, and DINT data, the data processing bits will be aligned to the size of DINT data, i.e., 32-bit pro-
cessing is performed.
*3 If there is no LINT or ULINT data in the values to add, 32-bit processing is used. For example, if two SINT val-
ues are added, 32-bit processing is used. If there is LINT or ULINT data in the values to add, 64-bit processing
is used.
2-168
ADD
ENO
abc
'UVWXYZ'
Out=abc
Ladder diagram
5
You can omit everything except for
the input parameters connected to
InN.
Present
8, 16, 32, or 64
Possible.
An error occurs if the size that results
from joining text strings exceeds
1,986 bytes.
*1
2
You cannot omit any input parame-
ters.
None
*2
32 or 64
Not possible.
None

NY-series Instructions Reference Manual (W560)

ST
*3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents