Long CommHandle
A String Buffer
//CommHandle=f_OpenComm (" COM1 ", 9600, 0, 8, 0)
//CommHandle=f_OpenComm (" LPT1 ", 9600, 0, 8, 0)
Wf_comm_open (1)
Buffer=Char (2) + "f262" + Char (13)//Back feed
Buffer +=Char (2) + "L" + Char (13)
Buffer +="D11" + Char (13)
Buffer +="H20" + Char (13)//Head?? Mu mu
Buffer +="C0005" + Char (13)//Labela? Au?? A???? RMB? ? T? Ea? Who? Ai mu?
A31 Buffer +="1" + "038" + "0135" + "0025" + FiberID + Char (13);
The Buffer +="1 x11" + "000" + "0090" + "0015" + "B240" + "040" + "001" + "001" + Char (13)//BOX
Buffer +="1 x11" + "000" + "0090" + "0065" + "L001" + "040" + "001" + Char (13)//the LINE
The Buffer +="1 x11" + "000" + "0010" + "0015" + "B070" + "075" + "001" + "001" + Char (13)//PT Box
The Buffer +="1 x11" + "000" + "0065" + "0015" + "L070" + "001" + Char (13)//PT Line
The Buffer +="1 x11" + "000" + "0010" + "0100" + "B070" + "075" + "001" + "001" + Char (13)//OTDA Box
The Buffer +="1 x11" + "000" + "0065" + "0100" + "L070" + "001" + Char (13)//OTDA Line
The Buffer +="1 x11" + "000" + "0010" + "0185" + "B070" + "075" + "001" + "001" + Char (13)//OUTGOING Box
The Buffer +="1 x11" + "000" + "0065" + "0185" + "L070" + "001" + Char (13)//OUTGOING Line
The Buffer +="1 x11" + "000" + "0199" + "0233" + "B018" + "018" + "001" + "001" + Char (13)//sample box
Buffer +="1321" + "100" + "0200" + "0235" + samp + instead Char (13)//sample
Buffer +="1211" + "100" + "0110" + "0023" + "OTDR" + Char (13)//OTDR
Buffer +="1211" + "100" + "0096" + "0023" + "LENGTH" + Char (13)//LENGTH
Buffer +="1311" + "100" + "0093" + "0240" + "M" + Char (13)//M
Buffer +="1211" + "100" + "0070" + "0045" + "PT" + Char (13)//PT Line
Buffer +="1211" + "100" + "0070" + "0123" + "OTDR" + Char (13)//OTDA Line
Buffer +="1211" + "100" + "0070" + "0198" + "OTHER ITEM" + Char (13)//OUTGOING Line
Buffer +="1211" + "100" + "0230" + "0020" + "FIBER ID" + Char (13)
Buffer +="1211" + "100" + "0210" + "0020" + "LENGTH" + Char (13)
Buffer +="1211" + "100" + "0190" + "0020" + "DATE" + Char (13)
Buffer +="1211" + "100" + "0230" + ", "0070 + FiberID + Char (13)
Buffer +="1211" + "100" + "0210" + ", "0070 + Ptilth +" M "+ Char (13)
Buffer +="1211" + "100" + "0190" + ", "0070 + JobDay + Char (13)
Buffer +="1611" + "100" + "0190" + "0170" + Iseose + Char (13)
Buffer +="E" + Char (13)
Wf_comm_write (Buffer)
Sleep (1)
Wf_comm_close ()
CodePudding user response:
This is to use the print command print interface, you can give the variable assignment, print that can see the printing effect,CodePudding user response:
This should be a printer command line, pass a few test parameters to the function, look at the effect of print,