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

Get the book!

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!
Get $$FREE$$ priority mail shipping too!!!
You WILL be glad you did!!

Click Here now to order

Reply
 
Thread Tools Display Modes
Old July 20th, 2005, 03:04 PM   #1
Dexstar
Member
United States

Dexstar is offline
 
Dexstar's Avatar
 
Join Date: Jul 2005
Location: Elkhart, Indiana
Posts: 4
Question PLC 5 Problem....need help or guidance

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
  Reply With Quote
Old July 20th, 2005, 03:13 PM   #2
Hydro Power Guy
Member
United States

Hydro Power Guy is offline
 
Hydro Power Guy's Avatar
 
Join Date: Jun 2005
Location: York, Pennsylvania
Posts: 130
You need to "debounce" the sensor by means of a timer.

[XIC]sensor------(TON)--

[XIC] TON.DN-----(Increment part count)--
  Reply With Quote
Old July 20th, 2005, 03:19 PM   #3
hd_coop
Member
United States

hd_coop is offline
 
hd_coop's Avatar
 
Join Date: Jul 2002
Location: Belgium, WI
Posts: 246
Quote:
Originally Posted by Dexstar
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
You could program some sort of debounce. Either use your limit switch to start a short timer and use that timer's done bit. Or use a timer that starts when the limit switch turns off and have a debounce that says the switch must be off for xx amount of time before counting the signal again. hope that made sense, if not let me know
  Reply With Quote
Old July 20th, 2005, 03:51 PM   #4
DanielCamacho
Member
Mexico

DanielCamacho is offline
 
DanielCamacho's Avatar
 
Join Date: Mar 2005
Location: Monterrey
Posts: 206
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
  Reply With Quote
Old July 20th, 2005, 06:13 PM   #5
Alaric
Member
United States

Alaric is offline
 
Alaric's Avatar
 
Join Date: Apr 2005
Posts: 3,979
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.
  Reply With Quote
Old July 20th, 2005, 06:23 PM   #6
Unregistered
Guest
 
Posts: n/a
or you could use a photobeam proximy switch, problem solved
  Reply With Quote
Old July 20th, 2005, 07:44 PM   #7
DanielCamacho
Member
Mexico

DanielCamacho is offline
 
DanielCamacho's Avatar
 
Join Date: Mar 2005
Location: Monterrey
Posts: 206
Red face I stand corrected....


Quote:
Originally Posted by Unregistered
or you could use a photobeam proximy switch, problem solved
BTW... this solution costs $$$$ programming is only a few minutes of time...
__________________
"If there is a problem, there is a solution. If there is no solution, then there is no problem." - unknown


Daniel Camacho
  Reply With Quote
Old July 20th, 2005, 07:52 PM   #8
Mickey
Member
United States

Mickey is online now
 
Mickey's Avatar
 
Join Date: May 2003
Location: Palmdale,Ca
Posts: 4,759
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
  Reply With Quote
Old July 20th, 2005, 08:14 PM   #9
Rupic
Member
Argentina

Rupic is offline
 
Join Date: Jul 2005
Location: Buenos Aires
Posts: 1
Entrelec Schiele Ps 200

Some Body Know This Plc?? What You Say Me About?
  Reply With Quote
Old July 22nd, 2005, 10:23 AM   #10
Dexstar
Member
United States

Dexstar is offline
 
Dexstar's Avatar
 
Join Date: Jul 2005
Location: Elkhart, Indiana
Posts: 4
I have a plc 5/40 with a 1771IAD input card
  Reply With Quote
Old July 22nd, 2005, 02:00 PM   #11
Mickey
Member
United States

Mickey is online now
 
Mickey's Avatar
 
Join Date: May 2003
Location: Palmdale,Ca
Posts: 4,759
look here
http://literature.rockwellautomation...%20-%20English

or
Attached Files
File Type: pdf 1771-in023_-en-p.pdf (171.3 KB, 7 views)
File Type: pdf 1771-td073_-en-p.pdf (85.6 KB, 1 views)
__________________
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
  Reply With Quote
Old August 9th, 2005, 04:46 PM   #12
bioplc
Member
United States

bioplc is offline
 
bioplc's Avatar
 
Join Date: Jul 2005
Location: tampa
Posts: 97
Alaric,

Do you this your logic will work with delay time? Can u please tell me how it counts after a delay?

regards
  Reply With Quote
Old August 9th, 2005, 04:47 PM   #13
bioplc
Member
United States

bioplc is offline
 
bioplc's Avatar
 
Join Date: Jul 2005
Location: tampa
Posts: 97
Sorry..

typo

do you think (instead of do you this)

thanks
  Reply With Quote
Old August 10th, 2005, 03:56 AM   #14
russrmartin
Member
United States

russrmartin is offline
 
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
  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
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


All times are GMT -5. The time now is 12:01 AM.


.