I am using a plc TWDLCAA24DRF. I want to control a motor through VFD ATV31HU22N4. I have written a program already. The program works properly as I require it. But how to make it automatic. So that once I just push the switch on the input it works continusly and does not require any on and off of the switch manually, and where should I insert an emergency stop button. The program is attached in pdf Format. I will updload the program in twd but it can not be uploaded.