Code 2/5 Interleaved
237
Code 2/5 Interleaved
Syntax
Data Structure
ASCII DC4 Start code n ... n Stop code DC4
hex. 14 Start code n ... n Stop code 14
dec. 20 Start code n ... n Stop code 20
Example
10 REM code 2/5 interleaved barcode
20 LPRINT CHR$(27);"[?11~";
30 LPRINT CHR$(26);" C3;111";CHR$(25);
40 LPRINT CHR$(20);":123;";CHR$(20);
50 LPRINT CHR$(27);"[?10~"
NOTE: Due to the “interleaved mechanism”, data stream (n...n) should only
be transferred with an even number of digits e.g., not 398 but 0398
If an odd number of digits are transferred the printer adds a leadin g
zero to the printed barcode.
Figures (n) Start Code Stop Code
ASCII “0” to “9” “:” or “<“ “:” or “=”
hex. 30 to 39 3A or 3C 3B or 3D
dec. 48 to 57 58 or 60 59 or 61