0% found this document useful (0 votes)
535 views4 pages

PLC Instruction List

This document categorizes and describes 58 instruction codes used in application programming. It lists the mnemonic, applicable bit sizes, functions, and applicable device types for each instruction. The instructions are grouped into categories like conditional jumps, arithmetic operations, data processing, high speed processing and more. For each instruction, the document also specifies the applicable page in the manual where its use is described further.

Uploaded by

PrestoneK
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
535 views4 pages

PLC Instruction List

This document categorizes and describes 58 instruction codes used in application programming. It lists the mnemonic, applicable bit sizes, functions, and applicable device types for each instruction. The instructions are grouped into categories like conditional jumps, arithmetic operations, data processing, high speed processing and more. For each instruction, the document also specifies the applicable page in the manual where its use is described further.

Uploaded by

PrestoneK
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 4

5 Categories & Use of Application Instructions

5.1 List of Instructions

Mnemonic P Applicable to STEPS


API instruction
Function Page
Category 16-bit 32-bit ES SA EH 16-bit 32-bit
00 CJ - 3 Conditional Jump 3 3 3 3 - 6-1
01 CALL - 3 Call Subroutine 3 3 3 3 - 6-5
02 SRET - - Subroutine Return 3 3 3 1 - 6-5
3 3 3
Loop Control

03 IRET - - Interrupt Return 1 - 6-8


04 EI - - Enable Interrupts 3 3 3 1 - 6-8
05 DI - - Disable Interrupts 3 3 3 1 - 6-8
The End of The Main Program
06 FEND - - 3 3 3 1 - 6-12
(First End)
07 WDT - 3 Watchdog Timer Refresh 3 3 3 1 - 6-14
08 FOR - - Start of a FOR-NEXT loop 3 3 3 3 - 6-15
09 NEXT - - End of a FOR-NEXT loop 3 3 3 1 - 6-15
10 CMP DCMP 3 Compare 3 3 3 7 13 6-18
11 ZCP DZCP 3 Zone Compare 3 3 3 9 17 6-19
12 MOV DMOV 3 Move 3 3 3 5 9 6-20
Transmission
Comparison

13 SMOV - 3 Shift Move - 3 3 11 - 6-21


14 CML DCML 3 Compliment 3 3 3 5 9 6-23
15 BMOV - 3 Block Move 3 3 3 7 Ω 6-24
16 FMOV DFMOV 3 Fill Move 3 3 3 7 13 6-26
17 XCH DXCH 3 Exchange 3 3 3 5 9 6-27
18 BCD DBCD 3 Binary Coded Decimal 3 3 3 5 9 6-29
19 BIN DBIN 3 Binary 3 3 3 5 9 6-30
20 ADD DADD 3 Addition 3 3 3 7 13 6-32
21 SUB DSUB 3 Subtraction 3 3 3 7 13 6-34
3 3 3 3
Four Arithmetic

22 MUL DMUL Multiplication 7 13 6-35


3 3 3 3
Operation

23 DIV DDIV Division 7 13 6-37


24 INC DINC 3 Increment 3 3 3 3 5 6-39
25 DEC DDEC 3 Decrement 3 3 3 3 5 6-40
26 WAND DAND 3 Logical Word AND 3 3 3 7 13 6-41
27 WOR DOR 3 Logical Word OR 3 3 3 7 13 6-42
28 WXOR DXOR 3 Logical Exclusive OR 3 3 3 7 13 6-43
29 NEG DNEG 3 2’s Complement (Negative) 3 3 3 3 5 6-44
30 ROR DROR 3 Rotation Right 3 3 3 5 9 6-46
31 ROL DROL 3 Rotation Left 3 3 3 5 9 6-47
32 RCR DRCR 3 Rotation Right with Carry 3 3 3 5 9 6-48
Displacement

3 3 3 3
Rotation &

33 RCL DRCL Rotation Left with Carry 5 9 6-49


