5 Applied Instructions and Basic Usage
Instruction code Step
Type API
16-bit 32-bit
Pulse
instruction
Function
16-bit 32-bit
Page
No.
222
OR| DOR| – S1|S2 5 7 5-128
242
OR< DOR< –
S1<S2
5 7 5-131
245
OR<= DOR<= –
S1≦ S2
5 7 5-131
244
OR<> DOR<> – S1 ≠ S2 5 7 5-131
240
OR= DOR= –
S1=S2
5 7 5-131
241
OR> DOR> –
S1>S2
5 7 5-131
246
OR>= DOR>= –
S1≧ S2
5 7 5-131
95
ORF – – Connecting falling-edge detection in parallel 3 – 4-13
O
94
ORP – – Connecting rising-edge detection in parallel 3 – 4-12
99
PLF – – Falling-edge output 3 – 4-14
89
PLS – – Rising-edge output 3 – 4-14
P
128
– DPOW
Power of a floating-point value – 9 5-108
116
– DRAD
Converting a degree to a radian – 6 5-98
67
RAMP DRAMP – Ramp 9 17 5-77
154
RAND DRAND
Random value 7 13 5-133
33
RCL DRCL
Rotating bits leftwards with a carry flag 5 9 5-51
32
RCR DRCR
Rotating bits rightward with a carry flag 5 9 5-50
50
REF –
Refreshing the states of I/O devices 5 - 5-73
260
RMOV –
Converting a 32-bit value into a 16-bit value 6 – 5-144
31
ROL DROL
Rotating bits leftwards 5 9 5-49
30
ROR DROR
Rotating bits rightwards 5 9 5-48
09
RPE – – End of a nested loop 1 – 5-22
R
08
RPT – – Start of a nested loop (only one loop) 3 – 5-21
202
SCAL –
Scale 9 – 5-134
203
SCLP DSCLP
Parameter scale 7 13 5-136
61
SER DSER
Searching data 9 17 5-74
39
SFRD –
Moving a value and reading it from a word device 7 – 5-58
35
SFTL –
Moving the states of bit devices leftwards 9 – 5-53
34
SFTR –
Moving the states of bit devices rightwards 9 – 5-52
38
SFWR –
Moving a value and writing it into a word device 7 – 5-57
13
SMOV –
Transferring digits 11 – 5-26
69
SORT DSORT – Sorting data 11 21 5-79
130
– DSIN
Sine of a binary floating-point value 5 6 5-110
136
– DSINH
Hyperbolic sine of a binary floating-point value – 6 5-119
48
SQR DSQR
Square root of a binary value 5 9 5-70
02
SRET – – Indicating that a subroutine ends 1 – 5-18
21
SUB DSUB
Binary subtraction 7 9 5-38
43
SUM DSUM
Number of bits which are ON 5 9 5-64
S
147
SWAP DSWAP
Interchanging the high byte in a device with the
low byte in the device
3 5 5-132
132
– DTAN
Tangent of a binary floating-point value 5 6 5-114
138
– DTANH
Hyperbolic tangent of a binary floating-point value – 6 5-121
96
TMR – – 16-bit timer 5 – 4-9
T
79
TO DTO
Writing data into a control register in a special
module
9 13 5-82
26
WAND DWAND
Logical AND operation 7 9 5-43
07
WDT –
Watchdog timer 1 – 5-20
27
WOR DWOR
Logical OR operation 7 9 5-44
37
WSFL –
Moving the values in word devices leftwards 9 – 5-56
36
WSFR –
Moving the values in word devices rightwards 9 – 5-54
W
28
WXOR DWXOR
Logical exclusive OR operation 7 9 5-45
DVP-20PM Application Manual
5-12