1, converts analog values into the values of quantities:

Parameter conversion:

OUT = [((FLOAT (IN) – K1)/ (K2–K1)) * (HI_LIM–LO_LIM)] + LO_LI

Note:

If user input/output type dual-polarity (± 10V, 5V), K1=-27648,K2=27648, or K1=0,K2=27648.

For example: suppose the analog module the sensor type 0-20mA to measure object temperature, when temperature is 0 c current 0 mA, when temperature is 100 ° c current is 20 mA. Analog input modules to get the corresponding value corresponding to 0 mA for 0,20 mA corresponding to 27648. If current current value for 10 mA, is simulation volume module get of entered value for 13824, if user hope in CPU in the get a eventually of actual temperature value, is can using this formula, will simulation volume entered module of numerical assigned to parameter IN, engineering volume ceiling value given for 100.0, lower value given for 0.0, can in output parameter OUT get actual temperature value 50 ℃.

2, the project value converted to analog values:

Parameter conversion:

OUT = [ ((IN–LO_LIM)/(HI_LIM–LO_LIM)) * (K2–K1) ] + K1

Note:

If user input/output type dual-polarity (± 10V, 5V), the parameter should be given as a TRUE BIPOLAR, K1=-27648,K2=27648, or K1=0,K2=27648.

For example: assuming the output analog output module is set to the 0-20mA type, the connected actuators for control valves. Valve opening when current 0 mA to 0%, when a current of 20 mA valve opening to 100%. If user hope valve open degrees for 50%, is can using this formula, will open degrees given value assigned to parameter IN, engineering volume ceiling value given for 100.0, lower value given for 0.0, will simulation volume output module of address assigned to parameter OUT, at OUT numerical for 13824, can makes simulation volume output module output current value for 10 mA, that valve open degrees for 50%.