Conair S900II System Informacje Techniczne Strona 29

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 82
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 28
Programming S900II Level 1
Version 2.2 |>
III Program structure
24
01T01527_2
25.5.00
Example No. 2 : Conditional execution and return to main program step other than the step following
the call step.
Main program
(IN14 = 1)
Step 1
Step 3
Step 5
SP 02
Step 0
Step 9 END
IF IN 14
SP02L34
Step 2
Step 4
L34
Note that this structure allows you to use a same subroutine with different return addresses : the return
address is an integral part of the call instruction. If the return address is other than L00, it always goes
back to a main program step irrespective of the starting point (PRG or SP).
Conditional execution involves use of the IF instruction which is described in the section on
subroutine instructions in chapter IV 2. 4. page 40.
III 2. 2. Subroutine SP00 : jump instruction
Subroutine SP00 is not a standard subroutine. SP00 is a jump instruction.
Some programs require jump instructions to return to, or jump to, a given STEP.
Step 8
Step 9
Step 10
IF IN 24
SP 00 L03
L03
IN24 = 1
SP 01 L 00
SP 01
Step 0
Step 7
END
Step 11
Step 11
is executed if
input IN24 = 0
Note : Label L00 is not valid : SP00 L00 is not allowed.
Przeglądanie stron 28
1 2 ... 24 25 26 27 28 29 30 31 32 33 34 ... 81 82

Komentarze do niniejszej Instrukcji

Brak uwag