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 #218 background imageLoading...
Page #218 background image
2 Instruction Descriptions
2-170
NJ-series Instructions Reference Manual (W502)
ABS
The ABS instruction finds the absolute value of an integer or real number.
*1 If you omit an input parameter, the default value is not applied. A building error will occur.
*2 Negative numbers are excluded.
The ABS instruction outputs the absolute value of the number to process In. The data types of In and
absolute value Out can have different data types.
The following example is for when In is REAL#−10.3. The value of variable abc will be REAL#10.3.
Instruction Name FB/FUN Graphic expression ST expression
ABS Absolute Value FUN Out:=ABS(In);
Variables
Name Meaning I/O Description Valid range Unit Default
In Number to
process
Input Number to process Depends on data type.
--- *1
Out Absolute
value
Output Absolute value Depends on data type.
*2
--- ---
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
In OK OK OK OK OK OK OK OK OK OK
Out OKOKOKOKOKOKOKOKOKOK
Function
(@)ABS
EN ENO
In Out
abc:=ABS(REAL#-10.3);
LD ST
abc
REAL#-10.3
ABS
EN ENO
In

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