Danfoss VLT5000 SyncPos Operating Instructions Manual page 120

Motion controller for danfoss vlt5000 series; danfoss vlt 5000flux series
Table of Contents

Advertisement

■ ■ ■ ■ ■ 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 program
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 M EN U
DISPLAY / STATUS
O K
CANCEL
CHANGE DATA
-key
-key
-key
-key
START
FWD. R EV.
J O G
STOP / RESET
Combinations send the corresponding values:
OK and CANCEL
START and
-key
MG.10.J8.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
Programmable SyncPos motion controller
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
PR INT
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
119

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents