Electronics Lab Philippines

Serial port Using VB6...pls Help!

Offline riczcode

  • **
  • 10
  • 0
Re: Serial port Using VB6...pls Help!
« Reply #40 on: April 05, 2015, 02:16:55 PM »
hindi kaya mali yung settings ng mscomm1 kaya dalawang beses nya nireread? naka default lang kasi yung mga value nya ee

Offline zirlou21

  • *******
  • 750
  • 84
  • Gender: Male
  • I wish there is GOD...
    • ARDUINO,ATMEL-AVR,ZILOG ENCORE,PIC..CIRCUITS/APPS
Re: Serial port Using VB6...pls Help!
« Reply #41 on: April 05, 2015, 08:46:52 PM »
 :) :) :)


...pwede mo ba ipost schematic diagrm interface ng coinslot to db9 connector,,
then gawan natin ng vb6 prog.
...NO OFFENSE pls..usapang teknikal lang,walang personalan.....

Offline riczcode

  • **
  • 10
  • 0
Re: Serial port Using VB6...pls Help!
« Reply #42 on: April 05, 2015, 09:37:34 PM »
:) :) :)


...pwede mo ba ipost schematic diagrm interface ng coinslot to db9 connector,,
then gawan natin ng vb6 prog.

pinag tataka ko lang bakit dalawang beses nya tinatawag yung oncomm, patulong po sa configuration  :'(


Offline zirlou21

  • *******
  • 750
  • 84
  • Gender: Male
  • I wish there is GOD...
    • ARDUINO,ATMEL-AVR,ZILOG ENCORE,PIC..CIRCUITS/APPS
Re: Serial port Using VB6...pls Help!
« Reply #43 on: April 05, 2015, 09:51:48 PM »
 :) :) :)

...try mo tinest ko muna yan,working naman.http://i1296.photobucket.com/albums/ag11/llb_e21st/coin_vb6_zps7jdnebtx.jpg

...kung nag double ang counting maaaring nag bobounce ang signal mo from coinslot.
...NO OFFENSE pls..usapang teknikal lang,walang personalan.....

Offline riczcode

  • **
  • 10
  • 0
Re: Serial port Using VB6...pls Help!
« Reply #44 on: April 05, 2015, 11:19:46 PM »
sir hindi po sya nag ccount, ginawa ko, yung wire nilagay ko sa pin3 katulad ng sabi nyu, ginaya ko din yung sample code

pero may napansin ako nung binalik ko ulit sa pin2(receive), yung sa mscomm1.RThreshold
nung nilagyan ko ng 1, tatlong beses nya ni read yung oncomm pero nung 0 lng yung value nya dalawang beses nya ni rread si oncomm
kaya sure ako wala sa coinslot yung problema ko,

edit: try ko po sana gumawa ng validation sa loob ng oncomm event (eg. if mscomm1. trigger then, etc.) kso hindi ko alam yung syntax

Offline zirlou21

  • *******
  • 750
  • 84
  • Gender: Male
  • I wish there is GOD...
    • ARDUINO,ATMEL-AVR,ZILOG ENCORE,PIC..CIRCUITS/APPS
Re: Serial port Using VB6...pls Help!
« Reply #45 on: April 05, 2015, 11:31:17 PM »
 :) :) :)


...yung coin detector module mo may sw yan para mamili ka kung "output HI or output LOW"
ang kailangan mo...iset mo sa output-LOW.

...ganito kase ginawa ko ni run ko muna yung vbProg w/o error then sa port ng db9Male(disconnected muna
ang coin sensor) pin5(gnd) at pin-3 nilagyan ko ng tack sw...pag on mo dapat mag count up by 10's ang program.
...NO OFFENSE pls..usapang teknikal lang,walang personalan.....

Offline riczcode

  • **
  • 10
  • 0
Re: Serial port Using VB6...pls Help!
« Reply #46 on: April 06, 2015, 12:06:21 AM »
:) :) :)


...yung coin detector module mo may sw yan para mamili ka kung "output HI or output LOW"
ang kailangan mo...iset mo sa output-LOW.

...ganito kase ginawa ko ni run ko muna yung vbProg w/o error then sa port ng db9Male(disconnected muna
ang coin sensor) pin5(gnd) at pin-3 nilagyan ko ng tack sw...pag on mo dapat mag count up by 10's ang program.

sir pwede malaman yung diagram kung panu mu ni interface yung mga wire sa comport,
medyo nalito ako sa sinabi mu, pasensya na talaga sir noob pa ako dito

Offline zirlou21

  • *******
  • 750
  • 84
  • Gender: Male
  • I wish there is GOD...
    • ARDUINO,ATMEL-AVR,ZILOG ENCORE,PIC..CIRCUITS/APPS
Re: Serial port Using VB6...pls Help!
« Reply #47 on: April 06, 2015, 12:16:32 AM »
 :) :) :)

...yung cable mo na rs232 from PC to coinslot...tinanggal ko muna coinslot sensor board.
them duon sa pin5 at 3 ng cable naglagay ako ng swPbutton para matest muna program kung gagana .
pag naka rekta muna sa pins ng rs232 cable ang input signal instead of coinslot trigger.
...NO OFFENSE pls..usapang teknikal lang,walang personalan.....