34 SFTR - 3 Bit Shift Right 3 3 3 9 - 6-50
35 SFTL - 3 Bit Shift Left 3 3 3 9 - 6-51
36 WSFR - 3 Word Shift Right - 3 3 9 - 6-52
37 WSFL - 3 Word Shift Left - 3 3 9 - 6-54
38 SFWR - 3 Shift Register Write - 3 3 7 - 6-55
39 SFRD - 3 Shift Register Read - 3 3 7 - 6-56
40 ZRST - 3 Zero Reset 3 3 3 5 - 6-57
41 DECO - 3 Decode 3 3 3 7 - 6-59
Data Processing

42 ENCO - 3 Encode 3 3 3 7 - 6-61


43 SUM DSUM 3 Sum of Active Bits 3 3 3 5 9 6-63
44 BON DBON 3 Check Specified Bit Status 3 3 3 7 13 6-64
45 MEAN DMEAN 3 Mean 3 3 3 7 13 6-65
46 ANS - - Timed Annunciator Set - 3 3 7 - 6-66
47 ANR - 3 Annunciator Reset - 3 3 1 - 6-66
48 SQR DSQR 3 Square Root 3 3 3 5 9 6-72
49 FLT DFLT 3 Floating Point 3 3 3 5 9 6-70
50 REF - 3 Refresh 3 3 3 5 - 7-1
High Speed
Processing

51 REFF - 3 Refresh and Filter Adjust - 3 3 3 - 7-2


52 MTR - - Input Matrix - 3 3 9 - 7-3
53 - DHSCS - High Speed Counter Set 3 3 3 - 13 7-5
54 - DHSCR - High Speed Counter Reset 3 3 3 - 13 7-15

DVP-PLC Application Manual 5-1


5 Categories & Use of Application Instructions

Mnemonic P Applicable to STEPS


API instruction
Function Page
Category 16-bit 32-bit ES SA EH 16-bit 32-bit
55 - DHSZ - High Speed Zone Compare - 3 3 - 17 7-17
High Speed
Processing

56 SPD - - Speed Detection 3 3 3 7 - 7-24


57 PLSY DPLSY - Pulse Y Output 3 3 3 7 13 7-26
58 PWM - - Pulse Width Modulation 3 3 3 7 - 7-32
59 PLSR DPLSR - Pulse Ramp 3 3 3 9 17 7-35
60 IST - - Initial State 3 3 3 7 - 7-39
Handy Instructions

61 SER DSER 3 Search a Data Stack - 3 3 9 17 7-45


62 ABSD DABSD - Absolute Drum Sequencer - 3 3 9 17 7-46
63 INCD - - Incremental Drum Sequencer - 3 3 9 - 7-48
64 TTMR - - Teaching Timer - 3 3 5 - 7-50
65 STMR - - Special Timer - 3 3 7 - 7-52
66 ALT - 3 Alternate State 3 3 3 3 - 7-54
67 RAMP - - Ramp Variable Value - 3 3 9 - 7-55
69 SORT - - Sort Tabulated Data - 3 3 11 - 7-57
70 TKY DTKY - Ten Key Input - 3 3 7 13 7-59
Display of External

71 HKY DHKY - Hexadecimal Key Input - 3 3 9 17 7-61


72 DSW - - Digital Switch - 3 3 9 - 7-64
Settings

73 SEGD - 3 Seven Segment Decoder 3 3 3 5 - 7-66


74 SEGL - - Seven Segment with Latch 3 3 3 7 - 7-67
75 ARWS - - Arrow Switch - 3 3 9 - 7-70
76 ASC - - ASCII Code Conversion - 3 3 11 - 7-72
77 PR - - Print (ASCII Code Output) - 3 3 5 - 7-73
78 FROM DFROM 3 Read CR Data in Special Modules 3 3 3 9 17 7-75
Write CR Data into Special
79 TO DTO 3 3 3 3 9 17 7-76
Modules
80 RS - - Serial Communication Instruction 3 3 3 9 - 7-80
81 PRUN DPRUN 3 Parallel Run - 3 3 5 9 7-93
Serial I/O

