Special Math Instructions; Binary Root: Rotb(620) - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

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

Advertisement

Special Math Instructions

Flags
Precautions
Examples
3-14 Special Math Instructions

3-14-1 BINARY ROOT: ROTB(620)

Purpose
Ladder Symbol
Variations
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
When COML(614) is executed, the Error Flag will turn OFF.
If as a result of COML, the content of R, R+1 is 00000000 hex, the Equals
Flag will turn ON.
If as a result of COML, the leftmost bit of R+1 is 1, the Negative Flag will turn
ON.
When CIO 000000 is ON in the following example, the status of each bit in
D00100 and D00101 will be reversed.
This section describes instructions used for special math calculations.
Instruction
BINARY ROOT
BCD SQUARE ROOT
ARITHMETIC PROCESS
FLOATING POINT DIVIDE
BIT COUNTER
Computes the square root of the 32-bit signed binary contents (positive value)
of the specified words and outputs the integer portion of the result to the spec-
ified result word.
ROTB(620)
S: First source word
S
R: Result word
R
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Operation
OFF
ON when the result is 0.
OFF in all other cases.
ON when the leftmost bit of R is 1.
OFF in all other cases.
Mnemonic
ROTB
ROOT
APR
FDIV
BCNT
Section 3-14
Function code
Page
620
565
072
567
069
571
079
583
067
587
ROTB(620)
@ROTB(620)
Not supported.
565

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents