Samsung SRP-500 User Manual

Page 26

Advertising
background image

43

ESC & y c1 c2 [x1 d1...d(y x x1)]...[ xk d1... d(y x xk)]

[Name]

Define user-defined characters

[Format]

ASCII ESC & y c1 c2 [x1 d1...d(y x x1)]...[ xk d1... d(y x xk)]
Hex

1B 26 y c1 c2 [x1 d1...d(y x x1)]...[ xk d1... d(y x xk)]

Decimal 27 38 y c1 c2 [x1 d1...d(y x x1)]...[ xk d1... d(y x xk)]

[Range]

y = 2
32 ≤ c1 ≤ c2 ≤ 255
0 ≤ x ≤ 14 (Font A)
0 ≤ x ≤ 12 (Font B)
0 ≤ d1 ... d(y x x) ≤ 255

[Description]

Defines user-defined characters.

• y specifies the number of bytes in the vertical direction.
• c1 specifies the beginning character code for the definition, and c2

specifies the final code. When only one character is desired, use c1 = c2.

• x specifies the number of dots in the horizontal direction.

[Notes]

• Consecutive character codes for multiple characters can be defined in one

definition. When specifying only one character, specify c1 = c2.

• "d" is definition data that indicates the pattern for " x" dots in the horizontal

direction starting from the left edge. If " x" does not satisfy the number of
dots in the character configuration pattern, the remaining dots on the right
are spaces.

• The number of bytes required to download a character definition for one

character is " y" x " x".

• In the definition data, a "1" represents a dot that is to be printed, and a "0"

represents a dot that is not to be printed.

• Independent downloaded character definitions are possible for each font.
• The font is selected by the "ESC !" command.
• The defined downloaded characters are cleared in the following

circumstances:
1) When "ESC @" is executed
2) When deleted by "ESC ?"
3) When the printer is reset or turned off

[Default]

The internal character set

[Reference]

ESC %, ESC ?

44

ESC * m nL nH d1...dk

[Name]

Select bit-image mode

[Format]

ASCII ESC * m nL nH d1...dk
Hex 1B 2A m nL nH d1...dk
Decimal 27 42 m nL nH d1...dk

[Range]

m = 0, 1
0 ≤ nL ≤ 255
0 ≤ nH ≤ 3
0 ≤ d ≤ 255

[Description]

Selects a bit-image mode using m for the number of dots
specified by nL and nH

• Divide the number of dots to be printed by 256. The interger answer is nH

and the remainder is nL. Therefore, the number of dots in the horizontal
direction is calculated by nL + 256 x nH.

• If the bit-image data input exceeds the number of dots to be printed on a

line, the excess data is ignored.

• d indicates the bit-image data. Set a corresponding bit to 1 to print a dot or

to 0 to not print a dot.

• The bit-image modes selectable by m are as follows.

m

No. of Vertical

Dots

Dot Density

Adjacent

Dot

Maximum

number of dots

0 8 Single

Density

Permitted

252

1 8 Double

Density

Permitted

504

[Notes]
• If the values of m and nH are out of the specified range, the following data

is processed as normal data.

• After printing a bit image, the printer returns to normal data processing

mode.

• The relationship between the image data and the dots to be printed is as

follows.

Advertising