Mitsubishi QD51 Programming Manual page 258

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
INKEY$
Function
• Returns the character if there is an input from the keyboard, or returns an empty character
string (" ") if there is no input.
INKEY$
Syntax
A$=INKEY$
Examples
• The INKEY$ function returns the character if there is a key input from the keyboard
Description
specified by ZIDV instruction, or returns an empty character string if there is no input. It is
not displayed on the screen, however.
• All the keys except for the following keys can be entered from the keyboard that is
specified as a console.
Ctrl +
Keys that correspond to 00
• All the keys can be entered from the keyboard other than the console (a console
connected to the communication port), except for the keys that correspond to the 00h
code and keys that correspond to the DC1/DC3 codes that were specified by the ZCNTL
instruction.
• The new line character and others, which cannot be entered by the INPUT instruction and
LINE INPUT instruction, can also be entered by the INKEY$ instruction.
11 - 88
INput KEY $
• • • •
C , Ctrl +
S , Break
, 80
H
If the 03
code (BREAK code) is entered from a keyboard other than the console keyboard
H
(a terminal connected to the communication port), the BASIC program reads it as data.
Therefore, note that the BASIC program cannot be stopped.
Assigns the character to A$ if there is a keyboard
input, or assigns an empty character string (" ") to A$
if there is no input.
key (Processes exactly as key operation.)
, and FD
to FF
H
H
H
MELSEC-Q
11 - 88

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents