KRAIG
Member level 1

how to use subroutines in s7 software
I made a program in ladder diagram which turns on an output for 3secs.Then it turns it off and turns on another output for 5 secs.It does this 4 times.
I want to do the same in a subroutine.
As i understood from the help of Mirco/Win i have to make a table and to fill memory with the data i want.
Problem is i didnt understand anything else.
Can someone tell me 2 things to understand how i can do it with a subroutine that is called again and again and does it with variables that change the output and the duration.
Also if you have any links i could study
Thank you in advance
I made a program in ladder diagram which turns on an output for 3secs.Then it turns it off and turns on another output for 5 secs.It does this 4 times.
I want to do the same in a subroutine.
As i understood from the help of Mirco/Win i have to make a table and to fill memory with the data i want.
Problem is i didnt understand anything else.
Can someone tell me 2 things to understand how i can do it with a subroutine that is called again and again and does it with variables that change the output and the duration.
Also if you have any links i could study
Thank you in advance