Sign in to follow this  
Followers 0
kaiser_will

One-shot count is sporadic

7 posts in this topic

I am near completion of our first Allen-Bradley to Omron PLC program conversion and have one issue that is not working itself out yet. When a sequence of the machine runs, I have 4 different counters setup to increment once to keep track of number of cycles run. The issue is that all of the counters will sometimes count once per cycle, as they should, then other times make huge jumps. Omron tech support tells me that I should be able to change the trigger coil to Differentiate Up, but this feature is greyed out on all symbols. Omron is not aware of how to turn turn off the greyed out feature. How to unlock the greyed out features for coil edits? What elementary mistake am I making with my counters?

Share this post


Link to post
Share on other sites
Which model PLC are you using? If you can post a copy of your code, then we can take a look to see where you are going wrong.

Share this post


Link to post
Share on other sites
The differentiate up on the contact should not be greyed out for your PLC. The differentiate up option would be disabled on CPM1A, CPM2A, CQ.., C200H... PLCs, but I believe you are using a CJ1 PLC. Please provide a screen shot of the greyed out option so I can see it, along with the version of CX Programmer that you are using. The counter function is automatically a differentiated up function, meaning the count value will only decrement on the rising edge of the contact. Are you familiar with the data trace feature of the CJ PLC? It can be your best diagnostic tool for high speed troubleshooting such as this. I have posted a tutorial on the data trace feature if you are not familiar with it. http://forums.mrplc.com/index.php?autocom=downloads&showfile=663 I have an updated version for the data trace tool from CX Programmer V8, but it is not on this PC.

Share this post


Link to post
Share on other sites
The PLC model is a CS1G-CPU43H. Counters C49, C50, C51 are the problem children. We are an equipment OEM, typically integrating Allen-Bradley controls. This customer, however, requested Omron controls utilizing their "base" PLC and HMI programs. Thus, we have limited Omron programming history and have been hand-tied to use someone else's PLC program. I have found numerous errors in their base program, so I would not be surprised if that is the root of this issue. J5422_2008_10_20.cxp

Share this post


Link to post
Share on other sites
When I open the Edit features of the counter event trigger, 234.00, the Differentiate features are greyed out and Omron tech support is unaware of how to unlock these features.

Share this post


Link to post
Share on other sites
OK, you may have me stumped. I can edit the 234.00 for C50. What version of CX Programmer are you using? Now I see it. You have the dialog box open for a COIL, not a CONTACT. You cannot differentiate a COIL. For that, you would use a DIFU instruction. I don't know why the COIL dialog box is opened. I have never seen CX Programmer do anything like that. Edited by PMCR

Share this post


Link to post
Share on other sites
Allright guys, doughead me figured out that I was trying to change the COIL to differentiate up. Homer says "DOH". I made the change (thank you all very much) and it is working as expected.

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
Sign in to follow this  
Followers 0