Skip to content

Instantly share code, notes, and snippets.

@tresf
Last active November 7, 2024 20:28
Show Gist options
  • Save tresf/05462d565342bb79a47ba78f4ac75644 to your computer and use it in GitHub Desktop.
Save tresf/05462d565342bb79a47ba78f4ac75644 to your computer and use it in GitHub Desktop.
CAS DLP 50 Test File
; Define label form
FS"SampleLabel" ; Start a new form with the name "SampleLabel"
; Set label length and spacing
Q200,20 ; Set label length to 200 dots (25mm) and spacing to 20 dots
; Set print density and speed
D6 ; Set print density to medium (6 out of 15)
S1 ; Set print speed to 37.5 mm/sec
; Add text to the label
A10, 10, 0, 3, 2, 2, N, "Product: Widget" ; Position (10,10), normal orientation, font 3, multiplier 2x, normal mode
A10, 40, 0, 3, 1, 1, N, "Batch No: 001" ; Position (10,40), normal orientation, font 3, multiplier 1x, normal mode
; Define and add barcode
B10,80,0,E30,2,5,60,B,"123456789012" ; Position (10,80), EAN-13 barcode, width 2 (narrow) and 5 (wide), 60 dots height, with text
; Complete the form
FE ; End the form
; Load and print the form
FR"SampleLabel" ; Load "SampleLabel" form to make it active
P1 ; Print one label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment