Automation Direct function

Brian C

Member
Join Date
Jun 2011
Location
Vancouver
Posts
12
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.
 
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.
 
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 .....
 
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 :.(
 
(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)
 
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.
 
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 :-(
 
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.
 
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. :-(
 
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:
Repetitive use of the square root will allow to to compute the following terms which you can select to the accuracy you require.

xxx.JPG
 

Similar Topics

Hello, I have an automation direct d2 262 plc and C-more HMI EA9T6CL-R. I need to prepare a program, scheduled to be performed on a future date. I...
Replies
1
Views
119
Hello all- I have a unique challenge using a customers Direct logic 06 PLC. This customer has a DC motor operating at 10 RPM which is turning a...
Replies
1
Views
136
Hi, I have been trying to run drive via Sysmac studio. I can ping the drive. I can see the logic bits going on/off as per command. But, drive is...
Replies
21
Views
565
Anyone tried Automation Directs new CM5 HMI. We've been the EA9's for a few years now with minimal complaints. A few failures here and there but...
Replies
17
Views
1,588
I'm using an Automation Direct GS20 VFD for the first time and I have a question for the Automation Direct gurus regarding the recommendation of a...
Replies
2
Views
1,100
Back
Top Bottom