Programming S900–II Level 1
Version 2.2 |–>
III – Program structure
23
01T01527_2
25.5.00
III – PROGRAM STRUCTURE
III – 1. Main program – PRG00 to 99 –
One hundred 1,000–step main programs (N° 0 to N° 99) can be run and stored in memory.
Simultaneous storage only depends on available memory capacity and the size of the routines.
Programs can be “named” (maximum 30 characters) in order to identify them with the product being
handled:
”Cover D120 Mould 96032”
It is possible to change this name and display it during program search procedures. See chapter
II – 2. 7. page 21.
Structure is sequential, i.e. a step is not considered finished, and therefore the subsequent step cannot
be run, until all the instructions it contains have been executed.
III – 2. Subroutines
Subroutines are a series of instructions, structured in a sequential manner.
III – 2. 1. Standard subroutines – SP 01 to SP 40
These are a series of instructions which are grouped together in independant stuctures and run
sequentially.
Like the main programs, they can be “named” (maximum 30 characters) in order to identify them with
their function in the program:
”SP 01 : Grip part in mould”
The address to which they return when the subroutine has been executed (Label L) is declared in the
main program. The subroutine call–up is followed by a Label L number. If you put Label 00, you will
return to the step following the one in which the subroutine was called, once the subroutine has
finished.
A subroutine may call another subroutine, up to a maximum of 3.
Example No. 1
: Non–conditional execution and return to step following the call step.
SP 01 L00
SP 01
Step 1
Step 2
Main program
Step 0
Step 5
SP04L00
Step 6
END
SP 04
Step 0
Step 7 END
Commentaires sur ces manuels