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 March 5th, 2012, 02:51 PM   #1
Brian C
Member
Canada

Brian C is offline
 
Join Date: Jun 2011
Location: Vancouver
Posts: 11
Automation Direct function

I am using Koyo DL06 PLC
Automation direct 5.3
try to calculate 2 ^ 1.55 ( 2 to the power of 1.55 )
I use this in the flow rate calculation, however, AD do not have the power function, all they have is square root function.
Folks, any work around or tricks. Thanks.
  Reply With Quote
Old March 5th, 2012, 04:09 PM   #2
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 4,599
2^1.55 = 2.9281713918912508413872626586825

It would be a constant, why calculate it?
__________________
Controlling outputs is the PLC's way of getting its inputs to change.

www.thePLCguy.com
  Reply With Quote
Old March 5th, 2012, 04:11 PM   #3
ajsimione
Member
United States

ajsimione is offline
 
ajsimione's Avatar
 
Join Date: May 2005
Location: Minneapolis, MN
Posts: 8
A quick web search of how to solve decimal exponents should point you in the correct direction for simplification of this problem.
A hint to get you started is to think of this as two exponents to solve, i.e. 2^1 x 2^0.55. When solving the decimal portion you'll need to convert it to a fraction in lowest terms and use the laws of exponents to finish it off. Don't want to do it all for you. ;-)

I see Bernie is faster with a better solution.
__________________
Andrew Simione
Design/Manufacturing Engineer
Ron-Vik, Inc.
  Reply With Quote
Old March 5th, 2012, 04:22 PM   #4
Brian C
Member
Canada

Brian C is offline
 
Join Date: Jun 2011
Location: Vancouver
Posts: 11
Sorry about the confusion, 2 is just an example. It is actually a variable. I am actually have problem with the 2^0.55 portion. 0.5 is fine, I can use the square root function, but 0.55 .....
  Reply With Quote
Old March 5th, 2012, 04:24 PM   #5
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 4,599
So you mean x^1.55 - then you'll need to follow ajsimione's advice.
__________________
Controlling outputs is the PLC's way of getting its inputs to change.

www.thePLCguy.com
  Reply With Quote
Old March 5th, 2012, 04:45 PM   #6
Brian C
Member
Canada

Brian C is offline
 
Join Date: Jun 2011
Location: Vancouver
Posts: 11
Thanks for the hints, but I am still stuck.
X ^ 0.55 = X ^ 11/20 = ( 20√ X) ^ 11
So sad, DL06 does not have 20√ function and the power function :.(
  Reply With Quote
Old March 5th, 2012, 05:55 PM   #7
Lancie1
Lifetime Supporting Member + Moderator
United States

Lancie1 is offline
 
Lancie1's Avatar
 
Join Date: Jul 2003
Location: Alabama
Posts: 7,235
(20√ x) ^ 11 =
(20 * √ x) * (20 * √ x) * (20 * √ x) * (20 * √ x) *
(20 * √ x) * (20 * √ x) * (20 * √ x) * (20 * √ x) *
(20 * √ x) * (20 * √ x) * (20 * √ x)
  Reply With Quote
Old March 5th, 2012, 06:13 PM   #8
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 4,599
lancie - your rewriting of (20√ x) as (20 * √ x) makes it look like your are changing the '20th root of x' into '20 times the square root of x'. That makes it confusing. Computing the 20th root of x would still be difficult.
__________________
Controlling outputs is the PLC's way of getting its inputs to change.

www.thePLCguy.com
  Reply With Quote
Old March 5th, 2012, 06:16 PM   #9
Brian C
Member
Canada

Brian C is offline
 
Join Date: Jun 2011
Location: Vancouver
Posts: 11
Thanks Lancie, yes I can multiple 11 times instead, but Bernie is correct. I cannot solve the 20th root of X. No such function in DL06 :-(
  Reply With Quote
Old March 5th, 2012, 06:22 PM   #10
L D[AR2,P#0.0]
Supporting Member
United Kingdom

L D[AR2,P#0.0] is offline
 
Join Date: Nov 2006
Location: UK
Posts: 4,540
What is your min/max range for x ?
Is a look up table a possibility ?
  Reply With Quote
Old March 5th, 2012, 06:30 PM   #11
Lancie1
Lifetime Supporting Member + Moderator
United States

Lancie1 is offline
 
Lancie1's Avatar
 
Join Date: Jul 2003
Location: Alabama
Posts: 7,235
My old 5th grade math teacher taught me that (20√x) = 20 times √x.

Now the 20th root of X = X^1/20 = x^0.05

I suppose it was just sloppy symbol writing.
  Reply With Quote
Old March 5th, 2012, 06:49 PM   #12
Brian C
Member
Canada

Brian C is offline
 
Join Date: Jun 2011
Location: Vancouver
Posts: 11
Thanks for the attempt, but I am still stuck on x^0.05.
Actually I am using the flow measurement well method for calculating the flow rate, look up table is not an option.
For DL06, they only have add, subtract, multiple, divide, sin, cos, tan and sqrt function. :-(
  Reply With Quote
Old March 5th, 2012, 07:08 PM   #13
Lancie1
Lifetime Supporting Member + Moderator
United States

Lancie1 is offline
 
Lancie1's Avatar
 
Join Date: Jul 2003
Location: Alabama
Posts: 7,235
Brian,

If you are really desperate, you possibly could convert your values to binary values, then use binary shifts (which the DL-06 does have) to perform the power terms. Please don't ask me to convert them for you - I have CRS and am just not able to concentrate enough to do that anymore!

Possible instructions that could be used for binary power operations:

ROTL
ROTR
SHFL
SHFR
INV

Last edited by Lancie1; March 5th, 2012 at 07:18 PM.
  Reply With Quote
Old March 6th, 2012, 12:36 AM   #14
Brian C
Member
Canada

Brian C is offline
 
Join Date: Jun 2011
Location: Vancouver
Posts: 11
Thanks Lancie, I will try it. Appreciate for your help! :-)
  Reply With Quote
Old March 6th, 2012, 04:18 AM   #15
L D[AR2,P#0.0]
Supporting Member
United Kingdom

L D[AR2,P#0.0] is offline
 
Join Date: Nov 2006
Location: UK
Posts: 4,540
Repetitive use of the square root will allow to to compute the following terms which you can select to the accuracy you require.
Attached Images
File Type: jpg xxx.JPG (26.8 KB, 68 views)
  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
Legal Drama involving Automation Direct and AVG Automation danw LIVE PLC Questions And Answers 17 February 7th, 2011 12:23 PM
Top 10 Reasons Why I Hate Programming Automation Direct Controllers agarb LIVE PLC Questions And Answers 22 December 3rd, 2009 08:34 PM
Automation Direct & GE Fanuc VersaMax Micro: 24VAC On 24VDC Inputs? kittydog42 LIVE PLC Questions And Answers 7 May 1st, 2009 05:31 PM
Automation Direct Modbus TCP JACMAN LIVE PLC Questions And Answers 6 April 17th, 2009 10:36 AM
temp control on automation direct stu LIVE PLC Questions And Answers 1 August 19th, 2008 12:32 PM


All times are GMT -5. The time now is 03:00 AM.


.