Why doesn't the output energized when toggled?

novice

Member
Join Date
Dec 2006
Location
San Antonio, TX
Posts
65
The problems just keep coming. WHy doesn't this program behave like it should?



I have three controllers with identical programs. Yet the other two are working fine but this one isn't.
 
Is that routine being called to run?
Is the address have another OTE or OTU somewhere else in the program?
 
Yes to the first question. No to the second.

I have two identical programs. Yet in those two, the output does energize when input is toggled. But in this program, it doesn't. Not unless the output itself is toggled.
 
Last edited:
Only guesses are possible from this remote location.

1. The 3 programs are not exactly identical..There is a relay somewhere that is de-energizing XI_7689, or

2. These rungs are inside a sub-toutine, or

3. The PLC is not running, and this was its last state before quitting.

How come you used XI_7689_DCS to seal in XI_7689? Seems like it would be best to use XI_7689 to seal itself.
 
If the code is in a sub-routine, make sure that you are calling the sub-routine. If it is not scanned the output will not energize. Also, make sure that you have not somehow duplicated the output elsewhere in the program. It could be turned on then off in the same processor scan.

Regards
 
WHy doesn't this program behave like it should?
All programs behave like they should. Perhaps not as we expect, but always like they should.

I'm sorry. For some reason on this PC I can't view the image you've embedded/attached so I'm reduced to just making smart unhelpful remarks. (Hmmm... no change there, mutters the rest of the forum ...)
 
novice said:
The problems just keep coming. WHy doesn't this program behave like it should?



I have three controllers with identical programs. Yet the other two are working fine but this one isn't.

Your image has garbage and pop-ups attached to it.
 
Clarify the question, please.
I do not see any toggling logics in the code fragment, assuming that "toggle" means bidirectional changing the bit state to opposite.
Do you probably mean your attempts to toggle the bit manually from online PC?
 
Last edited:
I've had this EXACT problem before too. What I do is delete the element and then insert a new element of the same type. Try that, sounds childish but it fixed my problem.
 
To answer all your questions:
- it happens during Program Run
- how do I know if the sub-routine is being run (or not)?
- XI_7689_DCS should not affect the output because the Modbus relay is opened
- the output isn't duplicated elsewhere; I've checked using cross-reference search

I ended up using one of the other identical program, do "Save As" and correct the tags. Took care of most of the problem.

To Krilun,

Do you have to delete and re-create the same tag as well?
 
Last edited:
I didn't have to delete the tag itself, but if deleting the element and replacing it doesn't fix it try recreating the tag that is having the issue.

also you may want to cross reference that tag to make sure its not getting two conflicting values.
 
Is this PLC attached to an HMI that could possibly have control of the bit in question? The PLC and the HMI could be fighting over control of the same bit.

Jeff
 
You say the output is not cross referenced... try cross referencing the ALIAS, or output, to see if you have mistakenly assigned the alias to more than one tag.

Good ol' RSL5000... I love it, but whew.
 
This can happen if you use the same OTE instruction in multiple places in the program. If you need to have the same output in several different rungs or ladders, even if the ladder is inactive, you need to use it as an OTL and OTU.
 

Similar Topics

I've developed a simple batch script to test communications with a couple of ethernet devices one of our clients has out in the field. The script...
Replies
5
Views
5,198
We are moving from Allen-Bradley to Beckhoff and have discovered a construct that behaves in unexpected ways. If we use the built-in MOVE block...
Replies
4
Views
2,693
Hi all, I finally got to the point of building actual circuit, connected a bunch of LEDs to my PLC and was sad to discover a slight mismatch...
Replies
5
Views
2,535
Hello I have In touch 10.1 I tried to enter the WindowMaker to make some adjustments I am using a dongol for the license . I can access the...
Replies
1
Views
87
Hello guys, I'm trying to use the Lenze GDC 4-14 with the system bus adapter 2177, but it doesn't appear in the communication window. It's like I...
Replies
0
Views
225
Back
Top Bottom