09-23-2009 06:35 PM
Hi,
I am using Zebra T402 label printer, D9 serial communication cabel.
I want to send command to the printer to printer to print date and serial number and barcode. How can i use visa properties to send commands to printer?
Can any one is there to help ?
Thanks
Solved! Go to Solution.
09-23-2009 06:54 PM
09-23-2009 07:05 PM
Hello Mark,
Thanks for the reply.
I am using LV 8.6.1. I am working on a project, which tests DUT and, at every end of the test, LV should tell printer to print date , below that , barcode and under this serial number . I have not used serial communication in labview much. Could you please help me how can i send the commands from labview to the printer ?
Thanks
09-23-2009 07:15 PM
09-23-2009 11:21 PM
Hello Mark,
I am able to communicate via parallel communication (not by using lv). I am fialed to do via serial.
I tried to communicate via parallel port using visa, it bit confusing.
I want to print label of size 17mmx35mm . i ahve attached document , in which i placed two label structures i wanted to print.
And can you help me how can i send ZPL command in labbview?, how does lv communicates with parallel port? TPL1?
I really need to complete this task tommorow.
Please help me.
Thanks
09-24-2009 09:45 AM
Sandy,
Here is a modified version of the example I suggested. It includes the option of using the parallel port for communication. I am in the process of getting some example ZPL for you for the label formats that you are using.This example should give you everything you need to communicate with the printer.
09-24-2009 01:00 PM
09-24-2009 10:21 PM
Hello Mark,
great! your code works , on zebra T402 printer. now I can print date, product code numbers etc.
But, how can i increament the serial number for each DUT test? and how can i set date day to day in zpl launguage? Can i do it in lv?
Thanks
09-25-2009 10:18 AM
11-17-2025 10:26 AM
Hi man, and Hello everyone.
I need help because I'm really stuck. I'm trying to print a label with the date, time, and weight on a Zebra ZD 421 printer. This printer is connected Thought RS-232 serial port to a Laumas brand scale. I need to capture the value from function FN1. How can I write the label to a ZPL file? I've tried several tests, but I can't get it to read the weight value from the scale. It prints the layout I created, and in a tiny corner, it prints the weight, which it's always done. I can't seem to get that value to work where it should be. I'm using a 2,19" x 0,5" Zebra Jewerly 8000D Label.
This is my ZPL code... CT~~CD,~CC^~CT~
^XA
^DFE:BASEPG.ZPL^FS
^CI0
^PW468
^FO224,0^GFA,00384,00384,00004,:Z64:
eJxjYMACOEYxHNMYAADlNwIZ:6326
^FO0,0^GFA,02304,02304,00024,:Z64:
eJztlcENgzAMRQ3pgRuMwAgM0ENGYzRGYoBKrYRFEtv6riKBKlX5BxKeHBKc5JvI0fjOehV8L/phy+Fi8DP1FsFD6m2Cp9cgcRr+UHxQLam4RfHzu1FxWkWTxYGdxjQfz97wSUyfNbhcL/+MnAzvi9lLdS6PhvOfIr5aHh1u08NLqeU2nZyCu7ndFt6Sf+W/yvNV56T2fFaf/9lg/36he4ruda0/IJ9BvoR8DPoe8knkq8iHkW8jn4d1AdURVHdgnWpq+qIPHWkspw==:0452
^FO288,0^GFA,02304,02304,00024,:Z64:
eJztlcENgzAMRQPhwK0dgREYgENGYzRG6gCV2gMRtr/1gyKBkBD/EvNkkmCS7xAKev02fTX/SBgXla5zJglHzaOEi+byFA2WtzvLexdA2mj5Nm2yPMwwQl4DOAzr0CJ/w/qwP8Z75J2ZTtSa5UVNmSfk+UMZnx1PJe7Kk3dSy105cwXO5u635D9yV35VnY86J7Xns/r8D4h37he7p+xe1/oD8xnmS8zHqO8xn2S+ynyY+TbzedoXWB9hfYf2qUePdvQHLIYqqQ==:9D2A
^FT77,35^A0N,18,16^FB29,1,0^FH\^FDPala^FS
^SLT
^FT53,56^A0N,18,16^FB74,1,0
^FC%,{,#
^FD%d/%m/%Y^FS
^FT332,34^A0N,18,16^FB90,1,0^FH\^FDGross Weight^FS
^FT357,57^A0N,20,19^FB40,1,0^FH\^FN12"FN12"^FS
^XZ