PLC Example using Rising Edge and Falling Edge Instructions