Disar
Member
Hello, I am rewriting some code and would like to start using JSR instructions for functions I perform regularly (zeroing out entries on the HMI, searching for model numbers in a data table, etc.). I have several questions I was hoping you experts can help me with.
1. I have read over the pdf file for the JSR command and how it is used. It talks about criteria for segments for the JSR to work properly. Could someone explain this to me?
2. What is the difference between a segment and a network? I am sure it is the hierarchy of the program structure. My problem is it seems that the program I am updating is one long segment (160 Networks).
3. If I were to implement JSR's into this program would I have to restructure it so I could so I could add in these segments?
4. I am sure you can do this but want to make sure. Can I power on an output in a SR and when I returnuse that output in my program? Or is the JSR command used to perform data manipulations?
5. What do you typically use the JSR command for? In a program do you use it often? Does it slow down the system if used to frequently?
6. Are there any examples of how the JSR is used online?
I appreciate all of the help.
Thanks!
1. I have read over the pdf file for the JSR command and how it is used. It talks about criteria for segments for the JSR to work properly. Could someone explain this to me?
2. What is the difference between a segment and a network? I am sure it is the hierarchy of the program structure. My problem is it seems that the program I am updating is one long segment (160 Networks).
3. If I were to implement JSR's into this program would I have to restructure it so I could so I could add in these segments?
4. I am sure you can do this but want to make sure. Can I power on an output in a SR and when I returnuse that output in my program? Or is the JSR command used to perform data manipulations?
5. What do you typically use the JSR command for? In a program do you use it often? Does it slow down the system if used to frequently?
6. Are there any examples of how the JSR is used online?
I appreciate all of the help.
Thanks!