![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686624.webp)
WWW.NNC.IR
Macro Reference
622
Vision System FH/FZ5 Series
User’s Manual (Z340)
Example
Extracts four characters from the second character and eight characters from the third character in the half-
width alphanumeric character string. For the latter operation, because the specified length exceeds the target
character string length of eight in this example, only five characters from the third to the end of the character
string.
The result is shown below.
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 3.50 or later
Related Items
INPUTSTR$ = "ABCDEFG"
Rem Extract four characters from the second character of the character string.
OUTPUTSTR1$ = Mid$(INPUTSTR$, 2, 4)
Rem Extract eight characters from the third character of the character string
OUTPUTSTR2$ = Mid$(INPUTSTR$, 3, 8)
OUTPUTSTR1$ = "BCDE"
OUTPUTSTR2$ = "CDEFG"
Asc (Reference:
X
Details (p.413))
Chr$ (Reference:
X
Details (p.427))
Hex$ (Reference:
X
Details (p.560))
LCase$ (Reference:
X
Details (p.589))
Left$ (Reference:
X
Details (p.591))
Len (Reference:
X
Details (p.593))
Piece$ (Reference:
X
Details (p.637))
Right$ (Reference:
X
Details (p.664))
Str$ (Reference:
X
Details (p.749))
Str2$ (Reference:
X
Details (p.751))
UCase$ (Reference:
X
Details (p.775))
Val (Reference:
X
Details (p.794))
Summary of Contents for fh-1 series
Page 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Page 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 881: ...WWW NNC IR...