11 - 89 11 - 89
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Program Example
10 ' Pressing any key terminates the program
20 PRINT "*";
30 A$=INKEY$
:
' Checks the key status
40 IF A$="" GOTO 20
:
' Returns to line 20 if no key is pressed
50 END
RUN
***************
OK
REMARK
See the INPUT$ function, CONT and INPUT instructions, and Section 3.11.