Reference Guide
1-54 RPL Programming
1.25 !æ
Example:
The following program, EIZ, constructs a custom menu to emulate the HP Solve application for a
capacitive electrical circuit. The program uses the equation E = IZ, where E is the voltage, I is the current, and Z is
the impedance.
Because the voltage, current, and impedance are complex numbers, you can’t use the HP Solve application to find
solutions. The custom menu in EIZ assigns a direct solution to the left-shifted menu key for each variable, and
assigns store and recall functions to the unshifted and right-shifted keys — the actions are analogous to the HP Solve
application. The custom menu is automatically stored in CST, replacing the previous custom menu — you can press
!£ to restore the menu.
Program: Comments:
«
DEG -15 SF -16 SF
2 FIX
Sets Degrees mode. Sets flags –15 and –16 to
display complex numbers in polar form. Sets
the display mode to 2 Fix.
{
Starts the custom menu list.
{ "E" { « 'E' STO »
« I Z * DUP 'E' STO
"E: " SWAP + CLLCD
1 DISP 3 FREEZE »
« E » } }
Builds menu key 1 for E.
Unshifted action: stores the object in E. Left-
shift action: calculates I × Z, stores it in E, and
displays it with a label. Right-shift action: recalls
the object in E.
{ "I" { « 'I' STO »
« E Z / DUP 'I' STO
"I:"SWAP + CLLCD
1 DISP 3 FREEZE »
« I » } }
Builds menu key 2.
{ "Z"{ « 'Z' STO »
« E I / DUP 'Z' STO
"Z:" SWAP + CLLCD
1 DISP 3 FREEZE »
« Z » } }
Builds menu key 3.
}
Ends the list.
MENU
Displays the custom menu.
»
`O
EIZ ‰
Stores the program in EIZ.
For a 10-volt power supply at phase angle 0°, you measure a current of 0.37-amp at phase angle 68°. Find the
impedance of the circuit using EIZ.
@·J%EIZ%
Key in the voltage value.
!Ü
10 ~@6 0