You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old February 5th, 2019, 09:51 AM   #1
Tomo453
Lifetime Supporting Member
United States

Tomo453 is offline
 
Tomo453's Avatar
 
Join Date: Mar 2018
Location: Mt. Juliet, TN
Posts: 15
High Speed Counter Totalizer

I have a non-contact laser encoder connected to a high speed counter. I have posted screen shots of the configuration and logic. The total counts work fine until the counter rolls over, and then I get trash values oscillating between negative and positive. The process is to measure length. It seems to be an overflow issue, but a DINT should be a large enough data type to hold the total count even if the counter rolls over multiple times in a run. I feel like this subject has been worked to death, but I am definitelly missing something. I do have the counter configured as a counter and not an encoder desiganation. I am using quadrature inputs A, A- and B, B-.
Attached Images
File Type: png 1734VHSC_config.PNG (20.8 KB, 24 views)
File Type: png 1734VHSC_config2.PNG (17.6 KB, 16 views)
File Type: png 1734VHSC_config3.PNG (17.9 KB, 17 views)
File Type: png Laser_Encoder_HSC_Logic.PNG (35.6 KB, 21 views)
File Type: png Laser_Encoder_HSC_Logic2.PNG (19.0 KB, 15 views)

Last edited by Tomo453; February 5th, 2019 at 09:54 AM. Reason: add on
  Reply With Quote
Old February 5th, 2019, 01:41 PM   #2
gclshortt
Member
Canada

gclshortt is offline
 
gclshortt's Avatar
 
Join Date: Dec 2014
Location: Cobourg
Posts: 2,789
http://www.plctalk.net/qanda/showthread.php?t=7723

http://www.plctalk.net/qanda/showthread.php?t=17042

The above threads may help you out.
Regards,
__________________
Garry
https://www.accautomation.ca
Connect with us on Facebook: facebook.com/accautomation/
  Reply With Quote
Old February 6th, 2019, 07:37 AM   #3
Tomo453
Lifetime Supporting Member
United States

Tomo453 is offline
 
Tomo453's Avatar
 
Join Date: Mar 2018
Location: Mt. Juliet, TN
Posts: 15
Thanks
  Reply With Quote
Old February 12th, 2019, 01:11 PM   #4
Tomo453
Lifetime Supporting Member
United States

Tomo453 is offline
 
Tomo453's Avatar
 
Join Date: Mar 2018
Location: Mt. Juliet, TN
Posts: 15
My logic was flawed. i was adjusting the total counts on rollover condition, but the current count needed to be adjusted on rollover by the number of rollovers times the rollover value. This way the last scan count is updated accordingly. Now to account for the line reversing as currently I simply check if current scan is less than last scan to increment the rollover count.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Question about high speed counter Weivreif LIVE PLC Questions And Answers 3 November 30th, 2010 03:37 AM
LS high speed counter m.askar LIVE PLC Questions And Answers 1 June 30th, 2010 04:12 AM
Help With Omron High speed counter Mbeavers34 LIVE PLC Questions And Answers 0 May 20th, 2010 10:54 AM
GE Fanuc High Speed Counter and Hercules Encoder RolandoM LIVE PLC Questions And Answers 3 April 26th, 2006 07:43 PM
AB Micro High Speed Counter Trouble Rocky Cortis LIVE PLC Questions And Answers 2 September 19th, 2004 01:09 PM


All times are GMT -5. The time now is 06:00 PM.


.