https://instrumentationtools.com/wp-content/uploads/2018/04/PLC-Program-for-Analog-Input-Sampling.png