Peter, Here's a subroutine that handles positive, integer exponents. This compiled and worked as an IND seq block, so you can test it out. Regards, David INDEPENDENT_SEQUENCE{******************************* ** ** ** INDEPENDENT SEQUENCE ** ** CONTROL BLOCK ** ** ** *****************************************} CONSTANTS VARIABLES USER_LABELS SUBROUTINE POW ( IN NUMBER : R IN EXPONENT : R INOUT ANSWER : R) STATEMENTS ANSWER := 1; WHILE (EXPONENT > 0) DO ANSWER := ANSWER * NUMBER; EXPONENT := EXPONENT - 1; ENDWHILE; ENDSUBROUTINE STATEMENTS{***************************************** * Specify the statements here * *****************************************} CALL POW (RI0001, RI0002, RO0001); ENDSEQUENCE -----Original Message----- From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On Behalf Of Bruley, Peter T Sent: Tuesday, April 27, 2010 4:31 PM To: 'Foxboro DCS Mail List' ('Foxboro DCS Mail List') Cc: Radtke, Richard W Subject: [foxboro] HLBL "to the power" expression Hi List Does anyone know how to do a power function x^y in HLBL? Similar to the pow(x,y) call under C or CALCA block EXP x y Thank you, Peter Bruley Xcel Energy | Responsible By Nature Plant Process Computer Analyst Sherburne County Generating Plant ________________________________________________ <blocked::blocked::http://www.xcelenergy.com/>XCELENERGY.COM<http://www.xcelenergy.com/> Please consider the environment before printing this email _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave Confidentiality Notice: The information contained in this message is private and confidential. This information is intended only for the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any use, review, dissemination, distribution, copying or action taken based on this message or its attachments, if any, is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and delete or destroy all copies of this message and any attachments. Thank you. _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave