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