Ik ben bezig met een CNC machine, nu ben ik met de software bezig maar daar kom ik niet helemaal uit.
Het lukt wel om de data pinnen te sturen maar ik weet niet hoe ik de
Strobe, Autofeed, Init, SLCT IN
kan aan sturen. Ik gebruik de "IO.DLL" met de commando
Call PortOut(BA, 0) 'Voor dataline d0
Met port.DLL was het
Outport (BA,2),0
Maar port.DLL werkt niet onder WindowsXP
rew
four NANDS do make a NOR . Kijk ook eens in onze shop: http://www.bitwizard.nl/shop/
Jou computer-taaltje spreek ik niet. Maar als BA je "Base Address" is, (normaal iets van 0x278 of zo), dan zitten de andere bitjes op het control register 1 adres hoger. (BA+1). [edit] ok. twee hoger [/edit]
' Address
' Data Base = &H278 / &H378 / &H3BC
' Status Base + 1
' Control Base + 2
Global Const LPT_REGISTER_DATA = &H378
Global Const LPT_REGISTER_STATUS = &H378 + 1
Global Const LPT_REGISTER_CONTROL = &H378 + 2
' data status control
Global Const BIT0 = &H1 ' D0 0 /STROBE
Global Const BIT1 = &H2 ' D1 0 /AUTOFEED
Global Const BIT2 = &H4 ' D2 0 INIT
Global Const BIT3 = &H8 ' D3 ERROR /SLCTIN
Global Const BIT4 = &H10 ' D4 SELECT 0
Global Const BIT5 = &H20 ' D5 PAPER EMPTY 0
Global Const BIT6 = &H40 ' D6 ACK 0
Global Const BIT7 = &H80 ' D7 /BUSY 0
free_electron
Silicon Member
Professioneel ElectronenTemmer - siliconvalleygarage.com - De voltooid verleden tijd van 'halfgeleider' is 'zand' ... US 8,032,693 / US 7,714,746 / US 7,355,303 / US 7,098,557 / US 6,762,632 / EP 1804159 - Real programmers write Hex into ROM
je hebt hier al dezelfde vraag gesteld
http://www.circuitsonline.net/forum/view/44866/3
en der is op geantwoord.
Smijt die port.dll of io dll die je daar hetb in de vuilbak en ga die driver halen die ik daar opgeef.