Arysub - Omron NY532-5400 Reference Manual

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

Advertisement

ArySub

The ArySub instruction subtracts corresponding elements of two arrays.
Instruction
ArySub
Array Subtraction
Variables
Name
Meaning
In1[] (array) Minuend
array
In2[] (array) Subtrahend
array
Size
Number of
elements
AryOut[]
Subtraction
(array)
results
array
Out
Return
value
* If you omit an input parameter, the default value is not applied. A building error will occur.
Bit string
In1[] (array)
In2[] (array)
Size
AryOut[]
(array)
Out
OK
Function
The ArySub instruction subtracts Size elements of subtrahend array In2[] from corresponding ele-
ments of minuend array In1[] starting with In1[0] and In2[0]. It outputs the subtraction results to sub-
traction results array AryOut[].
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
I/O
Description
Minuend array
Subtrahend array
Input
Number of elements for sub-
traction
In-out
Subtraction results array
Output
Always TRUE
OK OK OK OK OK OK OK OK OK OK
Must be same data type as In1[].
OK
Must be same data type as In1[].
Graphic expression
(@)ArySub
EN
ENO
In1
Out
In2
Size
AryOut
Valid range
Depends on data type.
Depends on data type.
TRUE only
Integers
2 Instruction Descriptions
ST expression
ArySub(In1, In2, Size, Ary-
Out);
Unit
Default
*
---
1
---
---
---
---
Times, durations, dates,
and text strings
2
2-225

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents