In Pac Control, the standard has always been the data type is automatically converted when moving from integer to float and back. Now it seems like I may have come across this before, but why does this statement not autoconvert?
Vfd_Speed_Rpm = Vfd_Read_nTable[5] / 100;
I am taking an integer element, dividing it by 100 and placing the result in a float. In practice, it does not autoconvert and the value ends up the same value as is in element 5.
Obviously if I put the value in a temp float var, and then divide it, it will probably work which is what I’ll do next, but the example should work, why not?