Special Math Instructions - Omron CJ - PROGRAMMING MANUAL 08-2008 Programming Manual

Programmable controllers
Hide thumbs Also See for CJ - PROGRAMMING MANUAL 08-2008:
Table of Contents

Advertisement

Special Math Instructions

Instruction
Symbol/Operand
Mnemonic
Code
DOUBLE EXCLU-
XNRL(613)
SIVE NOR
XNRL
@XNRL
613
I
1
: Input 1
I
2
: Input 2
R: 1st result word
COMPLEMENT
COM(029)
COM
@COM
029
Wd: Word
DOUBLE COM-
COML(614)
PLEMENT
COML
@COML
614
Wd: Word

3-12 Special Math Instructions

Instruction
Symbol/Operand
Mnemonic
Code
BINARY ROOT
ROTB(620)
ROTB
@ROTB
620
S: 1st source
word
R: Result word
BCD SQUARE
ROOT(072)
ROOT
ROOT
@ROOT
072
S: 1st source
word
R: Result word
ARITHMETIC
APR(069)
PROCESS
APR
@APR
069
C: Control word
S: Source data
R: Result word
112
Takes the logical exclusive NOR of corresponding bits in double
words of word data and/or constants.
I
1
(I
I
+1). (I
I
+1) + (I
,
,
1
1
2
2
I
2
I
I
+1
I
I
R
1
,
1
2
,
1
1
1
0
0
1
0
0
Turns OFF all ON bits and turns ON all OFF bits in Wd.
Wd → Wd: 1 → 0 and 0 → 1
Wd
Turns OFF all ON bits and turns ON all OFF bits in Wd and Wd+1.
(Wd+1, Wd) → (Wd+1, Wd)
Wd
Computes the square root of the 32-bit binary content of the specified
words and outputs the integer portion of the result to the specified
result word.
S
R
S+1
Binary data (32 bits)
Computes the square root of an 8-digit BCD number and outputs the
integer portion of the result to the specified result word.
S
R
S+1
BCD data (8 digits)
Calculates the sine, cosine, or a linear extrapolation of the source data.
The linear extrapolation function allows any relationship between X and
Y to be approximated with line segments.
C
S
R
Function
+1) → (R, R+1)
I
+1). (I
I
,
,
1
1
2
2
+1
R, R+1
2
1
0
0
1
Function
S
S
Section 3-12
Location
Execution condition
Output
Required
Output
Required
Output
Required
Location
Execution condition
Output
Required
R
Binary data (16 bits)
Output
Required
R
BCD data (4 digits)
Output
Required

Advertisement

Table of Contents
loading

Table of Contents