ELake20
Lifetime Supporting Member
You are a freak! Haven't messed with indexing before or much with Arrays so this is all very cool stuff!!!!
This will keep me busy for awhile
One more quick one and I'll leave you guys alone I promise
I have approximately 6 linear equations that I need to solve for, heres my terrible interpretation
This will keep me busy for awhile
One more quick one and I'll leave you guys alone I promise
I have approximately 6 linear equations that I need to solve for, heres my terrible interpretation
Then I want to write these values to an analog output, (depending which one is active) known as EDS_SP. These calculations required over 25 networks in LAD, amazing how much simplier doing math is in SCL. My syntax is terrible!EQ6_Calc := (AverageVal < 5.000000e+001 AND AverageVal > 1.600000e+001) -5.000000e-001 * AverageVal + 3.800000e+001 // If Cylinder Position is less than 50% and greater than 16%, use equation #6 ( Y = -.5*x+38) X = Average Cyl
EQ5_Calc := (AverageVal > -2.000000e+000 AND AverageVal < 1.600000e+001) -2.222000e-001 * AverageVal + 3.355600e+001 // If Cylinder Position is greater than -2 and less than 16%, use equation #5 ( Y = -.2222*x+33.556) X = Average Cyl
EQ4_Calc := (AverageVal > -2.600000e+001 AND AverageVal > -2.000000e+000) -1.000000e+000 * AverageVal + 3.200000e+001 // If Cylinder Position is greater than -26 and less than -2, use equation #4 ( Y = -1*x+32) X = Average Cyl