jason Posted July 15, 2011 Report Posted July 15, 2011 Hello, i'm using a negative transition to trigger the average function. I've seen that its worked at least once, but it doesn't seem to be working most of the time. Does it need to be held high for longer? Whats the best way to trigger it. How will i know the results are ready? I'm assuming it might depend on the number in the array? Thanks!
Damian Posted July 15, 2011 Report Posted July 15, 2011 Hi Jason, Just a quick glance at your screenshot here is a great indication that you need to break up that network into smaller parts. The fact that your screen shot didn't even catch all the logic in the one single net is a red flag. Because of the way you you built your network, it is ambigous whether your function variables are loaded prior to the function being called. You don't want to have to look at the STL to have to figure out exactly how it will operate. And if whatever that wire is traveling vertically that we don't see what connects to is the code that reads the values in, this is asking for even more trouble. Suggestion: Have your negative transition in its own net, process the comparator, and fire one coil. Just below it, using a contact off your new coil, create another net that just loads the SI141 and SI142 register. Just below that, in a network all to itself, use the same contact to load the function call into SI140. Then, in another net all to itself, you can buffer SI143, Si144 and SI145 into MI's, or whereever else you may want them. Keeping the networks short and direct will make both you and the PLC happier. Good luck and let us know how you made out. D
jason Posted July 18, 2011 Author Report Posted July 18, 2011 that did the trick! guess i never understood the importance of the networks, and keeping them concise. just figured i could fill them up to the brim
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now