Posted 29 Nov 2007 Does any one out there have a simple way of programming a parts counter? i'm really new to Omron and the help file just isn't cutting it. Basically, i just want to record the # of good parts produced and display on the Hmi. Any advice would be greatly appreciated. Share this post Link to post Share on other sites
Posted 30 Nov 2007 thanks.lol i used your first Cj1 option and it is counting, but it is in hex. what can i do to get the value to decimal? i need to show this value on the Hmi. if this was step 7....i wouldn't be asking. thanks again Share this post Link to post Share on other sites
Posted 30 Nov 2007 (edited) hondo, If you mean BCD (Binary Coded Decimal) then replace the ++(590) with ++B(594). If you mean Unsigned Decimal(Binary) then what you have is correct in terms of data storage, however, you may be displaying it as Hex. You can usually change the display from Hex to Unsigned Decimal in the HMI itself. Look for the following: Data Storage Type and/or Display Type. Data Storage = UINT(unsigned 1 word) Display Type = Decimal. Hope this helps. P.S. Differentiation "@" will still need to be included in the instruction or selected in the 0.00 contact. Edited 30 Nov 2007 by MiniH Share this post Link to post Share on other sites
Posted 30 Nov 2007 ]\ thanks miniH i'll give it a try and i'll let you know Share this post Link to post Share on other sites