Mitsubishi QD51 Programming Manual page 560

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
TAB
Function
• Moves the current character display position to the specified position.
TAB(<numeric expression>)
Syntax
numeric expression
PRINT TAB(10);
Examples
"MITSUBISHI"
10 blank spaces
• The TAB function displays space characters from the current character display position on
Description
the screen to the character position indicated by <numeric expression>. If the current
character display position already exceeds the value in <numeric expression>, a new line
is started and the same operation is performed.
• The TAB function can be executed only to the screen on a console.
• The TAB function can only be used together with the PRINT and LPRINT instructions.
Program Example
10 ' This program displays character strings from the positions specified by the TAB function
20 A$="AD51H"
30 B$="BASIC"
40 PRINT TAB(5);A$;TAB(15);B$
50 END
RUN
AD51H
BASIC
OK
11 - 390
TABulate
• • • •
• • • •
MITSUBISHI
REMARK
See the SPC and LOCATE functions, and Section 3.10.1.
Specify the display position relative to the left side of
the screen.
Displays "MITSUBISHI" from the 11th character.
:
' Defines character strings
:
' Displays the character strings from the 5th
and 15th position, respectively
MELSEC-Q
11 - 390

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents