beautypg.com

Convert to string b property – MagTek MICRSafe99875466 User Manual

Page 43

background image

Section 5. USB Communications

35

carriage return to be sent as an end of text character you could set the Convert
From Char B
property to 0x0D (carriage return) and set the Convert To
String B
property to 0x03 (end of text). If you would like a carriage return to
be sent as two carriage returns you could set the Convert From Char B
property to 0x0D (carriage return) and set the Convert To String B property
to 0x0D 0x0D (carriage return, carriage return). If you would like a carriage
return not to be sent you could set the Convert From Char B property to
0x0D (carriage return) and set the Convert To String B property to no string.

This property is stored in non-volatile memory, so it will persist when the unit
is power cycled. When this property is changed, the unit must be reset (see
Command Number 2) or power cycled for these changes to take effect.

Example Set Convert From Char B property Request (Hex):

Cmd Num

Data Len

Prp ID

Prp Value

01

02

1C

FF

Example Set Convert From Char B property Response (Hex):

Result Code Data Len

Data

00

00

Example Get Convert From Char B property Request (Hex):

Cmd Num

Data Len

Prp ID

00

01

1C


Example Convert From Char B property Response (Hex):

Result Code Data Len

Prp Value

00

01

FF


CONVERT TO STRING B PROPERTY

Property ID:

29 (0x1D)

Property Type:

String

Length:

0 – 7 bytes

Get Property:

Yes

Set Property:

Yes

Default Value:

The default value is no string with a length of zero.

Description:

The value is an ASCII string that represents the device’s Convert To String B
property. This string can be 0 – 7 bytes long. This string is sent in place of
the character specified in the Convert From Char B property. See the
Convert From Char B property for more information and examples.

This property is stored in non-volatile memory, so it will persist when the unit
is power cycled. When this property is changed, the unit must be reset (see
Command Number 2) or power cycled for these changes to take effect.