Programming S900–II Level 1
Version 2.2 |–>
IV – Programming instructions
51
01T01527_2
25.5.00
IV – 5. Specific codes
IV – 5. 1. SP code as an instruction
For its use, see chapter III – 2. page 23.
Accessible using the
key :
Syntax : SP nn L00 (to 99)
After an SP request (instruction), the operands requested are :
a number from 00 to 99.
A label number, corresponding to a return step indicator and a suffix indicating the order in
which the subroutines are performed. When an SP is called up with a return label L00, you
will return back to the step following the one where the SP was called.
Note : When one subroutine calls another subroutine, only 3 overlapping levels are possible.
IV – 5. 2. PLC code as an instruction
The PLC is a programmable logic controller which can be associated with a main program if necessary.
Its functions are described in the Programming Manual Level 2. See example in chapter V – 1. page
53.
Syntax : PLC 00 (to 98)
Note : The number 00 means that there is no PLC associated with the main program.
IV – 5. 3. SR code as an instruction
For its use, see chapter III – 3. page 26.
Accessible using
then :
Syntax : SR 01 (to 99)
Note : . SR 00 is not valid, it is implicit (executed by default).
. When an SR is executed, it returns to the last Rnn Label with the same number as
itself.
Example : SR 05 returns to the last R05 encountered before its execution.
Commentaires sur ces manuels