Two-byte character definitions – Zebra Technologies TTP 7030 User Manual

Page 30

Advertising
background image

Programming
How The Commands Are Described

30

P1003636-002

TTP 7030™ Technical Manual

10/05/2009

Two-Byte Character Definitions

Some commands and parameters are used with a two-byte value definition because the internal
structure of the printer's firmware limits access to values greater than 255. To represent values
greater than 255 in this two-byte format, divide the value by 256. The whole number (quotient)
is the value of the leading byte and the remainder (modulo) is the value of the trailing byte.

:

Example •

To represent 731 in two-byte notation, divide 731 by 256.

731 ÷ 256 = 2 with a remainder of 219 (2 x 256 + 219 = 731)

Therefore, the two-byte representation of 731 is <2><219>.

Advertising