Serial port Printing

Serial port Printing

Serial port Printing



Audience
Tags

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