Download Cable Electronics DVP14 Specifications

Transcript
10. Additional Special Devices and Instructions
M0
10.2. New Application Instructions
The version V5.5 or above of ES / EX / SS series has the following new
commands.
RST
M1081
DFLT
D0
D10
DEXP
D10
D20
DEBCD D 2 0
D30
M1
D
124
S
EXP
D
Convert decimal of binary
number system to perform
exponent operation
Device Bit device
Word device
X
Y
M
S
K
H
KnX
KnY
KnM KnS T
Operand
C
D
S
Ϩ
D
Ϩ
S
: the source device for operation
D
: operation result device
Take e =2.71828 as the base and use
EXP operation.
exp[ S +1,
S ]=[ D +1,
E
F
S
as exponent to perform the
D ]
S
are all valid. Be
sure to use 32-bit data format to assign the D register. Because
using the floating point format to perform the EXP operation is necessary,
S has to be converted to the floating point value.
The content value of D operand= e S ; e=2.71828, S is the assigned
source data.
(Zero flag, Carry flag, Overflow flag are valid and Error flag M1067,
M1068 read D1067, D1068)
10-4
Ϩʳ When M0 is ON, the data of (D0, D1) is converted to decimal of binary
number system and the result is stored in the (D10, D11) register.
Ϩʳ When M1 is ON, use (D10, D11) as exponent to perform the EXP
operation. The result is decimal of binary number system and will be
stored in the (D20, D21) register.
Ϩʳ When M2 is ON, the data of (D20, D21) is converted from binary to
decimal and the result is stored in (D30, D31) register. (At that time, the
D31
result=D30 x 10 )
The positive and negative values of the content of
Program example:
M2
D
125
LN
S
D
Convert decimal of binary
number system to perform
natural logarithm operation
Device Bit device
Word device
X
Y
M
S
K
H
K
n
X
K
n
Y
KnM K n S T
Operand
C D
S
Ϩ
D
Ϩ
S
: the source device for operation
D : operation result device
Use
S
as operand to perform the LN operation.
ln[ S +1,
S ]=[ D +1,
D ]
E
F