EasyManuals Logo

Omron CQM1H - PROGRAM User Manual

Omron CQM1H - PROGRAM
602 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
Page #352 background imageLoading...
Page #352 background image
327
BCD Calculation Instructions Section 5-21
5-21-11 SQUARE ROOT – ROOT(72)
Limitations DM 6144 to DM 6655 cannot be used for R.
Description When the execution condition is OFF, ROOT(72) is not executed. When the
execution condition is ON, ROOT(72) computes the square root of the eight-
digit content of Sq and Sq+1 and places the result in R. The fractional portion
is truncated.
Flags ER: Sq is not BCD.
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
EQ: ON when the result is 0.
Example The following example shows how to take the square root of an eight digit
number. The result is a four-digit number, with the remainder rounded off. and
then round the result.
In this example,
63250561 = 7953.0221..., which is rounded off to 7953.
Sq: First source word (BCD)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
R: Result word
IR, SR, AR, DM, EM, HR, LR
Ladder Symbols Operand Data Areas
ROOT(72)
Sq
R
@ROOT(72)
Sq
R
R
Sq+1 Sq
00000
@ROOT(72)
DM 0000
001
DM 0001 DM 0000
6325 05 61
63,250,561 = 7953.0221
001
79 5 3
Address Instruction Operands
00000 LD 00000
00001 @ROOT(72)
DM 0000
001
(The remainder is rounded off.)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CQM1H - PROGRAM and is the answer not in the manual?

Omron CQM1H - PROGRAM Specifications

General IconGeneral
I/O CapacityUp to 512 points
Power Supply100 to 240 VAC, 50/60 Hz or 24 VDC (depending on model)
Instruction SetBasic and advanced instructions
Operating Temperature0 to 55°C
Program Capacity7.2K to 15.2K steps
Communication PortsRS-232C
Expansion SlotsUp to 3 expansion units
TypeProgrammable Logic Controller (PLC)
CPU TypeRISC
Program Memory7.2K to 15.2K steps
I/O Points512 max
Expansion CapabilityUp to 3 expansion units
Data MemoryRAM (battery backup)

Related product manuals