Danfoss VLT 5000 Series Manual page 87

Synchronizing and positioning option onizing and positioning option
Hide thumbs Also See for VLT 5000 Series:
Table of Contents

Advertisement

I I I I I INKEY
With the INKEY command it is possible to read a
key signal from the VLT keyboard. The parameter
entered with INKEY determines whether the pro-
gram waits unconditionally for a key signal, for a
certain period of time or not at all.
One key signal is read in per successful INKEY
command respectively. To input a string of charac-
ters it is necessary to repeat the INKEY command
(p<>0) in a loop until no further key signals exist.
Summary
Read in a key signal
Syntax
INKEY (p)
Parameter
p is the maximum waiting time, defined ...
p = 0 wait for key code
p > 0 wait of max. p milli-seconds
p < 0 no wait for key code
Return value
key code for the received character
resp –1 in case no character available
Following key codes are sent back, as long as the
key is pressed. If more than one key were pressed
simultaneously the corresponding sum of the
values will be sent back:
key:
M E N U
QUICK MENU
DISPLAY / STATUS
O K
CANCEL
CHANGE DATA
à-key
á-key
â-key
ß-key
START
FWD. REV.
JOG
STOP / RESET
Combinations send the corresponding values:
OK and CANCEL
START and á-key
MG.10.J4.02 – VLT is a registered Danfoss trade mark
value:
1
2
8
16
32
128
256
512
1024
2048
4096
8192
16384
32768
48
4608
®
VLT
5000 SyncPos option
NB!
The keys keep their VLT-functions, unless
they are disabled in Parameter 014–017.
A negative parameter must be given in brackets.
Command group
I/O
Cross Index
PRINT
Chapter Fundamentals of the SyncPos program
Syntax-Example
input = INKEY 0
/* wait until key signal is read */
input = INKEY 5000
/* wait max. 5 seconds to input */
input = INKEY (-1)
/* do not wait for input */
Program sample
INKEY_01.M
EXIT_01.M, WHILE_01.M
87

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents