What would cause this output to stay on?

Look at the routine that rung is in.


If it is not being called the outputs will stay on until that rung is called to turn them off. If that routine is called with a conditional JSR then it won't be called until that/those condition(s) are all true.


Here's an example from a SLC that has conditional messaging:
[The toggle bit to enable is the condition, the TRUE is to pass the Messaging Current that I have as an indicator

Capture.PNG
 
Last edited:
In that routine is there any RET before that rung that would return to the calling routine?


Or a TND that would end scanning the entire program?


Or a MCR section that would bypass it?


Do an online edit and add a rung after this one: OTE Test_Bit_Running


As soon as you test that rung that bit will come ON if it is being scanned
 
In this type of situation, one typically check the following:

- What happens when you toggle them off?
- Are these bit being used latched or energized elsewhere?
- Add some logic next to it just for testing to see if they are executed correctly.
 
May be a long shot, but also look at other things that write to the tags in the GRT instruction. The values shown on your screen are the values at the end of the scan, but they could be something else while the GRT is being evaluated. To isolate that, add a couple of MOV instructions on a new rung right above this one that MOV the tags to new, otherwise unused locations.


The same holds for the tags on the OTE instructions. Do a cross-reference on them and look for additional places where they're used destructively. Something else could be writing them ON.
 
^^^ one simple thing to do to check for rung condition is to add a timer instruction on a branch and see if it accumulate time correctly.
 
Thinking WAY outside the box . . . any chance there is a write taking place where the element prior in sequential memory to the bits is inadvertently writing into the next register? I know it's possible to do that when you COP different data types.
 

Similar Topics

Hi everyone, I need a solution based on the cause and effect diagram, especially a macro sheet or VBA script in Excel, which will help me generate...
Replies
0
Views
76
Good Morning , Not sure how many use Markem-Imaje SmartDate X60 Printers , but I'm having trouble finding a good manual for...
Replies
5
Views
615
Hello everyone, In the designer softwar of the plc HC900, I used the function version control on the toolbar and it deleted files from my...
Replies
2
Views
355
Good Evening , We had a Mettler Toledo Safeline Metal Detector acting unstable last week . We brought Mettler Toledo in to look at it ...
Replies
3
Views
835
This is a program in a machine that has been running for about 7 years without any issue like this. We have a master servo (the machine's main...
Replies
3
Views
1,168
Back
Top Bottom