11 - 134 11 - 134
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Program Example
10 ' Displays the character string at the specified location on the screen
11 CLS
:
' Clears the screen
12 Y=1
20 A$="AD51H-BASIC"
:
' Defines the character string
30 FOR X=1 TO 10
40 Y=Y+1
50 LOCATE X,Y
:
' Specifies display location
60 PRINT A$
:
' Displays the character string
80 NEXT X
90 END
AD51H-BASIC
AD51H-BASIC
AD51H-BASIC
AD51H-BASIC
AD51H-BASIC
AD51H-BASIC
AD51H-BASIC
AD51H-BASIC
AD51H-BASIC
AD51H-BASIC
OK
REMARK
See the TAB instruction and Section 3.10.2.