Mitsubishi QD51 Programming Manual page 290

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Program Example
10 ' Extracts 5 characters from the left of the character string
20 A$="AD51H-BASIC"
30 B$=LEFT$(A$,5)
50 PRINT "5 characters counting from the left --->";B$ :
60 END
RUN
5 characters counting from the left ---> AD51H
OK
11 - 120
REMARK
See the RIGHT$, MID$ (Part 2) and KMID$ functions.
:
' Defines the character string
:
' Extracts 5 characters from the left
' Displays extracted character string
MELSEC-Q
11 - 120

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents