5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-2
Instruction code
Model
supported
Step
Type API
16-bit 32-bit
Pulse
instruction
Function
20PM 16-bit 32-bit
Page
No.
40
ZRST –
Resetting a zone
5 – 5-59
41
DECO –
Decoder
7 – 5-60
42
ENCO –
Encoder
7 – 5-62
43
SUM DSUM
Number of bits which are ON
5 9 5-64
44
BON DBON
Checking the state of a bit
7 13 5-65
45
MEAN DMEAN
Mean
7 13 5-66
46
ANS – – Driving an annunciator
7 -– 5-67
47
ANR –
Resetting an annunicator
1 – 5-68
48
SQR DSQR
Square root of a binary value
5 9 5-70
Data processing
49
– DFLT
Converting a binary integer into a
binary floating-point value
– 6 5-71
High-speed
processing
50
REF –
Refreshing the states of I/O devices
5 – 5-73
61
SER DSER
Searching data
9 17 5-74
66
ALT –
Alternating between ON and OFF 3 - 5-76
67
RAMP DRAMP – Ramp
9 17 5-77
Convenience
69
SORT DSORT – Sorting data 11 21 5-79
78
FROM DFROM
Reading data from a control register in
a special module
9 12 5-81
79
TO DTO
Writing data into a control register in a
special module
9 13 5-82
I/O
87
ABS DABS
Absolute value
3 5 5-85
89
PLS – – Rising-edge output
3 – 4-14
90
LDP – – Starting rising-edge detection
3 – 4-10
91
LDF – – Starting falling-edge detection
3 – 4-11
92
ANDP – –
Connecting rising-edge detection in
series
3 – 4-11
93
ANDF – –
Connecting falling-edge detection in
series
3 – 4-12
94
ORP – –
Connecting rising-edge detection in
parallel
3 – 4-12
95
ORF – –
Connecting falling-edge detection in
parallel
3 – 4-13
96
TMR – – 16-bit timer
5 – 4-9
97
CNT DCNT – 16-bit counter
5 6 4-9
Basic instructions
99
PLF – – Falling-edge output
3 – 4-14
100
MODRD – – Reading Modbus data
7 – 5-86
Communication
101
MODWR – – Writing Modbus data
7 – 5-90
110
– DECMP
Comparing binary floating-point values
7 9 5-95
111
– DEZCP
Binary floating-point zonal comparison
9 12 5-96
112
– DMOVR
Transferring a floating-point value
– 9 5-97
116
– DRAD
Converting a degree to a radian
– 6 5-98
117
– DDEG
Converting a radian to a degree
– 6 5-99
120
– DEADD
Binary floating-point addition
7 9 5-100
Floating-point
value
121
– DESUB
Binary floating-point subtraction
7 9 5-101