Download Print this page

Danfoss MCO 305 Design Manual page 120

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
INKEY
Summary
Syntax
Parameter
Return Value
Description
Command Group
Cross Index
Syntax Example
Program Sample
120
__ Software Reference __
Reads in a key signal.
INKEY (p)
p is the maximum waiting time, defined . . .
p = 0
wait for key code
p > 0
wait of max. p milliseconds
p < 0
no wait for key code (a negative parameter must be given in brackets)
key code for the received character or –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:
[Main Menu]
[Quick Menu]
[Alarmlog]
[Status]
[OK]
[Cancel]
[Info]
[Back]
[ ]-key / right
[ ]-key / up
[ ]-key / down
[ ]-key / left
[Auto on]
[Reset]
[Hand on]
[Off]
Combinations send the corresponding values:
[OK] and [Cancel]
[Auto on] and [ ]-key
NB!:
The keys keep their FC 300-functions, unless they are disabled in parameter 0-4*.
NB!:
NLCP is not covered at the moment.
With the INKEY command it is possible to read a key signal from the keypad of the
FC 300 LCP. 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 characters it is necessary to repeat the INKEY command (p<>0) in a loop
until no further key signals exist.
I/O
PRINT
input = INKEY 0
character = INKEY 5000
character = INKEY (-1)
INKEY_01.M, EXIT_01.M, WHILE_01.M
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark
value:
1
2
4
8
16
32
64
128
256
512
1024
2048
4096
8192
16384
32768
48
4608
/* wait until key signal is read */
/* wait max. 5 seconds to input */
/* do not wait for input */

Advertisement

loading