Dears;
I have been working for programming in RS Logix 500 for a corrugator machine. There are some periodic functions in machine which I have programmed in a separate ladder and control with JSR instruction when needed. Now my problem is that whenever JSR instruction would go false, the bits, outputs etc in that specific ladder would remain true if they were true during system last scan while they must be false as they have been using in the other part of program. I am not sure what to do for overcoming on this problem. One solution is that I write those instructions in main ladder and when JSR instruction goes false, system set them zero but they are a large number of.
Please help me out.
I have been working for programming in RS Logix 500 for a corrugator machine. There are some periodic functions in machine which I have programmed in a separate ladder and control with JSR instruction when needed. Now my problem is that whenever JSR instruction would go false, the bits, outputs etc in that specific ladder would remain true if they were true during system last scan while they must be false as they have been using in the other part of program. I am not sure what to do for overcoming on this problem. One solution is that I write those instructions in main ladder and when JSR instruction goes false, system set them zero but they are a large number of.
Please help me out.