Delta DVP-ES2 User Manual Page 163

  • Download
  • Add to my manuals
  • Print
  • Page
    / 702
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 162
3. Instruction Set
3-47
API Mnemonic Function
02
SRET Subroutine Return
Controllers
ES2/EX2 SS2
SA2
SE
SX2
OP Descriptions Program Steps
N/A
No contact to drive the instruction is required
Automatically returns program execution to the address
after CALL instruction in O100.
SRET: 1 step
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
Explanations:
SRET indicates the end of subroutine program. The subroutine will return to main program and
begin execution with the instruction after the CALL instruction.
Program example 1:
When X0 = ON, the CALL instruction will jump to P2 and run the subroutine. With the execution of
the SRET instruction, it will jump back to address 24 and continue the execution.
20
24
P2
Subroutine
Subroutine return
Call subroutine P2
CALL P2
X0
X1
SRET
FEND
Y0
M1
Y1
M2
Y2
Page view 162
1 2 ... 158 159 160 161 162 163 164 165 166 167 168 ... 701 702

Comments to this Manuals

No comments