Page 1 of 1

division

Posted: Sat Jul 13, 2013 12:11 am
by bluejets
I originally posted this in the wrong section I think.

"I need to divide a time for an engine revolution by 360 to get time per degree.
This will obviously be a .000 something or other so can you point me in the right direction on being able to read this in flowcodev5?
I've tried it as a standard calculation but it returns nothing. Well, perhaps some thing that will not register as it is too small..??"

There was an answer to search for rev or rpm or similar but all the search did was bring up my query.

Perhaps better luck here.
I've included the file, incomplete as yet but hopefully enough to give the idea of what I'm trying to achieve.

Re: division

Posted: Sat Jul 13, 2013 1:25 am
by brandonb
i created this crank degree calculator the other week, if you can't open i will convert to another chip so you can,
at the top you enter rpm and a m/s ontime and it converts as shown in image below
[img]
degree.jpg
degree.jpg (32.73 KiB) Viewed 4682 times
[/img]

Re: division

Posted: Sat Jul 13, 2013 1:03 pm
by bluejets
Downloaded your example and it would not work with the limit on the free version like you said.
So I set it for 16F628A and I could view the flowchart ok.
Only reference I saw to floating point was a variable named "count_float".
Tried to follow the flow chart but must admit to getting a bit lost.

Re: division

Posted: Sat Jul 13, 2013 10:05 pm
by brandonb
Tried to follow the flow chart but must admit to getting a bit lost.
to clearify your trying to find what the value in milliseconds one crank degree occupies at a given rpm?
in flowchart below i converted it all to crankshaft math unlink previous example i used both
this is a simulator so there is not loop, just highlighting the calculations, read notes at top
one degree rpm calculator from crank rpm.fcf
(9 KiB) Downloaded 330 times