![]() |
||
|
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
| ||
New Here? Please read this important info!!!
|
|||||||
![]() |
If you're really looking to learn about PLCs, you NEED our book... "Your Personal PLC Tutor - A Guide to Understanding PLCs" Easy to read and uses 'plain' language!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
|
I have a process that counts parts that come off of a welder. Right now, we have a SQ.D limit that signals when a part passes the limit wire. My problem is, when the limit bounces, it counts that as a part. What are some avenues I can take while still using the limit. I know I can go with a sensor, but I have "some" programming experience. My thought is a OSR instruction, but I've simmed it out and it doesn't seem to be working. Any tips?
BJ |
|
|
|
#2 |
|
Member
|
You need to "debounce" the sensor by means of a timer.
[XIC]sensor------(TON)-- [XIC] TON.DN-----(Increment part count)-- |
|
|
|
#3 | |
|
Member
|
Quote:
|
|
|
|
|
#4 |
|
Member
|
Sample...
Try this...
__________________
"If there is a problem, there is a solution. If there is no solution, then there is no problem." - unknown ![]() Daniel Camacho |
|
|
|
#5 |
|
Member
|
Daniel, your example will upcount on the first scan.
I recommed this approach. Its simpler and it functions with the on transition, as opposed the off transition, of the switch. Regards.
|
|
|
|
#6 |
|
Guest
Posts: n/a
|
or you could use a photobeam proximy switch, problem solved
|
|
|
|
#7 | |
|
Member
|
![]() Quote:
__________________
"If there is a problem, there is a solution. If there is no solution, then there is no problem." - unknown ![]() Daniel Camacho |
|
|
|
|
#8 |
|
Member
|
What input module do you have. Some have build-in filtering to handle this effect.( Debounce filter)
__________________
Mickey If you want happiness for an hour-take a nap. If you want happiness for a day-go fishing. If you want happiness for a month-getmarried. If you want happiness for a year-inherit a fortune. If you want happiness for a lifetime-help someone else. ----- Chinese Proverb |
|
|
|
#9 |
|
Member
![]() Join Date: Jul 2005
Location: Buenos Aires
Posts: 1
|
Entrelec Schiele Ps 200
Some Body Know This Plc?? What You Say Me About?
|
|
|
|
#10 |
|
Member
|
I have a plc 5/40 with a 1771IAD input card
|
|
|
|
#11 |
|
Member
|
__________________
Mickey If you want happiness for an hour-take a nap. If you want happiness for a day-go fishing. If you want happiness for a month-getmarried. If you want happiness for a year-inherit a fortune. If you want happiness for a lifetime-help someone else. ----- Chinese Proverb |
|
|
|
#12 |
|
Member
|
Alaric,
Do you this your logic will work with delay time? Can u please tell me how it counts after a delay? regards |
|
|
|
#13 |
|
Member
|
Sorry..
typo do you think (instead of do you this) thanks |
|
|
|
#14 |
|
Member
![]() Join Date: Aug 2002
Location: Eastman, Wisconsin
Posts: 706
|
I know the question was to try to solve the problem with programming, but it really seems to me that any switch that goes made and rattles into an on state after the part passes either is worn out, or needs tension adjusted, etc. I've seen millions of limit switches, as most of you have, and I wouldn't consider using a single one that when the actuator is releases, bounces around enough to change states. I suggest you look at the switch, I would think it's either worn out, or needs adjustment.
Russ |
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Topics
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PLC 5 Historgram problem | bobwithdana | LIVE PLC Questions And Answers | 2 | June 24th, 2004 03:08 PM |
| PLC 5 problem | gbarenbaum | LIVE PLC Questions And Answers | 7 | January 7th, 2004 09:32 PM |
| a problem of the mitubishi plc for the beginner | zhigangzhou | LIVE PLC Questions And Answers | 3 | August 20th, 2003 01:41 AM |
| Real World Problem | Vietnam Bob | LIVE PLC Questions And Answers | 8 | November 23rd, 2002 02:03 PM |
| PLC + Motor Problem | Ken | LIVE PLC Questions And Answers | 4 | July 30th, 2002 09:17 PM |