11 - 109 11 - 109
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Program Example
10 ' Searches full-byte characters "@@@" from the character string
20 A$="@@@@@@@@@@"
:
' Defines character string
30 A=KINSTR(2,A$,"@@@")
:
' Searches @@@ from the character string
40 PRINT "Character string-->";A$
50 PRINT "@@@@";A;"@@@"
60 END
RUN
@@@-->@@@@@@@@@@
@@@@ 5 @@@
OK
REMARK
See the INSTR, KLEN and LEN functions.