Delta AH500 Programming Manual page 551

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
1702
DSW
Device X
Y
M
S
1
S
2
D
1
D
2
n
Symbol:
Explanation:
1.
The four or eight external inputs starting from the input specified by S
four external outputs starting from the output specified by D
two four-digit DIP switches. The value that users enter by pressing the DIP switch is stored in
D
. Whether there is one four-digit DIP switch or two four-digit DIP switches depends on n.
2
2.
If n is 1, the operand D
3.
S
and S
+1, which are for system use only, occupy two devices. Please do not alter the
2
2
values in these devices.
4.
After the execution of the instruction is complete, SM694 is ON for a scan cycle.
5.
When the conditional contact is not enabled, the four external outputs starting from the output
specified by D
keep OFF.
1
6.
When the on-line editing is used, please reset the conditional contact to initialize the
instruction.
Example:
1.
X0.0~X0.3 are connected to Y0.0~Y0.3 to form the first DIP switch, and X0.4~X0.7 are
connected to Y0.4~Y0.7 to form the second DIP switch. When X1.0 is ON, the instruction is
executed. The value that users enter by pressing the first DIP switch is converted into the
binary value, and the conversion result is stored in D20. The value that users enter by pressing
the second DIP switch is converted into the binary value, and the conversion result is stored in
D21.
Operand
S, D
, D
1
S
T
C
HC
D
Pulse instruction 16-bit instruction (9 steps) 32-bit instruction
: Initial input device
S
1
: For system use only
S
2
: Initial output device
D
1
: Device in which the value is stored
D
2
: Number of DIP switches
n
occupies one register. If n is 2, the operand D
2
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
, n
2
L
SM SR
E
-
AH500
to form a four-digit DIP switch or
1
Function
DIP switch
PR
K
16# "$"
DF
-
Bit
Word
Bit
Word
Word
are connected to the
1
occupies two registers.
2
6 - 3 8 3

Advertisement

Table of Contents
loading

Table of Contents