5 Applied Instructions and Basic Usage
Instruction code Step
Type API
16-bit 32-bit
Pulse
instruction
Function
16-bit 32-bit
Page
No.
10
CMP DCMP
Comparing values 7 9 5-23
C
97
CNT DCNT – 16-bit counter 5 6 4-9
25
DEC DDEC Subtracting o
ne from a binary value 3 3 5-42
41
DECO –
Decoder 7 – 5-60
117
– DDEG
Converting a radian to a degree – 6 5-99
D
23
DIV DDIV
Binary division 7 9 5-40
42
ENCO –
Encoder 7 – 5-62
172
– DADDR
Floating-point addition – 13 5-122
175
– DDIVR
Floating-point division – 13 5-125
120
– DEADD
Binary floating-point addition 7 9 5-100
110
– DECMP
Comparing binary floating-point values 7 9 5-95
123
– DEDIV
Binary floating-point division 7 9 5-103
122
– DEMUL
Binary floating-point multiplication 7 9 5-102
127
– DESQR
Square root of a binary floating-point value 5 6 5-107
E
121
– DESUB
Binary floating-po
int subtraction 7 9 5-101
124
– DEXP Exponent of a binary floating-point value – 6 5-104
111
– DEZCP Binary floating-po
int zonal comparison 9 12 5-96
112
– DMOVR Tr
ansferring a floating-point value – 9 5-97
174
– DMULR Floating
-point multiplication – 13 5-124
173
– DSUBR Floating-
point subtraction – 13 5-123
49
–
Converting a binary integer into a binary
floating-point value
– 6 DFLT 5-71
16
FMOV DFMOV Tra
nsferring a value to several devices 7 13 5-32
F
78
FROM DFROM
Reading data from a control register in a special
module
9 12 5-81
24
INC DINC
Adding one to a binary value 3 3 5-41
I
129
–
DINT
Converting a binary floating-point value into a
binary integer
– 6 5-109
J
257
JMP – – Unconditional jump 3 – 5-141
215
LD& DLD& – S1&S2 5 7 5-126
217
LD^ DLD^ – S1^S2 5 7 5-126
216
LD| DLD| – S1|S2 5 7 5-126
226
LD< DLD< –
S1<S2
5 7 5-129
229
LD<= DLD<= –
S1≦ S2
5 7 5-129
228
LD<> DLD<> – S1≠S2 5 7 5-129
224
LD= DLD= –
S1=S2
5 7 5-129
L
225
LD> DL
D> – 5 7 5-129
S1>S2
230
LD>= DLD>= –
S1≧ S2
5 7 5-129
125
– DLN
Natural logarithm of a binary floating-point value – 6 5-105
126
– DLOG Loga
rithm of a binary floating-point value – 9 5-106
90
LDP – – Starting rising-edge detection 3 – 4-10
91
LDF – – St
arting falling-edge detection 3 – 4-11
45
MEAN DMEAN
Mean 7 13 5-66
259
MMOV –
Converting a 16-bit value into a 32-bit value 6 – 5-143
100
MODRD – – Reading Modbus data 7 – 5-86
101
MODWR – – Writing Modbus data 7 – 5-90
12
MOV DMOV
Transferring a value 5 6 5-25
M
22
MUL DMUL
Binary multipli
cation 7 9 5-39
N
29
NEG DNEG
Taking the two’s complement of a value 3 3 5-46
221
OR& DOR& – S1&S2 5 7 5-128
O
223
OR^ DOR^ – S1^S2 5 7 5-128
DVP-20PM Application Manual
5-11