Previous in Forum: Fun with Matchsticks(Old Post)   Next in Forum: What time is it?
Close
Close
Close
31 comments
Rate Comments: Nested
Power-User
United Kingdom - Member - Member

Join Date: Mar 2007
Location: Blackburn, Lancashire
Posts: 269
Good Answers: 9

Contact Bounce

05/28/2008 9:07 AM

Hi Chaps,

I have a CMOS production tact time display (counter) that I need to wire into a production machine. Unfortunately the PLC has only relay output modules and they seem to be bouncing. Does anybody know of an off the shelf module which will eliminate the bounce for a 24v output? Tried a solid state relay but that is able to switch as quickly as the bouncing contacts

Thanks in advance

Al

__________________
If you remain calm while all those around you are losing their heads, then you haven't realised the seriousness of the situation
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru
Engineering Fields - Instrumentation Engineering - New Member Hobbies - Fishing - New Member

Join Date: Jan 2008
Location: Kazakhstan
Posts: 753
Good Answers: 8
#1

Re: Contact Bounce

05/28/2008 9:41 AM

Maybe you could apply latch trigger unit?

Register to Reply
Guru
United Kingdom - Member - Olde Member!! Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jul 2006
Location: Dunstable, England
Posts: 2821
Good Answers: 45
#2

Re: Contact Bounce

05/28/2008 10:40 AM

If its a slow change then a capacitor across the contacts might suffice?

Otherwise you will need a small de-bounce circuit, a TTL device provides this function for up to 6 (I think) switches.

Its basically a comparator which when it first switches is disabled for a set time so no other signals can reset it... Works very well.

John.

__________________
A little knowledge is a dangerous thing - Googling is far worse!
Register to Reply
Guru
Engineering Fields - Instrumentation Engineering - New Member Hobbies - Fishing - New Member

Join Date: Jan 2008
Location: Kazakhstan
Posts: 753
Good Answers: 8
#3
In reply to #2

Re: Contact Bounce

05/28/2008 10:59 AM

Isn't it a Schmitt trigger? Latch trigger almost the same. You need only to organize specially its unlatching after contact bouncing finish.

Register to Reply
Guru
United Kingdom - Member - Olde Member!! Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jul 2006
Location: Dunstable, England
Posts: 2821
Good Answers: 45
#4
In reply to #3

Re: Contact Bounce

05/28/2008 11:09 AM

NO.... a Schmidt trigger input just has a set hysteresis before switching...

Contact bounce can easily switch off and on several times in several milliseconds, so making the schmidt output switch as well.

__________________
A little knowledge is a dangerous thing - Googling is far worse!
Register to Reply
Guru
Engineering Fields - Instrumentation Engineering - New Member Hobbies - Fishing - New Member

Join Date: Jan 2008
Location: Kazakhstan
Posts: 753
Good Answers: 8
#5
In reply to #4

Re: Contact Bounce

05/28/2008 11:18 AM

Yes, you're right. I just picked up my old textbook. Hysteresis may be too short to cover average bouncing period. Though I used one being student long time ago for hercon relay signal handling.

Register to Reply
Power-User
United Kingdom - Member - Member

Join Date: Mar 2007
Location: Blackburn, Lancashire
Posts: 269
Good Answers: 9
#6
In reply to #2

Re: Contact Bounce

05/28/2008 11:38 AM

Thanks John

What size of cap would you recommend for a 10mS pulse?

Alan

__________________
If you remain calm while all those around you are losing their heads, then you haven't realised the seriousness of the situation
Register to Reply
Guru

Join Date: Sep 2007
Location: Wrong end of the yellow brick road in Oz
Posts: 930
Good Answers: 15
#11
In reply to #6

Re: Contact Bounce

05/29/2008 12:40 AM

T=RC

Time (Seconds) = Resistance (Ohms) x Capactiance (Farads)

__________________
Qn, Whats the differance between a Snake and a Onion? Ans, No one cries when you chop up a Snake
Register to Reply
Power-User
United States - Member - American by birth,southern by the grace of GOD Popular Science - Weaponology - you can't carry that! Technical Fields - Technical Writing - why can't I use a pencil? Hobbies - Target Shooting - New Member

Join Date: Jan 2008
Posts: 203
Good Answers: 2
#7

Re: Contact Bounce

05/28/2008 1:04 PM

Hope this helps, you may want to tune these to taste, but it's hard to beat a good de bounce circuit. Thanks for helping me to remember the early days of basic electronics school!

__________________
The more complex the mind, the greater the need for the simplicity of play... If you think you can or think you can't you'll always be right
Register to Reply Score 1 for Good Answer
Guru
United Kingdom - Member - Olde Member!! Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jul 2006
Location: Dunstable, England
Posts: 2821
Good Answers: 45
#8
In reply to #7

Re: Contact Bounce

05/28/2008 2:38 PM

Good, nice and simple logix

John.

__________________
A little knowledge is a dangerous thing - Googling is far worse!
Register to Reply
Power-User
United States - Member - American by birth,southern by the grace of GOD Popular Science - Weaponology - you can't carry that! Technical Fields - Technical Writing - why can't I use a pencil? Hobbies - Target Shooting - New Member

Join Date: Jan 2008
Posts: 203
Good Answers: 2
#9
In reply to #8

Re: Contact Bounce

05/28/2008 2:51 PM

Thanks, that means a lot . It's hard to give the "illusion" of being smart when you have to prove it.

__________________
The more complex the mind, the greater the need for the simplicity of play... If you think you can or think you can't you'll always be right
Register to Reply
Guru

Join Date: Apr 2007
Location: Hyderabad, India
Posts: 596
Good Answers: 12
#10

Re: Contact Bounce

05/29/2008 12:10 AM

First try this: Connect 100MFD 63V electrolytic capacitor parallel to relay. If still problem is not solved then you need a circuit. Take care to check polarity.

__________________
Subramanyam
Register to Reply Score 1 for Off Topic
Guru
United Kingdom - Member - Olde Member!! Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jul 2006
Location: Dunstable, England
Posts: 2821
Good Answers: 45
#30
In reply to #10

Re: Contact Bounce

05/30/2008 9:30 AM

Do not try this idea Bolton, the surge current from a 100 uF capacitor will weld the contacts at worst and make the contact life appalling at best.

John

__________________
A little knowledge is a dangerous thing - Googling is far worse!
Register to Reply
Power-User
Hobbies - CNC - New Member Hobbies - Musician - New Member

Join Date: Jan 2007
Location: South Africa Johannesburg
Posts: 187
Good Answers: 3
#12

Re: Contact Bounce

05/29/2008 4:40 AM

Other than the already good advice you have being giving, two methods i employ when interfacing PLC's and automotive devices is use of an opto coupler (it has a slow turn on/off time which may suffice) Toshiba TLP627 comes to mind.This also isolates the circuits. Secondly the use of a PIC micro with a programmable bounce and de-bounce time (firmware adjustable) this gives enormous scope and range.

Hope this helps

__________________
Think and move like an electron
Register to Reply
Guru
Hobbies - HAM Radio - CE3AM....4X4SW....CE3NSW

Join Date: Aug 2006
Location: Santiago Chile.
Posts: 845
Good Answers: 7
#13

Re: Contact Bounce

05/29/2008 9:19 AM

Is this a homemade PLC?, I didn't think so...

I can't believe that any serious PLC manufacturer will build a defective unit. bouncing will occur as a result from bad design (hard to believe,) or some sort of a problem at this specific PLC. I assume that there are several relays, Do they all bounce?, That would be a power problem. only one does the trick? that will point to a problem at this individual relay or it's circuit. If I were you I would:

  1. Try to replace the PLC with an exact same unit. see if the problem persists.
  2. Check voltage across the relay coil. It might be low for some reason. or pulsating. Easy to see with a scope.
  3. Replace the relay.
  4. Check the circuit that drives the relay coil.

I have seen some cases where the switched load, if large enough, will with it's in-rush current cause a line voltage drop large enough to cause relays to open for fraction of a second, and run havoc. If this will be the case stabilize the PLC feeding line.

And if all else fails, than choose from one of the many good advises given here...

Wangito.

__________________
Never trade luck for skill.
Register to Reply
Guru
United Kingdom - Member - Olde Member!! Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jul 2006
Location: Dunstable, England
Posts: 2821
Good Answers: 45
#14
In reply to #13

Re: Contact Bounce

05/29/2008 10:19 AM

Wangito, all switch and relay contacts bounce or chatter, its inherent in the design.

Switching a light bulb or whatever isn't a problem but if the contacts are used to switch a logic gate, for example, then the contact bounce is a problem.

Its not a fault of the PLC, relay or anything, its the mechanical design of the contacts.

__________________
A little knowledge is a dangerous thing - Googling is far worse!
Register to Reply
Power-User
United Kingdom - Member - Member

Join Date: Mar 2007
Location: Blackburn, Lancashire
Posts: 269
Good Answers: 9
#15
In reply to #13

Re: Contact Bounce

05/29/2008 10:49 AM

Wangito,

If I was going to replace the PLC unit may as well by a transistor output module.

Alan

__________________
If you remain calm while all those around you are losing their heads, then you haven't realised the seriousness of the situation
Register to Reply
Guru
Technical Fields - Architecture - New Member Popular Science - Weaponology - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Electromechanical Engineering - New Member Hobbies - Fishing - New Member Hobbies - Target Shooting - New Member Hobbies - Hunting - New Member

Join Date: Dec 2005
Location: Clemson, South Carolina
Posts: 1722
Good Answers: 18
#16

