A few people have asked about Spark so here is a brief explanation of how the ford spark is calculated. The parameter IDs are for BF. FG has more adders as well.
The final commanded spark is a combination of multiple tables. This is not an exhaustive list however this is the ones you need to look at.
Borderline Knock - auF16593 (this is the maximum spark before the engine will knock)
MBT Spark - auF16630 (this is the maximum spark before you stop increasing torque)
Coolant te