452
Special Math Instructions Section 3-13
Variations
Applicable Program Areas
Operand Specifications
Description ROTB(620) computes the square root of the 32-bit binary number in S+1 and
S and outputs the integer portion of the result to R. The non-integer remainder
is eliminated.
The range of data that can be specified for words S+1 and S is 0000 0000 to
3FFF FFFF. If a number from 4000 0000 to 7FFF FFFF is specified, it will be
treated as 3FFF FFFF for the square root computation. An error will occur if
the content of the source words is greater than 7FFF FFFF, i.e., if bit 15 of
S+1 is 1.
Flags
Variations Executed Each Cycle for ON Condition ROTB(620)
Executed Once for Upward Differentiation @ROTB(620)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Area S R
CIO Area CIO 0 to CIO 6142 CIO 0 to CIO 6143
Work Area W0 to W510 W0 to W511
Holding Bit Area H0 to H510 H0 to H511
Auxiliary Bit Area A0 to A958 A448 to A959
Timer Area T0000 to T4094 T0000 to T4095
Counter Area C0000 to C4094 C0000 to C4095
DM Area D0 to D32766 D0 to D32767
Indirect DM addresses
in binary
@ D0 to @ D32767
Indirect DM addresses
in BCD
*D0 to *D32767
Constants #00000000 to #FFFFFFFF
(binary)
---
Data Registers DR0 to DR15
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
RS+1 S
Binary data (32 bits) Binary data (16 bits)
Name Label Operation
Error Flag ER ON if bit 15 of S+1 is 1 (ON).
OFF in all other cases.
Equals Flag = ON if the result is 0000.
OFF in all other cases.