Serial port Printing

V Vedsatx Saddvv 2 years 10 months ago
83 0 0

Hello,
I have already print by using the TCP connection in GK420D Printer and with the ZPL language.
But now i'm buying another GK420D Printer with a serial port.
But with the code below and a terminal, I don't reach to print anything.
---------------------------------------------------------------------------------------------------------------------------
from serial import *
with Serial(port="COM3", baudrate=9600, timeout=1, writeTimeout=1) as port_serie:
port_serie.write("^XA^CF0,30^FO220,115^FD1000 Shipping Lane^FS^XZ\n\r".encode())
---------------------------------------------------------------------------------------------------------------------------
Could you help me please.
Thanks a lot.
Valentin

CONTACT
Can’t find what you’re looking for?