ATAN2 function possible in RSLogix 5000?

Join Date
Jun 2008
Location
Martinez, CA
Posts
15
I am trying to peform a level calculation on a horizontal vessel with a single radiused end cap on one end, and a flat partition on the other.

I found a calculation to do that, but it uses the ATAN2 function, which returns the arctangent of a set of x,y coordinates in radians. Is there some way to do this with other functions that rslogix accepts? The x coordinate is a variable while the y coordinate stays at 1.
 
You can always develop the function into a serie:


ATAN(X)=X - X^3/3 + X^5/5 - X^7/7 ...
Which fits in a CPT instruction
 

Similar Topics

Hi, I have attached herewith one image which our programmer has been used in S7 1500 PLC. Now we need to use the same instructions in S7 1200 PLC...
Replies
4
Views
140
Im trying to create a level indicator for water Tank i have used the ADD function while the pump is on and level increasing everything works...
Replies
33
Views
1,130
Good morning crew! Ok my logic works but I am missing something. When the start button is pushed it should like the red light for 4sec then shut...
Replies
13
Views
457
Please see attached file. I need this program in Function Block form but I am totally lost on this. Any help would be appreciated. Thanks!
Replies
8
Views
312
The idea here is to provide for a brief rapid influx of message codes while preventing sequentially repeating the same message. i.e. if two...
Replies
23
Views
719
Back
Top Bottom