Delta Electronics AH500 Manual page 136

Motion control module
Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
01
CALL
Device
X
Y
M
S
E xp la nat io n
5 - 2 1
Operand
P
S
S
K
16#
F
Pulse instruction 16-bit instruction (3 steps) 32-bit instruction
S: Pointer which points to a subroutine
A pointer is in the range of P0~P255.
The subroutine to which a pointer points should be written after M102,
M2 and the instruction SRET.
The pointer used by the instruction CALL can not be the same as the
pointers used by the instructions CJ, CJN, and JMP.
If only the instruction CALL is used, the same subroutine can be called
repeatedly.
Ch ap te r 5 Ap plie d Instruc tions
Calling a subroutine
KnM KnS
D
W
Function
T
C
V
Z

Advertisement

Table of Contents
loading

Table of Contents