"Stefan Pendl" <stefan.pendl@[EMAIL PROTECTED]
> wrote in message
news:8vhm83tu83cl5514g5girpts7kft5ac57l@[EMAIL PROTECTED]
> On Tue, 03 Jul 2007 22:38:53 -0400, Webfoot <webber@[EMAIL PROTECTED]
> wrote:
>
>>I originally wrote the POS software on a TRS-80 model I just to
>>practice programming. My mechanical register broke one night so it
>>went into service around 1982. A Model III, 1000HX,, several Model
>>4's, XT's, AT's and ATX's later it is still in service. Of course it
>>has been added to include accounting. payroll. advertising, inventory.
>>Not sure if this makes it the first computer POS but it has to bee the
>>only one still in business.
>>
>>Now, how do I press the space bar and end up with 12v to the drawer in
>>QB4,5. I plan on using a relay to avoid excessive current draw on the
>>computer circuits.
>>
>
> OPEN "COM1:9600,n,8,1" FOR OUTPUT AS #1
> PRINT #1, CHR$(255)
> CLOSE #1
>
> Something along the above lines will do what you want.
If memory serves, you will probably have to send a string of those, not
just
one. You'll probably want to make it variable, as too few will do
nothing,
and too many will rattle the drawer like a machine gun.


|