Delta DVP-ES2 User Manual Page 304

  • Download
  • Add to my manuals
  • Print
  • Page
    / 702
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 303
DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming
3-188
API Mnemonic Operands Function
72
DSW
DIP Switch
Controllers
ES2/EX2 SS2 SA2
SE
SX2
Bit Devices Word devices Program Steps Type
OP
X Y M S K H KnX KnY KnM KnS T C D E F
S *
D
1
*
D
2
* * *
n * *
DSW: 9 steps
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
Operands:
S: The Start of input devices D
1
: The Start of output devices D
2
: Device for storing switch input
value n: Groups of switches (n = 1~2)
Explanations:
177. This instruction creates 1(2) group of 4-digit DIP switch by the combination of 4(8) consecutive
input points starting from S and 4 consecutive output points starting from D
1
. The set value will
be read in D
2
and the value in n specifies the number of groups (1~2) of the DIP switch.
178. n = K1, D
2
occupies 1 register. n = K2, D
2
occupies 2 consecutive registers..
179. There is no limitation on the times of using this instruction in the program, however only one
instruction is allowed to be executed at the same scan time.
Program Example:
180. The first group of DIP switches consists of X20 ~ X23 and Y20 ~ Y23. The second group of
switches consists of X24 ~ X27 and Y20 ~ Y23. When X10 = ON, the instruction will be
executed and the set value of the first switch will be read and converted into BIN value then
stored in D20. BIN value of 2
nd
switch will be stored in D21.
X0
DSW X20 Y20 D20 K2
181. When X0 = ON, Y20~Y23 are scanned repeatedly. M1029 = ON for a scan time when a scan
cycle from Y20 to Y23 is completed.
X0
Y20
Y21
Y22
Y23
M1029
0.1s
0.1s
0.1s
0.1s
0.1s
0.1s
interrupt
execution completed
operation start
Page view 303
1 2 ... 299 300 301 302 303 304 305 306 307 308 309 ... 701 702

Comments to this Manuals

No comments