Fortune Telling Collection - Ziwei fortune-telling - The analog input current of Siemens plc is 0-20ma, and the actual transmitter is 4-20ma (corresponding to 0- 1.6Mpa). How to modify the program to calculate the actual pressure?

The analog input current of Siemens plc is 0-20ma, and the actual transmitter is 4-20ma (corresponding to 0- 1.6Mpa). How to modify the program to calculate the actual pressure?

I think it's right in the program.

When the transmitter is 4mA, PIW288=5530, MW100 = 5530-5530 = 0;

When the transmitter is 20mA, PIW288=27648, MW100 = 27648-5530 = 22118;

The block of range conversion, I guess, is to linearly convert the number from 0 to XSH into the number from 0 to LCH, so when piwis (MW 100) is 0, the output is 0, and when piwis (mw100) = 2218, the output is/.