Field Commands
^FH - Field Hex
Allows hexadecimal values in field data
^FH - Field Hex
Overview
The ^FH command enables hexadecimal value interpretation in field data, allowing you to include special characters and non-printable characters.
Syntax
^FH~Parameters
- Optional hex indicator character (default:
_)
Description
- Enables hex mode for interpreting special characters
- Allows inclusion of control characters and symbols
- Uses format
_XXwhere XX is a two-digit hex value - Default indicator is underscore (_)
Usage Notes
- Affects all subsequent field data until reset
- Common hex values:
_0D= Carriage return_0A= Line feed_20= Space_5F= Underscore (escaped)
- Case-sensitive (use uppercase hex digits)
Example
^XA
^FO50,50
^ADN
^FH
^FDPrice: _24_20_31_32_2E_39_39^FS
^XZThis displays: Price: $12.99
Hex Value Reference
| Character | Hex | Usage |
|---|---|---|
| Space | 20 | _ |
| $ | 24 | Currency |
| + | 2B | Plus |
| - | 2D | Minus |
| _ | 5F | Underscore |
| CR | 0D | Carriage Return |
| LF | 0A | Line Feed |
Related Commands
^FD- Field Data^FV- Field Variable^CD- Change Delimiter