Rockwell REAL Exponent Question

Join Date
Aug 2017
Location
Joburg
Posts
23
Hi all

I'm trying to figure out a way to put something to an exponential fraction and having difficulty getting it to work

I'm using an Allen Bradley MICRO850 and the connected components workbench currently.

What I need is to put a variable to the exponent 2.5

ie: X^2.5

The problem is that the in built EXPT function doesn't allow for Real numbers as an input to the exponent.

I also need to find the 2.5 Root, but this can be solved as well if I can figure out how to do a REAL exponential.

I've tried looking up using LOGS as a work around,
but can't figure out how to get the Anti-log

Can anyone give any advice or solutions?
 
This is just a shot from the hip, but since the quotient rule for exponents is:
a^m / a^n = a^(m-n)

couldn't you do it in two operations like this:

x^3 - x^0.5

which is the same as:

x^3 - sqrt(x)

(I'm assuming your controller has a square root function.)
 
This is just a shot from the hip, but since the quotient rule for exponents is:
a^m / a^n = a^(m-n)

couldn't you do it in two operations like this:

x^3 - x^0.5

which is the same as:

x^3 - sqrt(x)

(I'm assuming your controller has a square root function.)

Ah yes!

I think your formula is a little wrong, but your idea is sound, breaking it down into it's SQRT available functions may be key!

As

X^2.5 = X^2.X^0.5
= X^2.SQRT(X)

now to just think on how to work out

2.5√X

I guess thats equal to

X^1/2.5 = X^0.4

Now how to break X^0.4 into Square roots o_O

Thanks for the idea!
 
Hmmm.. it seems I solved my own problem

Apparently the POW function does the exact same job but does accept REAL values..

strange... I wonder why they have both the POW and EXPT functions o_O
 

Similar Topics

Hi all. Me again still learning Rockwell. So I'll be polling an INT data array from a Modbus SE power meter with a L82 (with a Modbus ProSoft in...
Replies
56
Views
1,467
I'm writing some structured text that's handling a data structure that comes from a PC. The PC structure is in the "new" LREAL 64-bit floating...
Replies
3
Views
509
You know I really like all of the features that Rockwell is adding to Logix and FTView. But I am getting really tired of seeing this "Not...
Replies
3
Views
1,704
Copy a REAL to DINT in a Rockwell PLC through a gateway. The codesys convert the DINT to a REAL. Have not worked with moving this data type...
Replies
4
Views
2,144
While looking in the literature library I saw that it looks like Rockwell has released a new micro, the ML1400. Like the ML1100 it has ethernet...
Replies
30
Views
23,478
Back
Top Bottom