82 ASCI - 3 Converts Hex to ASCII 3 3 3 7 - 7-94


83 HEX - 3 Converts ASCII to Hex 3 3 3 7 - 7-98
84 CCD - 3 Check Code - 3 3 7 - 7-101
85 VRRD - 3 Volume Read - 3 3 5 - 7-103
86 VRSC - 3 Volume Scale - 3 3 5 - 7-105
87 ABS DABS 3 Absolute Value 3 3 3 3 5 7-106
88 PID DPID - PID Control Loop 3 3 3 9 17 7-107
89 PLS - - Rising-edge Output 3 3 3 3 - 3-13
90 LDP - - Rising-edge Detection Operation 3 3 3 3 - 3-11
3 3 3
Basic Instructions

91 LDF - - Falling-edge Detection Operation 3 - 3-12


92 ANDP - - Rising-edge Series Connection 3 3 3 3 - 3-12
93 ANDF - - Falling-edge Series Connection 3 3 3 3 - 3-12
94 ORP - - Rising-edge Parallel Connection 3 3 3 3 - 3-13
95 ORF - - Falling-edge Parallel Connection 3 3 3 3 - 3-13
96 TMR - - 16-bit Timer 3 3 3 4 - 3-8
97 CNT DCNT - 16-bit / 32-bit Counter 3 3 3 4 6 3-9
98 INV - - Inverting Operation 3 3 3 1 - 3-15
99 PLF - - Falling-edge Output 3 3 3 3 - 3-14
100 MODRD - - Read Modbus Data 3 3 3 7 - 8-1
101 MODWR - - Write Modbus Data 3 3 3 7 - 8-5
Communication

102 FWD - - Forward Running of VFD-A 3 3 3 7 - 8-10


103 REV - - Reverse Running of VFD-A 3 3 3 7 - 8-10
104 STOP - - Stop VFD-A 3 3 3 7 - 8-10
105 RDST - - Read VFD-A Status 3 3 3 5 - 8-13
106 RSTEF - - Reset Abnormal VFD-A 3 3 3 5 - 8-15
107 LRC - 3 Checksum LRC Mode 3 3 3 7 - 8-16
108 CRC - 3 Checksum CRC Mode 3 3 3 7 - 8-18
109 SWRD - 3 Read Digital Switch - - 3 3 - 8-20

5-2 DVP-PLC Application Manual


5 Categories & Use of Application Instructions

Mnemonic P Applicable to STEPS


API instruction
Function Page
Category 16-bit 32-bit ES SA EH 16-bit 32-bit
110 - DECMP 3 Floating Point Compare 3 3 3 - 13 8-21
111 - DEZCP 3 Floating Point Zone Compare 3 3 3 - 17 8-22
112 - DMOVR 3 Move Floating Point Data 3 3 3 - 9 8-23
116 - DRAD 3 Angle Æ Radian - 3 3 - 9 8-24
117 - DDEG 3 Radian Æ Angle - 3 3 - 9 8-25
118 - DEBCD 3 Float to Scientific Conversion 3 3 3 - 9 8-26
119 - DEBIN 3 Scientific to Float Conversion 3 3 3 - 9 8-27
120 - DEADD 3 Floating Point Addition 3 3 3 - 13 8-29
121 - DESUB 3 Floating Point Subtraction 3 3 3 - 13 8-30
Floating Point Operation

122 - DEMUL 3 Floating Point Multiplication 3 3 3 - 13 8-31


123 - DEDIV 3 Floating Point Division 3 3 3 - 13 8-32
124 - DEXP 3 Exponent of Binary Floating Point 3 3 3 - 9 8-33
Natural Logarithm of Binary
125 - DLN 3 3 3 3 - 9 8-34
Floating Point
126 - DLOG 3 Logarithm of Binary Floating Point 3 3 3 - 13 8-35
127 - DESQR 3 Floating Point Square Root 3 3 3 - 9 8-36
128 - DPOW 3 Floating Point Power Operation 3 3 3 - 13 8-37
129 INT DINT 3 Float to Integer 3 3 3 5 9 8-38
130 - DSIN 3 Sine 3 3 3 - 9 8-39
131 - DCOS 3 Cosine 3 3 3 - 9 8-41
132 - DTAN 3 Tangent 3 3 3 - 9 8-43
133 - DASIN 3 Arc Sine - 3 3 - 9 8-45
134 - DACOS 3 Arc Cosine - 3 3 - 9 8-46
135 - DATAN 3 Arc Tangent - 3 3 - 9 8-47
136 - DSINH 3 Hyperbolic Sine - - 3 - 9 8-48
137 - DCOSH 3 Hyperbolic Cosine - - 3 - 9 8-49
138 - DTANH 3 Hyperbolic Tangent - - 3 - 9 8-50
143 DELAY - 9 Delay Instruction - 3 3 3 - 8-51
144 GPWM - - General PWM Output - 3 3 7 - 8-52
145 FTC - - Fuzzy Temperature Control - 3 3 9 - 8-53
146 CVM - - Valve Control (*) - - 3 7 - 8-58
147 SWAP DSWAP 3 Byte Swap 3 3 3 3 5 8-61
3 3 3
Others

148 MEMR DMEMR Read File Register - 7 13 8-62


149 MEMW DMEMW 3 Write File Register - 3 3 7 13 8-63
150 MODRW - - Read/Write MODBUS Data 3 3 3 11 - 9-1
151 PWD - - Detection of Input Pulse Width - - 3 5 - 9-19
Start of the Measurement of
152 RTMU - - - - 3 5 - 9-20
Execution Time of I Interruption
End of the Measurement of the
153 RTMD - - - - 3 3 - 9-20
Execution Time of I Interruption
154 RAND - 3 Random Number - 3 3 7 - 9-22
Read the Absolute Position from a
155 - DABSR - - 3 3 7 13 9-23
Servo Motor
Position
Control

156 ZRN DZRN - Zero Return - - 3 9 17 9-28


157 PLSV DPLSV - Adjustable Speed Pulse Output - - 3 7 13 9-32
158 DRVI DDRVI - Drive to Increment - - 3 9 17 9-33
159 DRVA DDRVA - Drive to Absolute - - 3 9 17 9-40
160 TCMP - 3 Time Compare - 3 3 11 - 9-52
161 TZCP - 3 Time Zone Compare - 3 3 9 - 9-53
Real Time
Calendar

162 TADD - 3 Time Addition - 3 3 7 - 9-54


163 TSUB - 3 Time Subtraction - 3 3 7 - 9-55
166 TRD - 3 Time Read - 3 3 3 - 9-56
167 TWR - 3 Time Write - 3 3 3 - 9-58
169 HOUR DHOUR - Hour Meter - 3 3 7 13 9-60
170 GRY DGRY 3 BIN Æ Gray Code - 3 3 5 9 9-62
171 GBIN DGBIN 3 Gray Code Æ BIN - 3 3 5 9 9-63

DVP-PLC Application Manual 5-3


5 Categories & Use of Application Instructions

Mnemonic P Applicable to STEPS


API instruction
Function Page
Category 16-bit 32-bit ES SA EH 16-bit 32-bit
172 - DADDR 3 Floating Point Addition 3 3 3 - 13 9-64
Operation
Floating

173 - DSUBR 3 Floating Point Subtraction 3 3 3 - 13 9-65


Point

174 - DMULR 3 Floating Point Multiplication 3 3 3 - 13 9-66


175 - DDIVR 3 Floating Point Division 3 3 3 - 13 9-67
176 MMOV - 3 Magnify Move - 3 3 5 - 9-68
180 MAND - 3 Matrix ‘AND’ Operation - 3 3 9 - 9-69
181 MOR - 3 Matrix ‘OR’ Operation - 3 3 9 - 9-71
182 MXOR - 3 Matrix ‘XOR’ Operation - 3 3 9 - 9-72
183 MXNR - 3 Matrix ‘XNR’ Operation - 3 3 9 - 9-73
184 MINV - 3 Matrix Inverse Operation - 3 3 7 - 9-74
Matrix

