Delta CT2000 Series User Manual page 493

Table of Contents

Advertisement

Chapter 16 PLC Function CT2000 Series
16-6-4 Detailed explanation of applications commands
API
CALL
01
Bit device
X
Y
M
Notes on operand usage:
The S operand can designate P
CT2000 series device: The S operand can designate P0-P63
API
SRET
02
Bit device
X
Y
M
Notes on operand usage:
No operand
A contact-driven command is not needed
S
P
Word device
K
H
KnX KnY KnM
S:Call subprogram pointer.
Write the subprogram after the FEND command.
The subprogram must end after the SRET command.
Refer to the FEND command explanation and sample content for detailed
command functions.
P
Word device
K
H
KnX KnY KnM
A contact-driven command is not needed. Automatically returns next
command after CALL command
Indicates end of subprogram. After end of subprogram, SRET returns to main
program, and executes next command after the original call subprogram CALL
command.
Refer to the FEND command explanation and sample content for detailed
command functions.
Call subprogram
16-bit command (3 STEP)
CALL
T
C
D
execution type
32-bit command
Flag signal: none
Conclusion of subprogram
16-bit command (1 STEP)
T
C
D
FEND
execution type
32-bit command
Flag signal: none
16-52
Continuous
CALLP
execution type
Continuous
Pulse

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents