Samsung STP-103P User Manual - Page 25

Code set selection character CODE A, CODE B, CODE C

Page 25 highlights

Printing GS k 72 7 67 111 100 101 13 57 51 [When CODE128 (m=73) is used :] ● Refer to Appendix J for the information of the CODE128 bar code and its code table. ● When using the CODE128 in this printer, take the following points into account for data transmission : ① The top of the bar code data string must be code set selection character (any of CODE A, CODE B OR CODE C) which selects the first code set. ※ Description of the CODE128 Bar Code In CODE128 bar code system, it is possible to represent 128 ASCII characters and 2-digit numerals using one bar code character that is defined by combining one of the 103 bar code characters and 3 code sets. Each code set is used for representing the following characters : * Code set A : ASCII characters 00H to 5FH * Code set B : ASCII characters 20H to 7FH * Code set C : 2-digit numeral characters using one character (100 numerals from 00 to 99) The following special characters are also available in CODE128 : * SHIFT characters In code set A, the character just after SHFIT is processed as a character for code set B. In code set B, the character just after SHIFT is processed as the character for code set A. SHIFT characters cannot be used in code set C. * Code set selection character (CODE A, CODE B, CODE C) This character switches the following code set to code set A, B, or C. * Function character (FNC1, FNC2, FNC3, FNC4) The usage of function characters depends on the application software. In code set C, only FNC 1 is available. ② Special characters are defined by combining two characters "{" and one character. The ASCII character "{" is defined by transmitting "{" twice consecutively. Specific character SHIFT CODE A CODE B CODE C FNC1 FNC2 FNC3 FNC4 "{" ASCII {S {A {B {C {1 {2 {3 {4 {{ Transmit data Hex 7B,53 7B,41 7B,42 7B,43 7B,31 7B,32 7B,33 7B,34 7B,7B Decimal 123,83 123,65 123,66 123,67 123,49 123,50 123,51 123,52 123,123 Example data for printing "No. 123456" In this example, the printer first prints "No." using CODE B, then prints the following numbers using CODE C. GS k 73 10 123 66 78 111 46 123 67 12 34 56 * If the top of the bar code data is not the code set selection character, the printer stops command processing and processes the following data as normal data. * If combination of "{" and the following character does not apply any special character, the printer stops command processing and processes the following data as normal data. * The printer does not print HRI characters that correspond to the shift characters or code set selection characters. * HRI character for the function character is space. * HRI characters for the control character (H to H and H) are space. Be sure to keep spaces on both right and left sides of a bar code. (Spaces are different depending on the types of the bar code.) 48 49

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28

48
<Example>
Printing GS k 72
7
67
111
100
101
13
57
51
[When CODE128 (m=73) is used :]
Refer to Appendix J for the information of the CODE128 bar code and
its code table.
When using the CODE128 in this printer, take the following points into account
for data transmission :
The top of the bar code data string must be code set selection character
(any of CODE A, CODE B OR CODE C) which selects the first code set.
Description of the CODE128 Bar Code
In CODE128 bar code system, it is possible to represent 128 ASCII
characters and 2-digit numerals using one bar code character that is
defined by combining one of the 103 bar code characters and 3 code
sets. Each code set is used for representing the following characters :
* Code set A : ASCII characters 00H to 5FH
* Code set B : ASCII characters 20H to 7FH
* Code set C : 2-digit numeral characters using one character
(100 numerals from 00 to 99)
The following special characters are also available in CODE128 :
* SHIFT characters
In code set A, the character just after SHFIT is processed as a
character for code set B. In code set B, the character just after
SHIFT is processed as the character for code set A. SHIFT
characters cannot be used in code set C.
* Code set selection character (CODE A, CODE B, CODE C)
This character switches the following code set to code set A, B, or C.
* Function character (FNC1, FNC2, FNC3, FNC4)
The usage of function characters depends on the application
software. In code set C, only FNC 1 is available.
49
Special characters are defined by combining two characters “{“ and one
character. The ASCII character “{“ is defined by transmitting “{“ twice
consecutively.
Transmit data
Specific character
ASCII
Hex
Decimal
SHIFT
{S
7B,53
123,83
CODE A
{A
7B,41
123,65
CODE B
{B
7B,42
123,66
CODE C
{C
7B,43
123,67
FNC1
{1
7B,31
123,49
FNC2
{2
7B,32
123,50
FNC3
{3
7B,33
123,51
FNC4
{4
7B,34
123,52
“{“
{{
7B,7B
123,123
<Example> Example data for printing “No. 123456”
In this example, the printer first prints “No.” using CODE B, then
prints the following numbers using CODE C.
GS k
73
10
123
66
78
111
46
123
67
12
34
56
* If the top of the bar code data is not the code set selection character,
the printer stops command processing and processes the following
data as normal data.
* If combination of “{“ and the following character does not apply any
special character, the printer stops command processing and
processes the following data as normal data.
* The printer does not print HRI characters that correspond to the shift
characters or code set selection characters.
* HRI character for the function character is space.
* HRI characters for the control character
(<00>H to <1F>H and <7F>H) are space.
<Others> Be sure to keep spaces on both right and left sides of a bar code.
(Spaces are different depending on the types of the bar code.)