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
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&)
The result is shown below.
CHARA1$ = "A"
CODE& = 65
CHARA2$ = 41
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 3.50 or later
Related Items
Asc (Reference:
Details (p.413))
GetUnitData (Reference:
Left$ (Reference:
Details (p.591))
Mid$ (Reference:
Details (p.621))
Right$ (Reference:
Str2$ (Reference:
Details (p.751))
Val (Reference:
Details (p.794))
Vision System FH/FZ5 Series
User's Manual (Z340)
Details (p.552))
Details (p.664))
WWW.NNC.IR
Chr$ (Reference:
Details (p.427))
LCase$ (Reference:
Details (p.589))
Len (Reference:
Details (p.593))
Piece$ (Reference:
Details (p.637))
Str$ (Reference:
Details (p.749))
UCase$ (Reference:
Details (p.775))
8
561
Macro Reference