Please help simatic programme

Kelan

Member
Join Date
Dec 2009
Location
Cork
Posts
3
Hello I am currently trying to write a programme in simatic to calculate volume in a elliptical cone is there anyone that could help me with this I know the formula for the volume but I am getting confused with the use of components in the simatic to input this
 
Post a skeleton function with the inputs you require, the output and the formula. I'll fill in the middle bit.
 
Unfortunatley i don't have access to simatic at the moment what I am using is ob1 with fc1 insert inputs are diameter and height of cone in integer and height_counts mw40 with output of fc1 volume md41 the formula is
(pi x d^2 x h)/6 thanks
 
Can you clarify the units for diameter, height and volume.

Here's a function that does the calculation using metres for the units.

Code:
FUNCTION FC 2 : REAL
TITLE =
VERSION : 0.1


VAR_INPUT
  rHeightInMetres : REAL ;    
  rDiameterInMetres : REAL ;    
END_VAR
BEGIN
NETWORK
TITLE =

      L     #rDiameterInMetres; 
      L     #rDiameterInMetres; 
      *R    ; 
      L     #rHeightInMetres; 
      *R    ; 
      L     3.141593e+000; 
      *R    ; 
      L     6.000000e+000; 
      /R    ; 
      T     #RET_VAL; 

END_FUNCTION
 
Last edited:
Meters is perfect thank you very much but how can this function be put into simatic in simatic it has always been ladder that I have used pardon my ignorance
 

Similar Topics

Is it at all possible to view the IP address assigned to a Simatic TI505 PLC without taking it off of the network? I only have Step 7 software.
Replies
5
Views
2,543
I'm new to simatic and I have a serius problem.. I have added one s7-416 station to an existing MPI network. There is one main plc(s7-300).. This...
Replies
10
Views
2,512
please help me . I have to make this ladder diagram and I can’t figure it out :(
Replies
8
Views
47
Hello, I am trying to get a Yokogawa Hart pressure Transmitter and a Rosemount Temp Transmitter to read on a 1769-IF4 module on an L33ERM...
Replies
10
Views
377
Back
Top Bottom