User manual
V002450_25_CR1200-CR2-CR3-CR2500-CR3500_Interface_Configuration_Document_CLIENT.docx
2011-04-27 Page 22 of 65
© 2011 The Code Corporation
•
14870 S. Pony Express Rd., Suite 200, Bluffdale, UT 84065
•
(801) 495-2200
•
FAX (801) 495-0280
8 Reader Settings
The Host sets the Reader settings using the /, O, P, Q, and = commands and reads them using the G, ,,
and < commands.
For example, the following P command sets register 2e to the value 7f.
P(2e)7f
Note: for two-digit setting numbers (i.e., settings 00 through fd), an alternative format may be used: in
place of the parentheses and hexadecimal setting number, substitute a single character, which represents
the setting number. The equivalent to the example above is P.7f (the ASCII ‘.’ character has the
hexadecimal value 2e). (In certain circumstances, such as with text-commands, “percent-encoding” may
be used for encoding a character as a sequence consisting of the percent character followed by two
hexadecimal digits. With percent-encoding, the example may be expressed as P%2e7f.)
In the table below, the Reg column is the register setting number, in hexadecimal, to be used with the
commands identified above. In the Default column, all values are in hexadecimal unless otherwise
specified. To use decimal values in commands you must precede the data with a pound sign ‘#’. The
following P command sets register 2e to the same value as the example above:
P(2e)#127
Since the single digit values of 0 through 9 are identical in decimal and hexadecimal, no indicator is
needed.
8.1 Binary Dip Switch
Some registers are what Code terms a ‘Binary Dip Switch’ where the value of each bit of the data string
switches on or off some part of the behavior of that register. The bits are numbered from least
significant to most, a.k.a. right to left. Each bit can be on or off (1 or 0).
An example of this is register 0a, ‘nec2of5Options’. The following settings are possible:
Bit (R to L)
Controls
Value
0 NEC2of5 Decoding
0: Disable
1: Enable
1 Checksum checking
0: Disable
1: Enable
2 Strip checksum from the result
0: Disable
1: Enable
3 1 Digit Symbol Allowed
0: Disable
1: Enable
4 2 Digit Symbol Allowed
0: Disable
1: Enable