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.

New Here? Please read this important info!!!


Thread Tools  Display Modes 
February 8th, 2018, 11:11 AM  #16  
Member
Join Date: Apr 2008
Location: Stockholm
Posts: 191

Quote:
https://www.quora.com/Whyisthegra...straightline https://en.wikipedia.org/wiki/Linear_equation Inversely proportional isn't a first order polynomial (linear equation). How do you express m in y=m*x+c for 200/x? As Bernie said, plot 200/x and you'll see. I got it now, you mix up proportional with a negative m and the term inversely proportional. A proportional equation with a negative m isn't not called inversely proportional. Look it up. Inverse proportionality on wikipedia: https://en.wikipedia.org/wiki/Propor...roportionality Last edited by Dirt; February 8th, 2018 at 11:58 AM. 

February 8th, 2018, 12:06 PM  #17 
Lifetime Supporting Member + Moderator

in the equation y=mx+c
m is the scaling factor. c is the intercept on the y axis. The scaling factor is the slope ( y/x) of the straightline equation, in this case .... (104)/(2050) = 0.2 The c is 14 because that is where that straightline needs to cross the y axis.
__________________
___________________________ ControlLogix & SLC Training ab train ltd. abtrain@tiscali.co.uk www.abtrain.co.uk tel: 07506 73 9999 nil illegitimi carborundem 
February 8th, 2018, 12:08 PM  #18  
Member
Join Date: Apr 2008
Location: Stockholm
Posts: 191

Quote:
Look it up: https://en.wikipedia.org/wiki/Propor...roportionality 

February 8th, 2018, 12:31 PM  #19 
Member

m is 200.
If m were 200, then the slope would be "inverted". But the equation is 200 / x, not 200 * x. As the rate (x) approaches 0 (the line is stopping), the time between widgets approaches infinity, asymptotically. As the rate (x) approaches infinity (really fast line) the time between widgets asymptotically approaches 0. Bernie is right. 
February 8th, 2018, 01:36 PM  #20 
Lifetime Supporting Member + Moderator

The question isn't whether you CAN derive a linear scaling, it's if that's what the OP wanted. For this particular application the answers are correct if the time multiplied by the speed equals a constant. The linear scaling doesn't do this. The inverse formula does.
__________________
Controlling outputs is the PLC's way of getting its inputs to change. www.thePLCguy.com 
February 8th, 2018, 01:38 PM  #21 
Lifetime Supporting Member + Moderator

I suppose the real question to ask is does Jim want "inversely proportional" by your definition.
In other words does he want a "straightline" scaling that is the invert (inverse ?), of the y=kx+c equation (remember, c can be 0), or does he actually want a nonlinear scaling that the inverse proportional equation of y=(k/x)+c gives. All through I have assumed he wanted linear, and it was only when I plotted the y=k/x I realised that it does not produce a straightline scaling, which in my mind is odd because it still has the word "proportional" in its moniker. Perhaps I'm getting as confused as the rest of the web, there does seem to be a lot of descriptions that do not mention that "inversely proportional" is in no way proportional at all. The distinction may be the difference between "inversely proportional" and "inverted proportional"
__________________
___________________________ ControlLogix & SLC Training ab train ltd. abtrain@tiscali.co.uk www.abtrain.co.uk tel: 07506 73 9999 nil illegitimi carborundem 
February 8th, 2018, 01:54 PM  #22 
Member
Join Date: Apr 2008
Location: Stockholm
Posts: 191

If you want, say a conveyor, to run the same distance every time, but speed varies from one run to the next run you need an equation where
y*x=c (c=constant, y=time, x=speed) and c is the distance This is the definition of an inversely proportional equation. A relationship between two variables in which the product is a constant. When one variable increases the other decreases in proportion so that the product is unchanged. (this is where it gets proportional, when you weigh in a third aspect, the distance in this case) Inversely proportional is universally recognized, not just "our definition". Last edited by Dirt; February 8th, 2018 at 02:02 PM. 
February 9th, 2018, 04:28 AM  #23 
Member
Join Date: Sep 2011
Location: Sydney
Posts: 19

