| View previous topic :: View next topic |
| Author |
Message |
seeme Newbie
Joined: 23 Dec 2003 Posts: 1 Location: Canada
|
Posted: Tue Dec 23, 2003 3:30 am Post subject: [resolved] vds io help |
|
|
Hope I'm at the right place for help on this... If not simply point me in the right direction...
Hi, I'm new to programming and would like to understand what is possible with vdsdll.dll as far as the @VDS(IO,in,port) is concerned.
I've been successfull in making a simple light turn on/off with the out command and want to know if it's possible to read a simple on/off switch with this.
If so I would require a little example to start. I usually learn well keeping things simple.
Maybe I simply don't understand the parallel port the way I'm supposed to or simply that this dll can't do it.?
Thanks. |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Sat Dec 27, 2003 10:16 pm Post subject: |
|
|
Here's my reply to this, which I also sent via e-mail:
| Quote: | You are probably reading from port "$378" which will return you the data you wrote to the parallel output pins. Try to use "$379", that should return the status of the 5 input pins: @dll(IO,IN,$379)
Of course you could simply enter the "$379" address in IO.DSC, that should make the status of the pins visible.
Please refer the chart at the top of this page:
http://www.doc.ic.ac.uk/~ih/doc/par/doc/regpins.html
The "STATUS" line is what you need. |
From what I understood from Marc's reply, the solution was to use port number "$3BD". |
|
| Back to top |
|
 |
|