Functions For Displaying Characters - Mitsubishi QD51 Programming Manual

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

Advertisement

3 LET'S CREATE AND EXECUTE A PROGRAM

3.10.1 Functions for displaying characters

3 - 33
The following illustrates cases where "," (comma) is used.
Example
OK
A=100
OK
B=-50
OK
PRINT A,B,A+B
100
-50
14
14
characters
characters
BASIC manages one line on the screen by separating them into areas of 14
characters.
Area 1
Area 2
0
14
14 characters 14 characters 14 characters 14 characters 14 characters 14 characters
When commas are used as separators, the location where the next data will be
displayed in the beginning of the next area.
The BASIC operation (automatic display of spaces) when displaying numerical
numbers is the same as separating with ";" (semicolon).
There are two dedicated functions for the PRINT instruction.
(1) TAB Function
You can directly specify the number of characters from the left edge of the screen
of the current line with the TAB function. Use ";" (semicolon) to delimit the TAB
function.
Example
PRINT " A" ; TAB(12); " B" ; TAB (27) ; " C"
A
B
12 characters
27 characters
OK
A$= " ABCD"
OK
B$= " EFGH"
OK
PRINT A$,B$,A$+B$
50
ABCD
EFGH
14
14
characters
characters
Area 3
Area 4
28
42
C
MELSEC-Q
ABCDEFGH
Area 5
Area 6
56
70
80
3 - 33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents