mr_electrician

Flashing Bit

7 posts in this topic

For the life of me I cannot figure out why a particular bit keeps flashing even though the logic ahead of it stays true????  I have tried different registers to rule out crossed memory registers and still get the same effect.  I have also tried going around all my compare logic with no effect.

Any ideas?

 

Flashing Bit.mp4

Share this post


Link to post
Share on other sites

I am guessing that one of your values (highlighted in yellow) is changing and you cannot see it as it only changes within the scan.

troubleshoot.jpg.5560a311f83d997dec770f6

Setup a data trace to monitor these three addresses on every scan with a trigger variable of 4620.00 (off transition).  You should be able to see which of the three is causing your issue.

If the data trace doesn't work, then one of these variables may change in the scan and be put back at the end of the scan.  If this is the case, you may have to add some ladder code after this rung to catch the problem.  Add the code shown below immediately following the rung shown above:

 

Troubleshooting2.jpg.5fad32a84defc0025b4

 

I arbitrarily chose D5000, D5001 and D5002.  You need to use addresses that you are not using in your code.  The, if D5000 has a value other than 1 or D5001 and D5002 are not equal then one of the three variables have changed.  Remove this code when you are finished.

 

Share this post


Link to post
Share on other sites
8 minutes ago, Michael Walsh said:

I am guessing that one of your values (highlighted in yellow) is changing and you cannot see it as it only changes within the scan.

troubleshoot.jpg.5560a311f83d997dec770f6

Setup a data trace to monitor these three addresses on every scan with a trigger variable of 4620.00 (off transition).  You should be able to see which of the three is causing your issue.

If the data trace doesn't work, then one of these variables may change in the scan and be put back at the end of the scan.  If this is the case, you may have to add some ladder code after this rung to catch the problem.  Add the code shown below immediately following the rung shown above:

 

Troubleshooting2.jpg.5fad32a84defc0025b4

 

I arbitrarily chose D5000, D5001 and D5002.  You need to use addresses that you are not using in your code.  The, if D5000 has a value other than 1 or D5001 and D5002 are not equal then one of the three variables have changed.  Remove this code when you are finished.

 

Thanks for the reply and suggestion.   I will give it a try however I went around the logic driving the bit and it would still flash.

Stay tuned for updates.

Share this post


Link to post
Share on other sites

Perhaps something else is writing to this memory area....EtherNet/IP, Controller link, DeviceNet, etc. could all be writing data to that location and your ladder could be trying to write it back to a 1.  

Share this post


Link to post
Share on other sites
On 30/01/2019 at 3:36 PM, Michael Walsh said:

Perhaps something else is writing to this memory area....EtherNet/IP, Controller link, DeviceNet, etc. could all be writing data to that location and your ladder could be trying to write it back to a 1.  

On 30/01/2019 at 2:14 PM, Michael Walsh said:

I am guessing that one of your values (highlighted in yellow) is changing and you cannot see it as it only changes within the scan.

troubleshoot.jpg.5560a311f83d997dec770f6

Setup a data trace to monitor these three addresses on every scan with a trigger variable of 4620.00 (off transition).  You should be able to see which of the three is causing your issue.

If the data trace doesn't work, then one of these variables may change in the scan and be put back at the end of the scan.  If this is the case, you may have to add some ladder code after this rung to catch the problem.  Add the code shown below immediately following the rung shown above:

 

Troubleshooting2.jpg.5fad32a84defc0025b4

 

I arbitrarily chose D5000, D5001 and D5002.  You need to use addresses that you are not using in your code.  The, if D5000 has a value other than 1 or D5001 and D5002 are not equal then one of the three variables have changed.  Remove this code when you are finished.

 

Thanks for the reply and suggestion.   I will give it a try however I went around the logic driving the bit and it would still flash.

Stay tuned for updates.

 

Edited by mr_electrician

Share this post


Link to post
Share on other sites

Bit of an update....I could not find the issue but am thinking I accidentally crossed into the devicenet addresses. I ended up re addressing my bits to W bits.

Cheers

Share this post


Link to post
Share on other sites
14 hours ago, mr_electrician said:

I ended up re addressing my bits to W bits.

That's the very reason Omron gave us the W memory. They promise never to use it for anything. I've tripped on the CIO (old IR) and DM wires several times in the past.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now