Scroll down to his parallel port project. Having said that this program was designed to work with a built in parallel port interface which had fixed addresses for their input and output ports. If you are using a virtual parallel port, one which connects to your computer via USB then I don’t know whether it will work. But there may be documentation with the virtual device that might point the way.
I have to say that you would be far better of changing to a new digital input output device that connects via the serial port. It might still be USB based but it is far easier to use in Liberty. There are many variants on the market, choose one and check with us before purchase.
Parallel has been dead for near twenty years or so.
What is your project about, you might get better advice if we understood the.interface required.
rem 888 is the lpt1 adress dataport = 888 rem 255 all bits port lpt on byte = 70 call WriteLPT dataport, byte a=InputLPT(dataport) end
Function InputLPT(port) open "inpout32.dll" for dll as #h calldll #h, "Inp32", _ port as short, _ value as short print value rem the value variable have de port data InputLPT=value close #h End Function
sub WriteLPT port, value open "inpout32.dll" for dll as #h calldll #h, "Out32", _ port as short, _ value as short, _ result as void close #h end sub
Good, well done. Our own version of inp and out has not worked for some time, so long that I had forgotten about it. But, Carl has fixed it recently. It would be great to know if you can get the native inp output working with your device. It’s in the help file.
'For example if you want to set pins 2 and 3 to logic 1 (led on) then you have to output value 1+2=3. 'If you want to set on pins 3,5 and 6 then you need to output value 2+8+16=26. ' In this way you can calculate the value for any bit combination you want to output.
Post by tenochtitlanuk on Nov 11, 2018 3:54:06 GMT -5
I've found the UBW a great resource in the past. Also recommend the Eibotboard from Schmalz ( sold by EvilMadScientists) which has stepper motor drivers built in and interfaces via Inkscape, the vector-drawing package ( available for Windows, and Linux, which I use.... See the following on my LB site... eggbot airwriter bitwhacker