Icon

USC701 Program Branching

The USC701 can run different program instructions based on the value in the stack, the state of the relays, the state of the pulse inputs and keys on the AM702 (hotkeys).

The program example shown (UAP1096) uses branching to select either table 3 or table 4 based on the value read into the stack from P2 (to use a table HLP1085...).

The program listing of UAP1096 is shown in the diagram.

Input P2 has been programmed to measure phase and will return a number between -180° and +180°. The read P2 command will put a floating point number on the stack.

  • When the value on the stack is greater than zero the program will branch to the 'Forward' label.
  • When the value on the stack is NOT greater than 0 the program will continue to the next line, 'Goto Reverse'. As this is an unconditional statement the line following (Exit) is never be executed and has only been added for clarity.