EasyManua.ls Logo

Omron NJ501-1500 - Page 37

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
Loading...
1-5
1 Instruction Set
NJ-series Instructions Reference Manual (W502)
Instruction Set
1
Counter Instruc-
tions
CTD Down-counter Decrements the counter value when the
counter input signal is received. The preset
value and counter value must have an INT
data type.
2-134
CTD_** Down-counter
Group
Decrements the counter value when the
counter input signal is received. The preset
value and counter value must be one of the fol-
lowing data types: DINT, LINT, UDINT, or
ULINT.
2-136
CTU Up-counter Increments the counter value when the counter
input signal is received. The preset value and
counter value must have an INT data type.
2-138
CTU_** Up-counter Group Increments the counter value when the counter
input signal is received. The preset value and
counter value must be one of the following data
types: DINT, LINT, UDINT, or ULINT.
2-140
CTUD Up-down Counter Creates an up-down counter that operates
according to an up-counter input and a down-
counter input. The preset value and counter
value must have an INT data type.
2-142
CTUD_** Up-down Counter
Group
Creates an up-down counter that operates
according to an up-counter input and a down-
counter input. The preset value and counter
value must be one of the following data types:
DINT, LINT, UDINT, or ULINT.
2-146
Math Instruc-
tions
ADD (+) Addition Adds integers and real numbers. Also joins text
strings.
2-152
AddOU (+OU) Addition with
Overflow/
Underflow Check
Adds integers and real numbers. Also per-
forms an overflow/underflow check.
2-154
SUB (-) Subtraction Subtracts integers and real numbers. 2-156
SubOU (-OU) Subtraction with
Overflow/
Underflow Check
Subtracts integers or real numbers. Also per-
forms an overflow/underflow check.
2-158
MUL (*) Multiplication Multiplies integers and real numbers. 2-161
MulOU (*OU) Multiplication with
Overflow/
Underflow Check
Multiplies integers and real numbers and out-
puts the result. It also performs an over-
flow/underflow check.
2-163
DIV (/) Division Divides integers or real numbers. 2-166
MOD Modulo-division Finds the remainder for division of integers. 2-168
ABS Absolute Value Finds the absolute value of an integer or real
number.
2-170
RadToDeg Radians to
Degrees
Converts a real number from radians (rad) to
degrees (°).
2-172
DegToRad Degrees to
Radians
Converts a real number from degrees (°) to
radians (rad).
2-172
SIN Sine in Radians Calculates the sine of a real number. 2-174
COS Cosine in Radians Calculates the cosine of a real number. 2-174
TAN Tangent in Radians Calculates the tangent of a real number. 2-174
ASIN Principal Arc Sine Calculates the arcsine of a real number. 2-177
ACOS Principal Arc
Cosine
Calculates the arccosine of a real number. 2-177
ATAN Principal Arc
Tangent
Calculates the arctangent of a real number. 2-177
Type Instruction Name Function Page

Table of Contents

Related product manuals