michonezol
Member
Hi everyone, I am a newbie in PLC programming.
This is my code written in ST
--------------------------------------
PROGRAM MAIN
VAR
Motor :BOOL;
Start :BOOL;
Delay :TON;
button :R_TRIG;
END_VAR
--------------------------------------
button(CLK:= Start);
Delay(IN := button.Q, PT := T#5S, Q => Motor);
--------------------------------------
The idea is simple. After 5 seconds the button is pressed, the motor will work.
But, the program doesn't work as expected. I don't understand why
Could you help me out please?
Thanks so much.
This is my code written in ST
--------------------------------------
PROGRAM MAIN
VAR
Motor :BOOL;
Start :BOOL;
Delay :TON;
button :R_TRIG;
END_VAR
--------------------------------------
button(CLK:= Start);
Delay(IN := button.Q, PT := T#5S, Q => Motor);
--------------------------------------
The idea is simple. After 5 seconds the button is pressed, the motor will work.
But, the program doesn't work as expected. I don't understand why
Could you help me out please?
Thanks so much.
Last edited: