EasyManua.ls Logo

Xinje XD5 - Page 87

Xinje XD5
389 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...
86
Operands
Operands
Function
Data Type
Pn
Jump to the target (with pointer No.) P
(P0~P9999)
Pointer's No.
Suitable Soft Components
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:
Others
Pointer
P
I
Main Program
Subroutine
Description

Table of Contents

Related product manuals