This page is to help with setting up the Primary Trigger option
Specifically for the VAG 60-2 wheel, but it will contain general information
MegaTune is an easy way to setup the trigger values, but you need to know what you are changing.
current decimal values
Primary Trigger | GRM setup | Mcel | ||
Edge | Rising | Rising | ||
Type | Multitooth | Multitooth | ||
Filtering | Disabled | Disabled | ||
Tooth Relation (Usually Disabled) | Disabled | Disabled | ||
Trigger Settings | ||||
TDC after trigger (degrees) | 60.0 | 60.0 | VAG wheel on ABA block is 90d off TDC at the center of the missing teeth via calibrated eyeball | |
Number of teeth on wheel | 58 | 58 | actual nubs | |
Trigger Tooth | 3 | 15 | The third nub after the space actually the missing ones are counted, 3= the first after the space | VAG ABA wheel appears to have the center of the missing teeth @ 90d off TDC, would this make this value 2 |
Next Trigger Tooth | 15 (V8)/20 4clyn | 15 | Manual states NextTrigTooth= imaginary teeth * 2 / cylinders (60 *2 / 4 = 30) | |
Crank minimum period (usec) | 1280 | 1280 | ||
Tooth Width | ||||
Engine Phase, when reset | 240 | 240 | determines toothwidth unit; (equivalent to 720 crankdegrees = 2 crankrot= 120 teeth) | |
Angular width of tooth | 2 | 2 | 120 teeth is 240, so 1 tooth width is 2 | |
Angular width of missing tooth | 6 | 6 | 3 times the above (2 missing teeth) |
This part needs to be made either transparent to the end user or extremely well explained with a shortcut on howto do it. | ||
Tooth Relation to Normal (usually 181) | 181 | 181 |
Tooth Relation to Missing (usually 118) | 118 | 118 |
These are all you settings, but these are not normally how motorheads describe thier motors or triggers.
Typical Descriptions
- TDC -- Regular meaning when #1 cylinder is at top of rotation
- Number of actual teeth on wheel
- Number of missing teeth on blank spot on wheel if there were teeth there
- Relation of blank spot to TDC this would be in degrees
- Leading edge angle from TDC
- Trailing edge angle from TDC
So using these values how do we get the other ones.
Suggestion
Do the number trunkation etc in the make mtt portion. Most NON - EE/CompEE/CS engineers will not get the howto about converting decimals to an arbitrary (seemingly) number less than 255 ( 8-bit micro unsigned issue)...
So basically a good picture and straightforward equation, IF it is not automagically done for the config. If they don't care, they should copy a working example and not mess with the numbers they don't know.
Min Crank Period (review this statement)
This definately needs to be calculated somewhere else.. I thought it was for "cranking" aka starting the car. but it is directly related to Rev limiter.. you could call this the OVERREV point or something. I'm guessing its an early variable.
Angular width, etc.. This should all be auto-calculated.
since an 8bit number only can goto 255 (8-bit unsigned) so the whole point of this is scaling.
Example 60-2 wheel
- 1 its a ratio..
- 720d / 255 = 120teeth/ x ; x = 8bit approximation of degrees / tooth but this has to be rounded down so that it is a nice root ie. divisible and integer like.
- 2 Given the number of teeth in a 720d rotation what is the new number in this ratio
- 120teeth/ rounddown(x)= 720d / y
- y is the new normalied max value (y <= real angle per tooth )
- (y)(number of teeth) = engine Phase
- Engine phase refers to the new number y * number of teeth that represents 720d
- The proper name would be scaled 720d value
- 3 Scaled Tooth angle is y
- 4 Scaled missing tooth angle is y * # of missing teeth
Proposed table
Primary Trigger wheel
Typical Meaning | Variable names | 1-10 | 1-12 | 1-16 | 1-36 | 60-2 | ||
Total Teeth | Entered | internal | 10 | 12 | 16 | 36 | 60 | |
missing teeth | Entered | Number of teeth missing | 1 | 1 | 1 | 1 | 2 | |
Teeth Present | Calc | Number of teeth on wheel | 9 | 11 | 15 | 35 | 58 | |
Crank Rotations per complete clycle | Entered | internal | 2 | 2 | 2 | 2 | 2 | (2 for 4cycle 1 for 2 cycle) |
Degrees per complete cycle* | Calc | internal | 720 | 720 | 720 | 720 | 720 | |
720 / Total Teeth = Angle Per tooth (degrees) | Calc | 36.0 | 30.0 | 22.5 | 10.0 | 6.0 | ||
Total Degrees scaled to 8 bit unsigned: 255/total teeth | Calc | 12.8 | 10.6 | 8.0 | 3.5 | 2.1 | ||
Truncate for integer math | Calc | 12 | 10 | 7 | 3 | 2 | ||
Scaled degrees per cycle | Calc | EnginePhase when reset | 240 | 240 | 224 | 216 | 240 | |
Scaled degrees per tooth | Calc | Angular width of tooth | 12 | 10 | 7 | 3 | 2 | |
Scaled degree of missing spaces(teeth+1) | Calc | Angular width of missing tooth | 24 | 20 | 14 | 6 | 6 | |
Now you have to Determine what the next trigger tooth is
Number of Clynders | |||||||
4clyn | Entered | 4 | |||||
Teeth until next clyn event | Calc | Next trigger tooth | 5.00 | 6.00 | 8.00 | 18.00 | 30.00 |
Calc | Scaled deg/ cylinders | 60.00 | 60.00 | 56.00 | 54.00 | 60.00 | |
5clyn | Entered | 5 | |||||
Teeth until next clyn event | Calc | Next trigger tooth | 4.00 | 4.80 | 6.40 | 14.40 | 24.00 |
Calc | Scaled deg/ cylinders | 48.00 | 48.00 | 44.80 | 43.20 | 48.00 | |
6clyn | Entered | 6 | |||||
Teeth until next clyn event | Calc | Next trigger tooth | 3.33 | 4.00 | 5.33 | 12.00 | 20.00 |
Calc | Scaled deg/ cylinders | 40.00 | 40.00 | 37.33 | 36.00 | 40.00 | |
8clyn | Entered | 8 | |||||
Teeth until next clyn event | Calc | Next trigger tooth | 2.50 | 3.00 | 4.00 | 9.00 | 15.00 |
Calc | Scaled deg/ cylinders | 30.00 | 30.00 | 28.00 | 27.00 | 30.00 | |
10clyn | Entered | 10 | |||||
Teeth until next clyn event | Calc | Next trigger tooth | 2.50 | 3.00 | 4.00 | 9.00 | 15.00 |
Calc | Scaled deg/ cylinders | 24.00 | 24.00 | 22.40 | 21.60 | 24.00 | |
12clyn | Entered | 12 | |||||
Teeth until next clyn event | Calc | Next trigger tooth | 1.67 | 2.00 | 2.67 | 6.00 | 10.00 |
Calc | Scaled deg/ cylinders | 20.00 | 20.00 | 18.67 | 18.00 | 20.00 |