Subj : Re: IO Port To : borland.public.cpp.borlandcpp From : Matt Claessen Date : Wed Nov 10 2004 01:47 pm Hi, "Dani" wrote in message news:41914aef$1@newsgroups.borland.com... > > Hi all, > > This is new for me :( > I need to open a drawer which uses RJ11 Connector. The specifications are: > > The driving voltage is DC+12V. I/O port 408h is used for the solenoid operation. To open the drawer, write E0h to the port, wait > 200ms, then write F0h to turn off the drive. > 408H is the location where the port address of LPT1 is kept. So don't output to that port directly, but look up the value there, mostly 278H or 378H. After sending your data to this port, you will need to send a strobe signal to the port that is 2 bytes higher. But this is all standard printing, so why bother with the low level programming ? In my experience with POS and label equipment, you operate the cash drawer from the printer, the same way you operate a buzzer, or a label cutter. You send the correct sequence of characters to the printer, just as if you printed them, and it will perform the function. The RJ11 connector is plugged into a socket on the POS printer, that is especially designed for this. HTH, regards, Matt .