Specifications

7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-26
After getting the sqare root of the content of devi ce that
S
designates, save it into the device that
D
designates.
The value that
S
can designate is positive number. If
S
designates negative number, PLC will regard it as command operation
error, M8067=On and this command won’ t be executed.
D
just gets the integer of the result and the decimal will be
discarded. If there is decimal discarded, carrying flag M1021=On.
If the operation result of
D
is 0, zero flag M1020=On.
Program Example
SQR D12D0
X10
D0 D12
Ϩʳ When X10=On, the content of D0 will be saved in D12 after the
operation of square root.
D
49 FLT
S D
BIN integer decimal of binary
number system
Bit device Word device
Device
Operand
XYMS K H
KnX KnY
KnM
KnS
TCDE F
S
Ϩ
D
Ϩ
S
: change source device.
D
: the device that used to save
change result.
When M1081=Off, convert BIN integer to decimal of binary system.
When M1081=On, convert decimal of binary system to BIN integer
(discard the value of decimal)
Constant K and H will be converted to decimal of binary system in
decimal operation so they don’ t need to use this command to convert.
Program Example
FLT D12D0
X10
DFLT D20D0
X11
Ϩʳ When X10=On, D0(BIN integer) will be converted to D13, D12(decimal
of binary system)
Ϩʳ When X11=On, D1 and D0(BIN integer) will be converted to D21,
D20(decimal of binary system)
Program Example
Using application command to complete the following operation.
(D10)
˄ˉˀ˵˼̇ʳ˕˜ˡ
(X7~X0)
˅ˀ˵˼̇ʳ˕˖˗
ø
K61.5
Ø
(D101, D100) (D200) BIN
(D203, D202)
(D401, D400)
(D301, D300)
12
3
45
6
ʻ˗ʳ˅˄ʳʿʳ˗ʳ˅˃ʼ
(
D31, D30
)
ˆ˅ˀ˵˼̇ʳ˼́̇˸˺˸̅
˷˸˶˼̀˴˿ʳ̂˹ʳ˷˸˶˼̀˴˿ʳ̆̌̆̇˸̀
(
D41, D40
)
7
8
˷˸˶˼̀˴˿ʳ̂˹ʳ˵˼́˴̅̌ʳ̆̌̆̇˸̀
˷˸˶˼̀˴˿ʳ̂˹ʳ˵˼́˴̅̌ʳ̆̌̆̇˸̀˷˸˶˼̀˴˿ʳ̂˹ʳ˵˼́˴̅̌
˷˸˶˼̀˴˿ʳ̂˹ʳ˵˼́˴̅̌ʳ̆̌̆̇˸̀
˷˸˶˼̀˴˿ʳ̂˹ʳ˵˼́˴̅̌ʳ̆̌̆̇˸̀
ʻ˹̂̅ʳ̀̂́˼̇̂̅ʼ
̆̌̆̇˸̀