Addou (+Ou) - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions

AddOU (+OU)

The AddOU (+OU) instruction adds integers and real numbers. It also performs an overflow check for
integer addition result.
Instruction
AddOU (+OU)
Addition with
Overflow Check
Variables
Name
Meaning
In1 to InN
Add values
Out
Output
value
* 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
* If any of In1 to InN is REAL data, an overflow check is not performed.
Function
The AddOU (+OU) instruction adds between two and five integers or real numbers and outputs the
result to output value Out.
Add values In1 to InN can have different data types. However, use the combination that data types to
include are existed. If they are different, calculations are performed with the data type that includes the
range of all of the data types. For example, if In1 is INT data and In2 is DINT data, calculations are per-
formed with DINT data. Here, the addition result is DINT data.
Refer to Data Type Ranking Table and Casting Rules in the NJ/NX-series CPU Unit Software User's
Manual (Cat. No. W501) or NY-series Industrial Panel PC / Industrial Box PC Software User's Manual
(Cat. No. W558) for the including relationship on data types.
2-170
Name
FB/FUN
FUN
I/O
Description
Input
Numbers to add, N = 2 to 5
Output
Output value
OK OK OK OK OK OK OK OK OK * OK *
OK OK OK OK OK OK OK OK
Graphic expression
(@)AddOU
EN
ENO
In1
:
:
InN
(@)+OU
EN
ENO
In1
:
:
InN
Valid range
Depends on data type.
Depends on data type.
Integers
NY-series Instructions Reference Manual (W560)
ST expression
Out:=AddOU(In1, ···, InN);
Out
Out
Unit
---
---
Times, durations, dates,
and text strings
OK
OK
Default
0*
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents