Mitsubishi QD51 Programming Manual page 267

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Program Example
10 ' Searches for the specified characters
20 A$="AD51HMitsubishiPLC"
30 A=INSTR(2,A$,"PLC")
40 PRINT "A$=";A$
50 PRINT "PLC is the ";A;"th character"
60 END
RUN
A$=AD51HMitsubishiPLC
PLC is the 10th character
OK
11 - 97
REMARK
See the KINSTR, KLEN, and LEN functions.
:
' Searches for PLC from a character string
:
' Displays the character string
:
' Displays the position where 'PLC' was
detected
MELSEC-Q
11 - 97

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents