Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trigger POS Drawer in VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00671994
Message ID:
00672322
Vues:
15
The problem is that the printer is interpreting those escape codes - Epson printers have always set different character sets and done other functions by sending them ESC (CHR(27) plus additional codes. Either the cash drawer is supposed to intercept those commands and not pass them on, which could be a setting with the drawer hardware, or you need to see if the drawer accepts a different command to open it - some are configurable as to the activation string. CHR(27)+CHR(112) happens to be the Epson command to toggle proportional mode printing. The NUL (CHR(0)) and ENQ (CHR(5)) probably print out as graphics characters.

Randy

>Hi,
>
>The printer still printing out the empty even I add the command
>before, after or append to my current command.
>
>BTW, what are those command ?
>
>
>>>Hi,
>>>
>>>I need to trigger a POS drawer to open in Windows 2000 Professional
>>>using VFP6.
>>>
>>>So, I do the following below and it trigger my drawer to open but
>>>it also print some binary data to the printer too (Epson 88TM)
>>>I am using the driver from Epson website to install it.
>>>
>>>My code
>>>
>>>SET PRINTER TO LPT
>>>
>>>??? CHR(27) + CHR(112) + CHR(0) + CHR(5) + CHR(5)
>>>
>>>SET PRINTER TO
>>>
>>>
>>>Please kindly advise
>>
>>Try the following:
>>
>>
??? chr(7)
>>
>>or
>>
>>
??? chr(27)+chr(7)
>>
>>HTH,
>>
>>Enmanuel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform