EasyManua.ls Logo

Xinje XL Series - Page 88

Xinje XL Series
456 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
87
CALL
X0
FEND
SRET
END
P10
P10
If X0= ON, execute the call instruction and jump to P10. After executing the subroutine,
return the original step via SRET instruction.
Program the tag with FEND instruction (will describe this instruction later)
In the subroutine 9 times call is allowed, so totally there can be 10 nestings.
When calling the subprogram, all the timer, OUT, PLS, PLF of the main program will keep
the status.
All the OUT, PLS, PLF, timer of subprogram will keep the status when subprogram returning.
Do not write pulse, counter or timer inside the subprogram which cannot be completed in one
scan period.
Subprogram executing diagram:
CALL
FEND
SRET
P10
END
P10
X0
Main
Program
Subroutine
Main program
Subprogram
tudonghoatoancau.com

Table of Contents

Related product manuals