3 - 36 3 - 36
MELSEC-Q
3 LET'S CREATE AND EXECUTE A PROGRAM
The following shows how to use the LOCATE instruction:
LOCATE position in horizontal direction, position in vertical direction
This allows the specification of the screen display position, and then the PRINT
instruction can be used to display characters.
Example
10 CLS This instruction clears the screen
20 LOCATE 10,5
30 PRINT " MELSEC AD51H-BASIC"
40 LOCATE 65,20
50 PRINT "Pleased to meet you!!"
60 END
RUN
MELSEC AD51H-BASIC
Pleased to meet you!!
OK