dev negi

subroutine programme

9 posts in this topic

how to make subroutine plc programme ,how it is work. plz help for sample programme

 

Share this post


Link to post
Share on other sites

Which PLC are you using and what software are you using to interface to it?

 

Share this post


Link to post
Share on other sites

it is explained in the manual chapter 1.6 Subroutine Program.

Have you installed the e-manual viewer?

 

Share this post


Link to post
Share on other sites
13 hours ago, Gambit said:

it is explained in the manual chapter 1.6 Subroutine Program.

Have you installed the e-manual viewer?

 

dear gambit 

in manuel I found how to use subroutine programme.But  I did not understand why I should use subroutine programs.It runs like jump.I usually use function(blok).

Share this post


Link to post
Share on other sites

But you asked for subroutine ????

If you want to jump to a specific part in the program use CJ.
For a Subroutine use CALL

 

 

Share this post


Link to post
Share on other sites
On 21.12.2017 at 2:41 PM, Gambit said:

But you asked for subroutine ????

If you want to jump to a specific part in the program use CJ.
For a Subroutine use CALL

 

 

 

I'm not asking how the jump function works. I'm telling you that jump with the subroutine program is similar. I'm telling you that the function is similar to the subroutine program. Why should I use subprograms from the inside?you dont understand me

Share this post


Link to post
Share on other sites

I see, Well than I would use a Function or function blocks. For me sub routines are just a legacy way of doing things when all you had was ladder or List.
 

 

 

Share this post


Link to post
Share on other sites
On 12/22/2017 at 11:42 AM, abdullah eraslan said:

I'm not asking how the jump function works. I'm telling you that jump with the subroutine program is similar. I'm telling you that the function is similar to the subroutine program.

That post is in a direct contradiction with original post:

      "how to make subroutine plc programme ,how it is work. plz help for sample programme "

 

On 12/22/2017 at 11:42 AM, abdullah eraslan said:

Why should I use subprograms from the inside?

you don't have to, it is just a way to structure program. this is called modular programming and allows reusing same code in different parts of program without duplication.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now