Special Math Instructions - Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions

Special Math Instructions

ROTB
Instruction
BINARY ROOT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
First source word
R
Result word
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
OK
OK
OK
R
Flags
Name
Error Flag
Equals Flag
Overflow Flag
Underflow Flag
Negative Flag
440
Mnemonic
Variations
ROTB
@ROTB
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
• ON if bit 15 of S+1 is 1 (ON).
• OFF in all other cases.
=
• ON if the result is 0000.
• OFF in all other cases.
OF
• ON if the content of S+1 and S is 4000 0000 to 7FFF FFFF.
• OFF in all other cases.
UF
OFF
N
OFF
Function
code
Computes the square root of the 32-bit signed
binary contents (positive value) of the specified
620
words and outputs the integer portion of the result
to the specified result word.
ROTB
ROTB(620)
S: First source word
S
R: Result word
R
Subroutines
OK
Data type
UDINT
UINT
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
---
OK
OK
---
OK
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
2
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
TR
bits
---

Advertisement

Table of Contents
loading

Table of Contents