PLCs often control many kinds of electrical equipment and machinery. Loss of property, production or even life can occur if careless mistakes in programming or access are made. Always use caution when accessing or programming PLCs.

The author makes no claims or warrants about the suitability of this code for any purpose.
Be careful.