small plc program help


Thread Starter



i am a learner working with siemens plc. I m trying to make a program, where i have to generate one index. When input1 gets high, the index starts from 0 and after 20 minutes it becomes 1. Same way when the input1 goes low, the index starts gettting decrease and after 30 minutes it becomes 0.

I was trying to start one timer as input1 goes high. and then i am dividing 20 with running time value so that when the running value of timer becomes 20 the output of divid block will come 1.

but it is not working. I think i am making some mistake.

Please help me.