You need to convert the input engineering quantity value into actual reading according to the module. 4ma corresponds to 0, 20ma corresponds to 4000, and the other is the proportional correspondence between the other, then see the example program of the program processing in the module manual, directly apply.
Note the module address. The same is true for D/A conversion. By arithmetic processing, the actual reading is multiplied by 4000. After dividing by the range, the data is stored in the D area, and then the manual is displayed, and there is a D/A conversion program.