Re: Contact Bounce

05/29/2008 10:52 AM

Motorola made a debounce IC years ago, but I don't think it's in production anymore, and I don't remember the number, either. I generally use a NAND, set-reset latch to debounce contacts. Of course, there's practical problems with the application of such a circuit, such as the output is high when active and open-circuited when not active, but these things can be overcome.

Let me know if you need assistance, and I'll draw a couple of diagrams for you.

__________________
We have met the enemy and he is us . . . Walt Kelly
Register to Reply
Guru
United Kingdom - Member - Olde Member!! Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jul 2006
Location: Dunstable, England
Posts: 2821
Good Answers: 45
#17
In reply to #16

Re: Contact Bounce

05/29/2008 11:04 AM

I think that must be the chip I was thinking of Bill... I used it for a keypad input to a computer and it worked superbly...

Haven't been able to find the type number for it though... I did think it was a standard TTL part - must be wrong?

__________________
A little knowledge is a dangerous thing - Googling is far worse!
Register to Reply
Guru
Technical Fields - Architecture - New Member Popular Science - Weaponology - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Electromechanical Engineering - New Member Hobbies - Fishing - New Member Hobbies - Target Shooting - New Member Hobbies - Hunting - New Member

Join Date: Dec 2005
Location: Clemson, South Carolina
Posts: 1722
Good Answers: 18
#18
In reply to #17

Re: Contact Bounce

05/29/2008 11:15 AM

I'm pretty sure it was a CMOS part with a 4000 series number, but it's been well over twenty years since I used them, so I can't swear to it now. If it wasn't for CRS disease, Alzheimer's would drive me crazy!

__________________
We have met the enemy and he is us . . . Walt Kelly
Register to Reply
Power-User
United Kingdom - Member - Member

Join Date: Mar 2007
Location: Blackburn, Lancashire
Posts: 269
Good Answers: 9
#19

Re: Contact Bounce

05/29/2008 11:48 AM

Thanks for everyone's suggestions but this is exactly where we are at

I tried putting C1 in at various valueswhich just caused a permanent connection???

Don't really want to put another power supply in for cmos is there anything else?

Alan

__________________
If you remain calm while all those around you are losing their heads, then you haven't realised the seriousness of the situation
Register to Reply
Guru
United Kingdom - Member - Olde Member!! Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jul 2006
Location: Dunstable, England
Posts: 2821
Good Answers: 45
#20
In reply to #19

Re: Contact Bounce

05/29/2008 12:23 PM

I think the most important issue here is how often the 10mS pulse is arriving - so we can advise on the delay we can get away with...

Also is the CMOS counter a high impedance input,? as that would mean it might be easier to de-bounce a CR time constant at that point...

Why use two relays to drive a low impedance input? most relays need a fair number of milliamperes to make sure the contact plating conducts - if you are switching a milliamp or less contacts should be of the highest quality gold plated and even then I wouldn't recommend it...

John.

__________________
A little knowledge is a dangerous thing - Googling is far worse!
Register to Reply
Power-User
United Kingdom - Member - Member

Join Date: Mar 2007
Location: Blackburn, Lancashire
Posts: 269
Good Answers: 9
#25
In reply to #20

Re: Contact Bounce

05/30/2008 4:42 AM

10mS pulse is as often as a unit is processed - between 60 and 90 seconds apart

The two relays in the diagram are 1 internal in the PLC and one internal to the tact time display(SSR) of which the data sheet can be found here.

One other point I have a feeling that the display is faulty because if for example the pulse is extended to 1S then the counter adds about 500 to the total (have one of our Japanese brethren getting circuit diagrams from the manufacturers to sort that out). What this means is the pulse must be short.

Alan

__________________
If you remain calm while all those around you are losing their heads, then you haven't realised the seriousness of the situation
Register to Reply
Guru
United Kingdom - Member - Olde Member!! Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jul 2006
Location: Dunstable, England
Posts: 2821
Good Answers: 45
#29
In reply to #25

Re: Contact Bounce

05/30/2008 9:28 AM

Ohhhhhhhhhhh Bolton that solid state relay is for ac or dc volts only above a certain value...

I doubt very much whether it can switch a practically zero current voltage...

Hold on I must check that again....

YES! as I thought the minimum on current is 20 mA and the off state leakage current is 1 mA

If you're switching a CMOS input you really need to have a resistor to supply enough current for the Solid state relay to switch... In fact it would be better to use a reed relay instead...

John.

__________________
A little knowledge is a dangerous thing - Googling is far worse!
Register to Reply
Guru
Technical Fields - Architecture - New Member Popular Science - Weaponology - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Electromechanical Engineering - New Member Hobbies - Fishing - New Member Hobbies - Target Shooting - New Member Hobbies - Hunting - New Member

