How to deal with instructions in in-active ladder

AB2005

Member
Join Date
Nov 2006
Location
Lahore
Posts
318
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.
 
You could look into the MCR instruction. This defines a section of code to be executed dependant on conditions, and when the conditions are false, all non-latched coils will be set to off.
 
Your best option will probably be to remove (cut) the instructions that condition the JSR and paste them on each of the rungs within the JSR. Then, your JSR becomes unconditional, so the outputs it affects are always updated accordingly.

Conditional subroutines have their place in RSLogix, but it sounds like you chose a usage that does not quite fit.
 
Dear Mr. OkiePC

OK, it means there is no way only as you instructed. But scanning the subroutine continuously increases the overall scan time.
Now I have been thinking to remove the conditions before JSR, scan it continuously. Any other instruction?

Thanks in advance.
 
Setup a bit that fires on the falling edge of the conditions that call the subroutine. Use that bit to call the subroutine one more time, and during that scan, turn off everything you need using the same bit.
 
Setup a bit that fires on the falling edge of the conditions that call the subroutine. Use that bit to call the subroutine one more time, and during that scan, turn off everything you need using the same bit.


Would also be my solution - simple and effective
 

Similar Topics

Imagine if you were going to request how to configure Modbus/TCP clients and servers in a PLC development software package. What would you want...
Replies
0
Views
802
How do you guys deal with people who don't know much about PLC's, programming, troubleshooting etc but like to look over your shoulder and give...
Replies
35
Views
9,465
Hi everyone, PLC: Micrologix 1400 I have a application that is looking at 2 different flow meters and comparing there totalizer for leak...
Replies
4
Views
1,660
I got 3 panelview on View studio 5.1 and also 4-5 of them on version 6.1 How are you dealing with all these different View Studio version ? do...
Replies
16
Views
7,241
Re: How to deal with this alarm:Need to apply to DCS param Hello when I try to make the Fanuc robot move, it always shows the alarm that says"...
Replies
6
Views
7,657
Back
Top Bottom