Let’s create the internal logic used to perform the conversion.
In the logic window for ladder logic development, we have three instructions created for the logic to be used for the conversion.
- The first instruction is a “Compute” instruction allowing us to create the equation for a destination results tag called Fahrenheit_O.
- The second “Move” instruction simply copies the Fahrenheit_O AOI output tag to the Fahrenheit_I AOI input tag.
- The last “Compute” instruction calculates the Kelvin converted value from the equation using the Fahrenheit temperature.