Join Date: Dec 2005
Location: Clemson, South Carolina
Posts: 1722
Good Answers: 18
#21
In reply to #19

Re: Contact Bounce

05/29/2008 1:58 PM

There's usually V+ and Com outputs on most (if not all) PLC's I've ever used. What brand name and model is the PLC?

__________________
We have met the enemy and he is us . . . Walt Kelly
Register to Reply
Power-User
United Kingdom - Member - Member

Join Date: Mar 2007
Location: Blackburn, Lancashire
Posts: 269
Good Answers: 9
#24
In reply to #21

Re: Contact Bounce

05/30/2008 4:29 AM

Allen Bradley SLC500 with 1746 OW16 output modules

__________________
If you remain calm while all those around you are losing their heads, then you haven't realised the seriousness of the situation
Register to Reply
Guru
Technical Fields - Architecture - New Member Popular Science - Weaponology - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Electromechanical Engineering - New Member Hobbies - Fishing - New Member Hobbies - Target Shooting - New Member Hobbies - Hunting - New Member

Join Date: Dec 2005
Location: Clemson, South Carolina
Posts: 1722
Good Answers: 18
#28
In reply to #24

Re: Contact Bounce

05/30/2008 8:46 AM

Bolton,

To start with, I don't know of a module to plug in directly to an Allen Bradley SLC 500, but I have made special modules for a variety of PLC's. You say you have a 24 volt supply. I assume it's a DC supply. Sometimes it takes a little effort, but plug-in module bases are generally available for custom applications from the manufacturer. By the way, I did not find such module bases.

I did find, however, 1746-OB32 and 1746-OV32, source and sink (respectively) output modules which operate from 5 to 50 VDC, found at Allen Bradley and the installation datasheet (stating that they are transistor outputs).

There are ways to debounce circuits, and one of the sites showing such ways is found here (it easier for me to send you there instead of recreating similar drawings and pasting them in this post).

An NPN transistor with a pull-up resistor can be substituted for the amplifier in figure 2. The circuit in figure 3 is one of the NAND gate debounce circuits to which I referred in an earlier post.

Good luck!

__________________
We have met the enemy and he is us . . . Walt Kelly
Register to Reply
Anonymous Poster
#22
In reply to #19

Re: Contact Bounce

05/29/2008 3:59 PM

If you are using an output relay from a plc, you will be able to programme a de-bounce. Assuming there is enough time between the pulses. The problem may be the meter is not quick enough for the pulse train?

Register to Reply Score 2 for Off Topic
Power-User
United Kingdom - Member - Member

Join Date: Mar 2007
Location: Blackburn, Lancashire
Posts: 269
Good Answers: 9
#26
In reply to #22

Re: Contact Bounce

05/30/2008 4:44 AM

No I won't! The contacts will still bounce when they close no matter what is in the program. If it was an external relay bouncing to an input then yes I could

Alan

__________________
If you remain calm while all those around you are losing their heads, then you haven't realised the seriousness of the situation
Register to Reply
Active Contributor

Join Date: Apr 2008
Location: Bangalore,India
Posts: 19
Good Answers: 1
#23

Re: Contact Bounce

05/29/2008 11:51 PM

Please check the 24v output is used twice in the PLC ladder diagram or PLC diagram may be faulty

__________________
Never never never give up
Register to Reply
Power-User
United Kingdom - Member - Member

Join Date: Mar 2007
Location: Blackburn, Lancashire
Posts: 269
Good Answers: 9
#27
In reply to #23

Re: Contact Bounce

05/30/2008 4:47 AM

And having done this and found it to be fine how might it have stopped/caused mechanical contacts bouncing?

The problem is nothing to do with the PLC or the program other than the fact that it is a relay output module and it uses 24vdc which means I can't use a cmos circuit

Alan

__________________
If you remain calm while all those around you are losing their heads, then you haven't realised the seriousness of the situation
Register to Reply
Power-User
United Kingdom - Member - Member

Join Date: Mar 2007
Location: Blackburn, Lancashire
Posts: 269
Good Answers: 9
#31

Re: Contact Bounce

06/02/2008 10:18 AM

Cracked it folks.

Due to another issue which I hadn't mentioned used an Omron H5CX-L8SD timer in one shot mode for 5mS. Transistor output so no bounce

Data Sheet

Thank you all for your contributions

Alan

__________________
If you remain calm while all those around you are losing their heads, then you haven't realised the seriousness of the situation
Register to Reply
Register to Reply 31 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

Anonymous Poster (1); Bill (4); Bolton_Alan (8); caramba (3); Electroman (8); kvsubramanyam (1); logix101 (2); madness (1); Snaketails (1); vijaygr (1); wangito (1)

Previous in Forum: Fun with Matchsticks(Old Post)   Next in Forum: What time is it?

Advertisement