Explanation For The Application Commands - Delta C2000 series User Manual

Classical field oriented control ac motor drive
Hide thumbs Also See for C2000 series:
Table of Contents

Advertisement

16.6.4 Explanation for the Application Commands

API
CALL
01
P
Bit Devices
X
Y
M
K
Operands:
S: Operand S can designate P.
Operand S of C2000 series can designate P0~P63.
1. S: The pointer of call subroutine.
Explanation
2. Edit the subroutine designated by the pointer after FEND instruction.
3. If only CALL instruction is in use, it can call subroutines of the same pointer
number with no limit of times.
4. Subroutine can be nested for 5 levels including the initial CALL instruction. (If
entering the sixth level, the subroutine won't be executed.)
API
FEND
06
Bit Devices
X
Y
M
K
Operands:
No operand
No contact to drive the instruction is required.
1.
This instruction denotes the end of the main program. It has the same function
Explanation
as that of END instruction when being executed by PLC.
2.
CALL must be written after FEND instruction and add SRET instruction in the
end of its subroutine. Interruption program has to be written after FEND
instruction and IRET must be added in the end of the service program.
3.
If several FEND instructions are in use, place the subroutine and interruption
service programs between the final FEND and END instruction.
4.
After CALL instruction is executed, executing FEND before SRET will result in
errors in the program.
S
Word Devices
H KnX KnY KnM T
Word Devices
H KnX KnY KnM T
16-51
Chapter 16 PLC Function C2000 Series
Call Subroutine
16-bit command (3 STEPS)
CALL
C
D
32-bit command
Flag signal: None
The end of the main program (First End)
16-bit command (1 STEP)
FEND
C
D
32-bit command
Flag signal: None
CALLP

Advertisement

Table of Contents
loading

Table of Contents