EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #206 background imageLoading...
Page #206 background image
2 Instruction Descriptions
2-158
NJ-series Instructions Reference Manual (W502)
SubOU (-OU)
The SubOU (-OU) instruction subtracts integers or real numbers. It also performs an overflow/underflow
check.
* If you omit an input parameter, the default value is not applied. A building error will occur.
The SubOU (-OU) instruction subtracts subtrahend In2 from minuend In1 and outputs the result. The
data types of In1, In2, and subtraction result Out can have different data types. If the subtraction result
exceeds the valid range of the data type that includes the data types of In1 and In2, the value of the
P_CY system-defined variable (Carry Flag) changes to TRUE. This indicates that an overflow or an
underflow has occurred.
If Out is a real number and an overflow or underflow occurs, the value of Out is positive or negative
infinity. If Out is an integer, only the bits of the subtraction result that fit in the data type of Out are
assigned to Out.
Instruction Name FB/FUN Graphic expression ST expression
SubOU (-OU) Subtraction with
Overflow/Under-
flow Check
FUN Out:=SubOU(In1, In2);
Variables
Name Meaning I/O Description Valid range Unit Default
In1 Minuend
Input
Minuend
Depends on data type. ---
0*
In2 Subtrahend Subtrahend
Out Subtrac-
tion result
Output Subtraction result Depends on data type.
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In1 OKOKOKOKOKOKOKOKOKOK
In2 OKOKOKOKOKOKOKOKOKOK
Out OKOKOKOKOKOKOKOKOKOK
Function
(@)SubOU
EN ENO
In1 Out
In2
(@)-OU
EN ENO
In1 Out
In2

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals