DVP - ES2/SA2/SS2/SA2/SX2/SE Operation Manual - Programming

Program example 3:

1.This instruction can be used to combine the DIP switches connected to the input terminals without continuous numbers.

2.Move the 2 digits of the right DIP switch (X27~X20) to the 2 digits of D2, and the 1 digit of the DIP switch (X33~X30) to the 1st digit of D1.

3.Use SMOV instruction to move the 1st digit of D1 to the 3rd digit of D2 and combine the values from two DIP switches into one set of value.

.

102

6

8

101 100

 

 

 

 

 

4

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8 8

 

 

 

 

 

X33~X30

 

 

X27~X20

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PLC

 

 

 

 

 

 

 

 

 

M1001

 

 

M1168

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M1000

 

 

BIN

K2X20

D2

(X20~X27)BCD, 2 digits

 

 

D2(BIN)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BIN

K1X30

D1

(X30~X33)BCD, 1 digit

 

 

 

D1(BIN)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SMOV

D1

K1

K1

D2

K3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3 - 66

Page 182
Image 182
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Plc