Xinje XD Series User Manual page 87

Hide thumbs Also See for XD Series:
Table of Contents

Advertisement

Operands
Operands
Function
Pn
Jump to the target (with pointer No.) P
(P0~P9999)
Suitable Soft Components
Others
Description
X0
CALL
FEND
P10
SRET
END
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:
Pointer
P
I
P10
Data Type
Pointer's No.
86

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xl seriesXd3Xd5

Table of Contents