125
6.Application Instructions
The VS Series PLC has many application instructions, each instruction has its specific function. The PLC will easily
achieve a complicated control system also diminish programming codes and programming development time
effectively by cleverly using these instructions. We hope readers will have an in-depth understanding of the application
instructions and make the best use of them.
6-1 Application Instruction Table
132
133
133
134
135
136
137
137
140
141
342
342
342
342
342
342
342
342
342
342
342
342
342
342
342
342
342
342
134
134
142
143
144
145
146
147
148
148
305
Conditional Jump
Call Subroutine
Subroutine Return
Interrupt Return
Enable Interrupt
Disable Interrupt
First End
Watch Dog Timer Refresh
Start of a FOR-NEXT Loop
End of a FOR-NEXT Loop
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
00
02
03
04
05
06
07
08
01
09
○ ○ ○○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
10
11
224
225
226
228
229
230
236
237
238
240
241
242
244
245
246
232
234
233
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
12
13
14
15
16
17
18
19
170
EI
DI
CJ
CALL
SRET
IRET
FEND
WDT
FOR
P
P
P
NEXT
CMP
ZCP
P
P
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
LD=
LD>
LD<
LD<>
LD<=
LD>=
AND<
AND<>
AND<=
AND>=
OR=
OR>
OR<
OR<>
OR<=
AND=
AND>
OR>=
MOV
SMOV
CML
BMOV
FMOV
XCH
P
P
P
P
P
P
P
P
D
D
D
D
D
D
BCD
BIN
P GRY D
Page
FNC No.
VS1 VS2 VSM VS3
Mnemonic
Brief Function Introduction
Series
Move Instructions
Compare
Zone Compare
Initial In-line Compare, (S1) = (S2)
Initial In-line Compare, (S1) > (S2)
Initial In-line Compare, (S1) < (S2)
Initial In-line Compare, (S1) ≠ (S2)
Initial In-line Compare, (S1) ≤ (S2)
Initial In-line Compare, (S1) ≥ (S2)
Serial In-line Compare, (S1) < (S2)
Serial In-line Compare, (S1) ≠ (S2)
Serial In-line Compare, (S1) ≤ (S2)
Serial In-line Compare, (S1) ≥ (S2)
Parallel In-line Compare, (S1) = (S2)
Parallel In-line Compare, (S1) > (S2)
Parallel In-line Compare, (S1) < (S2)
Parallel In-line Compare, (S1) ≠ (S2)
Parallel In-line Compare, (S1) ≤ (S2)
Parallel In-line Compare, (S1) ≥ (S2)
Move
Shift Move
Complement
n → n Block Move
1 → n Fill Move
Exchange
Convert BIN to BCD
Convert BCD to BIN
Convert BIN to Gray Code
Serial In-line Compare, (S1) = (S2)
Serial In-line Compare, (S1) > (S2)
Code Exchange Instructions
Comparison Instructions
Program Flow Instructions