185 MCMP - 3 Matrix Compare - 3 3 9 - 9-75


186 MBRD - 3 Read Matrix Bit - 3 3 7 - 9-77
187 MBWR - 3 Write Matrix Bit - 3 3 7 - 9-79
188 MBS - 3 Matrix Bit Displacement - 3 3 7 - 9-81
189 MBR - 3 Matrix Bit Rotation - 3 3 7 - 9-83
190 MBC - 3 Matrix Bit Status Counting - 3 3 7 - 9-85
2-Axis Relative Point to Point
191 - DPPMR - - - 3 - 17 9-86
Positioning Instruction

Motion (*)
2-Axis Absolute Point to Point
192 - DPPMA - - - 3 - 17 9-89
Motion (*)
2-Axis Relative Position Arc
193 - DCIMR - - - 3 - 17 9-91
Interpolation (*)
2-Axis Absolute Position Arc
194 - DCIMA - - - - - 17 9-96
Interpolation (*)
Single-Axis Pulse Output by Table
195 - DPTPO - - - - - 13 9-101
(*)
196 HST - 3 High Speed Timer - - 3 3 - 9-103
197 - DCLLM - Close Loop Position Control (*) - - 3 - 17 9-105
202 SCAL - 3 Proportional Value Calculation 3 3 3 9 - 10-1
Parameter Proportional Value
203 SCLP - 3 3 3 3 9 - 10-3
Calculation
215 LD& DLD& - S1 & S2 - 3 3 5 9 10-7
Contact Type Logic

216 LD| DLD| - S1 | S2 - 3 3 5 9 10-7


217 LD^ DLD^ - S1 ^ S2 - 3 3 5 9 10-7
Operation

218 AND& DAND& - S1 & S2 - 3 3 5 9 10-8


219 AND| DAND| - S1 | S2 - 3 3 5 9 10-8
220 AND^ DAND^ - S1 ^ S2 - 3 3 5 9 10-8
221 OR& DOR& - S1 & S2 - 3 3 5 9 10-9
222 OR| DOR| - S1 | S2 - 3 3 5 9 10-9
223 OR^ DOR^ - S1 ^ S2 - 3 3 5 9 10-9
224 LD= DLD= - S1 = S2 3 3 3 5 9 10-10
225 LD> DLD> - S1 > S2 3 3 3 5 9 10-10
3 3 3
Contact Type Comparison Instruction

226 LD< DLD< - S1 < S2 5 9 10-10


228 LD<> DLD<> - S1  S2 3 3 3 5 9 10-10
229 LD<= DLD<= - S1 ” S2 3 3 3 5 9 10-10
230 LD>= DLD>= - S1 • S2 3 3 3 5 9 10-10
232 AND= DAND= - S1 = S2 3 3 3 5 9 10-11
233 AND> DAND> - S1 > S2 3 3 3 5 9 10-11
234 AND< DAND< - S1 < S2 3 3 3 5 9 10-11
236 AND<> DAND<> - S1  S2 3 3 3 5 9 10-11
237 AND<= DAND<= - S1 ” S2 3 3 3 5 9 10-11
238 AND>= DAND>= - S1 • S2 3 3 3 5 9 10-11
240 OR= DOR= - S1 = S2 3 3 3 5 9 10-12
241 OR> DOR> - S1 > S2 3 3 3 5 9 10-12
242 OR< DOR< - S1 < S2 3 3 3 5 9 10-12
244 OR<> DOR<> - S1  S2 3 3 3 5 9 10-12
245 OR<= DOR<= - S1 ” S2 3 3 3 5 9 10-12
246 OR>= DOR>= - S1 • S2 3 3 3 5 9 10-12
Instructions marked with * are available in EH2/SV series MPU.

5-4 DVP-PLC Application Manual

You might also like