EasyManua.ls Logo

Inovance H3U Series - Program Flow Instructions; Subprogram

Inovance H3U Series
737 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...
70
4
4 Instructions4.2.1 Subprogram
4.2 Program Flow Instructions
Subprogram
CALL Subprogram call
SRET Subprogram return
SSRET Conditional subprogram return
IRET Interrupt return
Interrupt
EI Enable interrupt
DI Disable interrupt
Jump
CJ Conditional jump
LBL Marker instruction
CJEND Conditional jump to the program end
Loop
FOR Start of a loop
NEXT End of a loop
Step sequential control
STL Program jump to the secondary bus
RET Program return to the primary bus
4.2.1 Subprogram
CALL: Subprogram call
Overview
The CALL instruction calls a subprogram.
CALL P000–P511
Subprogram call Applicable model:
H3U
P
Pointer
P
Target pointer number for subprogram call
16-bit instruction
(3 steps)
CALL:
Continuous
execution
CALLP: Pulse
execution
Function
When the ow is active, the program calls the subprogram designated by P***. After the subprogram is
executed, the program returns to the next instruction of the CALL (or CALLP) statement to execute the
subsequent statement.
The requirements for the P*** address pointer are as follows:
The subprogram starting from P*** must be located after the end of the main program (which is ended by the
FEND instruction).

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals