Industry Online Support
Technical Forum
11/28/2013 6:11 AM  
Posts: 15 Rating: (1) 
Dear All, I want to make logic for complex calculation in PCS7 in which following formula need to be implimented. y={x^(0.187) + (x*100) + 2.7) how should i impliment 0.187 power of x ??? 
Last edited by: HITUL007 at: 11/28/2013 7:51 AMANY BLOCK AVAILABLE... 

11/28/2013 8:11 AM  
Posts: 29 Rating: (0) 
I think you have to implement it as SCL code. There, I think the operation X**EXPONENT makes the operation X^EXPONENT : FUNCTION_BLOCK FBXXX VAR_INPUT X:REAL; EXPONENT:REAL; END_VAR VAR_OUTPUT Y:REAL; END_VAR BEGIN Y:=X**EXPONENT; END_FUNCTION_BLOCK Of course after that you can use the function block in your CFC's as any other block. If you only need to do this operation, you can generate the code for the hole operation Hope helps! 
Last edited by: manute at: 11/28/2013 8:13 AM 

11/29/2013 6:28 AM  
Posts: 15 Rating: (1) 
Dear Sir, 
This contribution was helpful to2 thankful Users 
Follow us on