Hi guys, I'm the OP.
Thanks for all your inputs and the maths lessons as well (no irony here). Although now I'm not sure what I actually need. Is it the inversely proportional relationship (hyperbola) or a linear function with a negative coefficient? Just to clarify the application. I have a conveyor transferring products from a machine. If the product is faulty (detected by the machine) they need to be rejected (by a pneumatic cylinder) which should happened a fix distance from that machine. The operator can change the speed of the conveyor from those 20 to 50Hz. There is no encoder and any other info about the position of the conveyor. I empirically measured the time 10 and 4 seconds with two extreme speeds. My idea is to use an accumulative timer (triggered by the detection system of the machine) with values based on the speed of the conveyor. Edit: Hmm, thinking about it again.... It should be a linear dependence, shouldn't it? Maybe I messed up and measured the times wrongly... I'm sorry for all the confusion. Last edited by Jim_cz; February 9th, 2018 at 04:36 AM. 
February 9th, 2018, 04:37 AM  #24 
Lifetime Supporting Member + Moderator

So, all these many years, I've been incorrect in thinking that "inversely proportional" is the same as "proportional", but with a negative slope.
I can see now that the y = kx + c equation, which will always produce a straightline, in any "direction", is a polynomial function, and only equivalent to direct proportionality. Thanks for the reeducation guys, I won't be calling a linear negative slope mapping "inversely proportional" any longer.
__________________
___________________________ ControlLogix & SLC Training ab train ltd. abtrain@tiscali.co.uk www.abtrain.co.uk tel: 07506 73 9999 nil illegitimi carborundem 
February 9th, 2018, 04:39 AM  #25  
Lifetime Supporting Member + Moderator

Quote:
At half the speed, the distance traveled would be half also. The "inversely proportional" equation doesn't give you that.... EDIT : One problem you may encounter is if the speed is changed while a faulty product is "inflight" from machine to the reject cylinder.
__________________
___________________________ ControlLogix & SLC Training ab train ltd. abtrain@tiscali.co.uk www.abtrain.co.uk tel: 07506 73 9999 nil illegitimi carborundem Last edited by daba; February 9th, 2018 at 04:47 AM. Reason: added stuff 

February 9th, 2018, 07:08 AM  #26  
Member
Join Date: Apr 2008
Location: Stockholm
Posts: 191

If you have time and speed as variables and need distance kept constant, you need the time to be inversely proportional to the speed.
Please reread my previous post and really think it through. If you're guessing, why not test stuff before answering? Quote:
If speed aproaches zero, what time do we need to get the same distance? We would need to approach infinite time. Can we agree on that? Does it sounds like a linear function? You can easily test which function gives the correct answer. Choose any point but the end points (20 and 50) for both equations an multiply those times you get from the different equations with the corresponding speed. Compare that to 20*10 and 50*4. Last edited by Dirt; February 9th, 2018 at 07:16 AM. 

February 9th, 2018, 07:24 AM  #27 
Member
Join Date: Apr 2008
Location: Stockholm
Posts: 191

If you think I'm cheating with the formulas, you have excel to try it out yourselves. Can we agree on time * speed = distance at least?
Last edited by Dirt; February 9th, 2018 at 07:33 AM. 
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 
Reset Timer Dilemma  dskplc  LIVE PLC Questions And Answers  20  December 2nd, 2014 11:06 AM 
AB SLC500 Beginner Questions  2k1Toaster  LIVE PLC Questions And Answers  37  April 15th, 2014 05:05 PM 
programming a timer for a dosing pump  oyster  LIVE PLC Questions And Answers  6  November 24th, 2006 05:59 AM 
Good programming practice  Rhonda  LIVE PLC Questions And Answers  83  August 17th, 2006 02:52 PM 
Automation Direct DL05 problem  david bron  LIVE PLC Questions And Answers  16  February 2nd, 2004 08:52 PM 