Star Micronics Line Thermal/Dot Printer User Manual
Page 154

Rev. 0.00
3-142
STAR LIne Mode Command Specifications
Below is a command transmission example.
(1) Bar code type setting
<ESC> <GS>“y”“S”“0” 1
: Set to model 1.
<ESC> <GS>“y”“S”“1” 0
: Set error correction level to L.
<ESC> <GS>“y”“S”“2” 3
: Set cell size to 3 dots.
2) Bar code data setting
• <ESC> <GS> “y” “D” “1” 0 20 0 “2005, January 1 (SAT)” <LF>
: Set bar code data (data automatic analysis)
• <ESC> <GS> “y” “D” “2” 10 1 4 0 “2005”“,” : Set bar code data (data manual analysis)
4 2 0 “Year” “,”
1 1 0 “1” “,”
4 2 0 “Month” “,”
1 1 0 “1” “,”
4 2 0 “Day” “,”
4 2 0 “(” “,”
2 3 0 “SAT” “,”
4 2 0 “)” “,”
3 1 0 <LF>
(3) Print bar code
To confirm printability using the current settings, confirm the bar code expansion information.
<ESC> <GS> “y” “I” : Confirms bar code expansion information.
<ESC> <GS> “y” “P” : Prints