I like to use the LERP instruction, here's a screenshot. WX9 is your input, .RawMin would be -2380, .RawMax would be 25020, .ScaledMin would be -226, .ScaledMax would be 2273, and you can adjust any of these accordingly at runtime, no stopping the PLC to do a program mode write.