Language Reference
Chapter 5
Algorithm Language Reference
The HP E1415's Algorithm Language is a limited version of the 'C'
programming language. It is designed to provide the necessary control
constructs and algebraic operations to support standard PID as well as
custom control algorithms. There are no loop constructs, multi-dimensional
arrays, or transcendental functions. Further, an algorithm must be
completely contained within a single function subprogram 'ALGn'. The
algorithm can not call another user-written function subprogram.
It is important to note, that while the HP E1415's Algorithm Language has
limited set of intrinsic arithmetic operators, it also provides the capability
call special user defined functions "f(x)". An off-line program included with
your HP E1415 converts the functions you supply into piece-wise linear
interpolated tables and gives them names you choose. The HP E1415 can
extract function values from these tables in under 18µseconds, regardless of
the function's original complexity. This method provides faster algorithm
execution by moving the complex math operations off-board. Appendix F
page 367 "Generating User Defined Functions"
This section assumes that you already program in some language. If you are
already a 'C' language programmer, this reference section, as well as Chapter
4 "Creating and Running Custom Algorithms" is all you'll probably need to
create your algorithm. If you are not familiar with the C programming
language, you should study the "Program Structure and Syntax" section
before you begin to write your custom algorithms.
-- Identifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
-- Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
-- Data Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
-- Data Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
-- Bitfield Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
This section provides a summary of reserved keywords, operators, data
types, constructs, intrinsic functions and statements.
Chapter 5
Algorithm Language Reference
137