EasyManua.ls Logo

Xinje XD Series - 4-3-2 Call subroutine [CALL] and Subroutine return

Xinje XD 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...
86
CJ P6
X0
( )
Y0
X1
( )
T246
R
X2
TMR T246 K1000 K10
X3
MOV K3 D0
X4
P6
CJ P7
X0
( )
Y0
X5
P7
( )
T246
R
X6
4-3-2 Call subroutine [CALL] and Subroutine return [SRET]
1)Summary
Call the programs which need to be executed together, decrease the program's steps;
Subroutine Call [CALL]
16 bits
CALL
32 bits
-
Execution condition
Normally
ON/OFF,
Rising/Falling
edge
Suitable Models
XD, XL
Hardware requirement
-
Software requirement
-
Subroutine Return [SRET]
16 bits
SRET
32 bits
-
Execution condition
-
Suitable Models
XD, XL
Hardware requirement
-
Software requirement
-
2)Operands
Operands
Function
Data Type
Pn
Jump to the target (with pointer No.) P
(P0~P9999)
Pointer's No.
3) Suitable Soft Components
Others
Pointer
P
I
In the left graph, Y0 becomes to be
dual coil output, but when X0=OFF, X1
activates; when X0=ON, X5 activates
CJ can’t jump from one STL to another
STL;
After driving timer T0~T575,
HT0~HT795 and HSC0~HSC30, if
executes CJ, continue working, the
output activates.
The Tag must be match when using CJ
instruction.
Description
tudonghoatoancau.com

Table of Contents

Other manuals for Xinje XD Series