![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686563.webp)
WWW.NNC.IR
Macro Reference
561
8
App
end
ice
s
Vision System FH/FZ5 Series
User’s Manual (Z340)
Example
Gets the read letter "A" with the OCR processing unit (Processing Unit number 5) using the unit calculation
macro processing unit and converts the letter into a hexadecimal value. The read character string can be
gotten with External Reference Data number 20
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
Rem Get the measurement result of the processing unit.
GetUnitData 5, 20, CHARA1$
Rem Convert the character to the character code.
CODE& = Asc(CHARA1$)
Rem Convert the character code to the hexadecimal value in character string format.
CHARA2$ = Hex$(CODE&)
CHARA1$ = "A"
CODE& = 65
CHARA2$ = 41
Asc (Reference:
X
Details (p.413))
Chr$ (Reference:
X
Details (p.427))
GetUnitData (Reference:
X
Details (p.552))
LCase$ (Reference:
X
Details (p.589))
Left$ (Reference:
X
Details (p.591))
Len (Reference:
X
Details (p.593))
Mid$ (Reference:
X
Details (p.621))
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))
Содержание fh-1 series
Страница 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Страница 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 132: ...WWW NNC IR Useful Functions for Operation 130 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 172: ...WWW NNC IR Saving Scene Groups in External Memory 170 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 254: ...WWW NNC IR Basic Knowledge For Macro Customize Functions 252 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 650: ...WWW NNC IR Macro Reference 648 Vision System FH FZ5 Series User s Manual Z340 Related Items None...
Страница 881: ...WWW NNC IR...