Q: I now have a CPU of 312-1AE13-0AB0, and a DI of 321 and an AI module of 331.
It is now necessary to calculate the flow for a certain time on a flow meter. The flow meter can be selected from a 4-20 mA output or a pulse output.
I want to ask,
1. What method should I use to calculate the total flow for a certain period of time if I use the 4-20 mA output? Many people say that I use the ob block or interrupt what I don't understand. Can you explain in detail?
2. What should I do if I use pulse output? I heard people say that the 300 cpu has a high-speed counter. Does my cpu have such a function? If so, how should it be applied? Is the input entered in the DI module? Or does the CPU provide the corresponding interface? How should the program be written?
The on-site metering device has a pulse output. This output can be defined as one ton per pulse or 0.1 ton per pulse (measured by the meter itself). The above program can be written like this:
Adding a pulse is 0.1 tons
I0.0 (operation signal I0.1 (pulse accumulation signal) M10.0 (ADD_R) addition calculation
--||-----------------||-----(p)——————
MD0IN1
0.1IN2OUTMD0
3.2V105Ah Lithium Ion Battery,105Ah 3.2V Phosphate Battery Cell,3.2V105Ah Deep Cycle Solar Battery,3.2V 105Ah Lifepo4 Forklift Battery
Jiangsu Zhitai New Energy Technology Co.,Ltd , https://www.zhitainewenergy.com