1. Working with Analog Input Signal
As your Analog signal range is 4-20 mA. Which is 0 - 27648 in units, You can use Scale Function FC105. Input to this function is the Analog input channel, and you define the high and low limits which may be 100.0 & 0.0 respectivelly. And the output of this function will be a value between 0.0 & 100.0.
If it is 0.0, then it means that the AI value is 4mA.
If it is 100.0, then it means that the AI value is 20mA.
2. Working with Analog Output Signal
You have to use Unscale Function FC106, In this fuction, you define high and low limits and input value. The output value is unscaled to be a value between 0 - 27648.
If you used High limit = 100.0 & Low Limit = 0.0.
Now If you set your Analog Output to 0-10 V,
So to make the output 0V (0), Input value should be 0.0
to make the output 10V(27648), Input value should be 100.0
to make the output 2.5V(6912), Input value should be 25.0
Now If you set your Analog Output to 1-5 V,
So to make the output 1V (0), Input value should be 0.0
to make the output 5V(27648), Input value should be 100.0
to make the output 2.5V(17280), Input value should be 62.5