E L C P r o g r a m m i n g M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-204
API Mnemonic
Operands
Function
72
DSW
S, D
1
, D
2
, n
Digital Switch
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
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P
32 16 P 32 16 P
Operands:
S
: Starting address of switch input
D
1
: Starting address of switch output
D
2
: Destination
address for storing the set-point value
n
: Number of digits (
n
=1~2)
Description:
1.
This instruction creates 1 or 2 groups of 4-digit DIP switches by combining 4 or 8 consecutive
input points starting from
S
and 4 consecutive output points starting from
D
1
. The value of the
inputs will be read in
D
2
and the value in
n
specifies the number of groups (1 or 2) of the DIP
switches.
2.
If n
= K1,
D
2
occupies 1 register. If
n
= K2,
D
2
occupies 2 consecutive registers..
3.
There is no limit on the number of times this instruction may be used in the program. However
only one instruction is allowed to be executed at the same time.
Program Example:
1.
The first group of switches consists of X20~X23 and Y20~Y23. The second group of switches
consists of X24~X27 and Y20~Y23. When X0=ON, the first group of switches are read and
converted to binary and stored in D20. Then the second group of switches are read and
converted to binary and stored in D21.
X0
DSW
X20
Y20
D20
K2
2.
When X0=ON, Y20~Y23 will each turn ON one at a time in order and continue to cycle over
and over.. After the completion of each cycle, the execution completed flag M1029 will turn ON
for one scan after the completion of a cycle..
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...