Explanation Of Peripheral Instructions - Delta AH500 Programming Manual

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

6.18.2 Explanation of Peripheral Instructions

API
Instruction code
1700
D
TKY
Device
X
Y
M
S
D
1
D
2
Symbol:
Explanation:
1.
The ten external inputs starting from the input specified by S represents 0~9 in the decimal
system. They are connected to ten keys. Users can enter a four-digit decimal value or an
eight-digit decimal value by pressing the keys in order. The decimal value is stored in D
the output signals are stored in D
2.
The operand S occupies ten bits.
3.
The operand D
occupies eleven bits. Please do not change the states of the bits during the
2
execution of the instruction.
4.
When the conditional contact is not enabled, the eleven bits starting from the bit specified by
D
is OFF.
2
5.
When the on-line editing is used, please reset the conditional contact to initialize the
instruction.
Example:
1.
The ten external inputs starting from X0.0 is connected to ten keys which represent 0~9 in the
decimal system. When M0 is ON, the instruction is executed. The value that users enter is
stored as a binary value in D0, and the output signals are stored in M10~M19.
Operand
S, D
1
S
T
C
HC
D
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (7 steps)
-
S : Initial device
Device in which the value is
D
1
stored
: Output signal
D
2
.
2
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
, D
2
L
SM SR
E
AH500
Function
Ten-key keypad
PR
K
16# "$"
DF
AH500
Bit
Word/Double word
Bit
, and
1
6 - 3 7 7

Advertisement

Table of Contents
loading

Table of Contents