using GZPL am able to print. But now, i need to to send command via NR.
Maybe i should try with ASCII commands
it's completly fuzzy to me. I don't know from where i should begin ...
that's wha i'am planning to do. i should give a try with ascii commands ...
Thanks a lot.
I can imagine that, but in the end you'll be the expert
I would begin within node red, the printer nearby, attached with a serial cable. Try the examples on page 75ff in EZPL_EN_J_20180226.pdf. If you are able to print what you want via serial, there will be a way to do it over ethernet as well.
On top of page 12 in the usemanual is a picture of the Printerdriver configuration. Try to connect the TCP/IP thing there (IP of printer), then send a textfile via Lpr command to the PC where the driver resides (IP of PC). The Textfile has probably to be something that worked localy via serial connection. Makes sense?
Thanks for the encouragement .. and for the docs. it helps a lot. i hope i can make a progress very soon.
yeah you have raison. i connect my printer to Pc via usb cable
maybe it's better to connect via a RS232 serial cable as mentioned in the programming manual. The default settings to connect are:
If you have no cable at the moment, you may try it first with the NetSetting Software, it comes with the printer. Theres a function to send commands:
I assume that you can try out here some of the examples from page 75 of the programming manual. If they work here, try it via serial (RS232 not USB) cable, like mentioned in the programming manual p75:
The label can be created by the following MS-DOS command:
C:>COPY EX1.TXT PRN[RETURN]
To send the label to serial port by the following MS-DOS command:
C:>MODE COM1 96,N,8,1
C:>TYPE EX1.TXT >> COM1
At this point you may as well try out a serial output node in node red to send commands to the printer.
When printing via RS232 works and you figured out what command to send to fit your needs, the ethernet part will be the next thing to solve. But i'm pretty confident with that one
sorry my fault. i mean an ethernet cable not usb
I will follow your steps starting with RS232 ..
thanks for help.
Hi, no need to mess with serial ports. You can print on Windows by using PowerShell rather than the older command prompt. The PowerShell commandlet Out-Printer
does the job.
You should also be able to output to your printer from the command prompt by redirecting output to a printer port:
Not tried it for years though so not sure if it still works. These seem to suggest that it does but you probably need to redirect LPT1: to your networked printer.
i have installed godex driver and i have added it to lpt1
i have tried to send command to printer like this
file.txt lpr -S 192.x.x.x -P Godex EZ2250i
the result: it only open file.txt without printing.
So, is it a problem of the content of file.txt ???
here's what i send
You have the command the wrong way around.
if you mean that filename should be at the end, the request wont be accept it. that's why i put it at the begining of the request
Is that the name of the printer? If so then you probably need to put it in quotes, with the filename on the end of course. As you have it it is interpreting EZ2250i as the filename.
no it's not a problrm of quotes.
my printer is not ready to print. it has always state of "inactif" !! is it a problem of driver
installation ?
I don't understand. I thought you said earlier that you were able to print from other applications.
So what is the situation now?
You can use CURL command for example from windows CMD or linux or any other system.
egz.
Sending ZPL label through Command line.
curl -d "^XA^CF0,60^FO50,50^GB100,100,100^FS^FO75,75^FR^GB100,100,100^FS^FO93,93^GB40,40,40^FS^FO220,50^FDIntershipping, Inc.^FS^CF0,30^FO220,115^FD1000 Shipping Lane^FS^FO220,155^FDShelbyville TN 38102^FS^FO220,195^FDUnited States (USA)^FS^FO50,250^GB700,3,3^FS^FX Second section with recipient address and permit information.^CFA,30^FO50,300^FDJohn Doe^FS^FO50,340^FD100 Main Street^FS^FO50,380^FDSpringfield TN 39021^FS^FO50,420^FDUnited States (USA)^FS^CFA,15^FO600,300^GB150,150,3^FS^FO638,340^FDPermit^FS^FO638,390^FD123456^FS^FO50,500^GB700,3,3^FS^FX Third section with bar code.^BY5,2,100^FO100,550^BC^FD12345678^FS^FX Fourth section (the two boxes on the ottom).^FO50,700^GB700,200,3^FS^FO400,700^GB3,200,3^FS^CF0,40^FO100,730^FDCtr. X34B-1^FS^FO100,770^FDREF1 F00B47^FS^FO100,810^FDREF2 BL4H8^FS^CF0,190^FO470,725^FDCA^FS^XZ" http://192.168.0.66:9100
wheres 192.168.0.66 is Your printer IP,
and 9100- is listening port of your printer
its work even with Chrome "ZPL Printer" (virtual printer add.)