Root (Root) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

7: B
A
INARY
RITHMETIC

ROOT (Root)

ROOT(*)
*****
Valid Devices
Device
S1 (Source 1)
D1 (Destination 1)
For valid device address ranges, see "Device Addresses" on page 2-1.
When F (float) data is selected and source device S1 contains a negative value, a user program execution error will result, turning on special internal
relay M8004 and the ERR LED on the FC6A Series MICROSmart.
When F (float) data is selected and S1 does not comply with the normal floating-point format, a user program execution error will result, turning on
special internal relay M8004 and ERR LED on the FC6A Series MICROSmart.
When a user program execution error occurs, the execution of the instruction is canceled. The value of D1 is left unchanged and the next instruction
is executed. For user program execution errors, see "User Program Execution Errors" on page 3-10.
Since the ROOT instruction is executed in each scan while input is on, a pulse input from a SOTU or SOTD instruction should be used.
Valid Data Types
W (word)
X
I (integer)
D (double word)
X
L (long)
F (float)
X
Examples: ROOT
ROOT(W)
I0
ROOT(D)
I1
ROOT(F)
I2
7-14
I
NSTRUCTIONS
Data type W:
S1
D1
*****
Data type D:
Data type F:
Function
Binary data
Destination to store results
When a word device such as D (data register) is assigned as the source or destination, 1 point (word data) or 2
points (double-word or float data) are used.
Before Execution
S1
D1
D10
D10
D20
S1
D1
D11·D12
D11
D21
D13·D14
S1
D1
D13
D23
FC6A S
MICROS
ERIES
S1
D1
When input is on, the square root of the device assigned by S1 is extracted
and stored to the destination assigned by D1.
The square root is calculated to two decimals, omitting the figures below
the second place of decimals, and multiplied by 100.
S1·S1+1
When input is on, the square root of the device assigned by S1·S1+1 is
extracted and is stored to the destination assigned by D1·D1+1.
The square root is calculated to two decimals, omitting the figures below
the second place of decimals, and multiplied by 100.
S1·S1+1
When input is on, the square root of the device assigned by S1·S1+1 is
extracted and is stored to the destination assigned by D1·D1+1.
I
Q
55
4294967295
4294967295
=
20.738916
20.738916 = 4.554...
L
P
MART
ADDER
ROGRAMMING
D1·D1+1
D1·D1+1
M
R
T
C
D
P
X
X
After Execution
741
D20
6553599
D21·D22
65535.99999
D23·D24
4.554
M
FC9Y-B1726
ANUAL
Constant
Repeat
X
55
=
7.4161

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents