Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Determining cash drawer status
hi,
im using an Epson TM-U210 (POS printer) having a drawer kick-out connected to Posiflex cash drawer. I was able to open the cash drawer by:
****************************************
* --- START OF DRAWER OPENING CODE --- *
****************************************
* --- Set safety off to stop system promt when
* --- over writting a file
SET SAFETY OFF && Optional
* --- Set the system environment device to target a file
* --- so any printer code sequences will be stored in
* --- a print file.
SET DEVICE TO FILE o_drawer.prn
* --- Send the printer control sequence
* --- that will trigger the cash drawer opening
* --- Note: Make sure the designated print location
* --- for the aschii printer characters are set
* --- to 00,00 to stop any line feed advancing
@ 00,00 SAY CHR(27)+CHR(112)+CHR(00)+CHR(50)+CHR(100)
* --- Set the global system device back to the screen
* --- so you again have access to the system monitor.
SET DEVICE TO SCREEN
* --- Copy the prn file directly to the lpt1 port to open the drawer
COPY FILE o_drawer.prn TO lpt1.dos
wait wind
* --- Set safety back on, if over writting prompt needed
* --- (Edit and remove * below to effect over writting
* --- of file prompt to appear.
SET SAFETY ON && Optional
**************************************
* --- END OF DRAWER OPENING CODE --- *
**************************************
* --- Return to the calling program
RETURN
The question is, how do i determine whether the cash drawer is still open or is already closed?
Please help. Thank you in advance.
-Erik
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement