
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
Hallo again, Okay this time in english. Transport beld goes 40 meters/minute (average speed, it's adustable to the proces) packetlenght = 18 cm max 140 packets per minute (Between 110...140 packets/minute depending on the proces) So, with the maximum speed of 40 mtr/min = 66 cm/sec the packages are 28 cm seperated from each other. The space between the barcodescanner and the cilinder is aprox. 70 cm. So lets say that between the scanner and the cilinder 3 package fit. I need to know how to program this problem. example: #begin wait scanner = on period = timer + speed (depending on beldspeed) #cilinder if period > timer then goto cilinder cilinder = on pause 2 cilinder = off goto begin In this example one package will be trow out. but if package 1,2,4,6,7 must be trow out, this little program will not work. I'll have constantly poll the barcodescanner, and add a time to this trigger. And there is my problem, when I'm waiting for the timer to activate the proces, I cannot poll my triggerinput. The chance that I miss the trigger or see it to late is to big. So I dare you...... Mathy > > > Hallo, > > > > > > Hallo, (ich bin hollander, so veruntschuldige mein Deuts) > > Macht nichts, kannst du mir dein Problem nochmal auf englisch beschreiben (auch per Mail)? > > Ich weiß zwar etwa was du meinst, aber nur etwa! > > > > Cu Rene, > > alias Topmail > > > Hello Rene, > > are you using a c-control 1 or a c-control 2 > > the cc2 is 25 times faster than cc1 > > a much faster possibility would be using an Atmel AVR > MCU > > there is an IDE with wich you can Programm in Basic > > it's called BASCOM > > AVRs have a risc architecture and are VERY fast > > you can even buildt MP3-Player with them > > did i understand right > > your programm is waiting for 100ms-Pulses signaling > "no read" from the scanner ? > > and after a specific time a cylinder must kick off the packet > from the transportion-rubber ? > > what is the minimum time between two signals "no read" from the scanner ? > > maybe one possability would be that the signal "no read" starts an interrupt > > but i need more information about the times > > 140/pm means 140 packets per meter = 7,14mm / Packet? > > Speed 40m/min = 667 mm/sec? > > means every (667 mm/sec) / (7,14 mm/Packet) = 93,3Packets/Sec ?? > > or otherwise 1/93,3 = 10,7 milliseconds/Packet ? > > i think some of my suggestions are wrong > so how is it right > > please post numbers with easy to understand units > > like Meter / Minute > > packets / Meter etc. > > sl > > |
| Antwort schreiben |