Hello
I'm dealing with a couple of PLCs that arent able to handle floats.
The task I have is to program a regulator and not use the integrated one.
Say I'm multiplying every number comming from the HMI with 100, and then dividing on 100 in the PLC. How do I then take care of the reminder. If for instance the Kp is set to anything between 0 and 0.99 (0-99) this will end up as 0.
I have access to regular math operations lik divison, multiplication and modulo.
I tried doing some searching, but I'm not quite sure what I should search for...
I'm dealing with a couple of PLCs that arent able to handle floats.
The task I have is to program a regulator and not use the integrated one.
Say I'm multiplying every number comming from the HMI with 100, and then dividing on 100 in the PLC. How do I then take care of the reminder. If for instance the Kp is set to anything between 0 and 0.99 (0-99) this will end up as 0.
I have access to regular math operations lik divison, multiplication and modulo.
I tried doing some searching, but I'm not quite sure what I should search for...