division

Moderator: Benj

Post Reply
bluejets
Posts: 12
Joined: Fri Oct 12, 2012 1:10 pm
Contact:

division

Post 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.
Attachments
Flowcode1.fcf
(18.04 KiB) Downloaded 294 times

brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Has thanked: 175 times
Been thanked: 173 times
Contact:

Re: division

Post 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 4311 times
[/img]
Attachments
crank degree calculator.fcf
(15 KiB) Downloaded 299 times

bluejets
Posts: 12
Joined: Fri Oct 12, 2012 1:10 pm
Contact:

Re: division

Post 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.

brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Has thanked: 175 times
Been thanked: 173 times
Contact:

Re: division

Post 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 304 times

Post Reply