6 Application Instructions API 00-49
DVP-PLC Application Manual
6-5
API Mnemonic
Operands
Function
01
CALL
P
Call Subroutine
Controllers
ES/EX/SS SA/SX/SC EH/SV
OP Range
Program
Steps
P0 ~ P255
CALL, CALLP: 3 steps
PULSE 16-bit 32-bit
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Operands:
S
: The pointer of call subroutine.
Explanations:
1.
Operand S can designate P.
2.
P can be modified by index register E, F.
3.
In ES/EX/SS series models: Operand S can designate P0 ~ P63.
4.
In SA/SX/SC/EH/EH2/SV series models: Operand S can designate P0 ~ P255.
5.
Edit the subroutine designated by the pointer after FEND instruction.
6.
The number of pointer P, when used by CALL, cannot be the same as the number designated by CJ instruction.
7.
If only CALL instruction is in use, it can call subroutines of the same pointer number with no limit on times.
8.
Subroutine can be nested for 5 levels including the initial CALL instruction. (If entering the sixth level, the
subroutine won’t be executed.)
API Mnemonic
Function
02
SRET Subroutine
Return
Controllers
ES/EX/SS SA/SX/SC EH/SV
OP Descriptions
Program
Steps
N/A
Automatically returns to the step immediately following the
CALL instruction which activated the subroutine
SRET: 1 steps
PULSE 16-bit 32-bit
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Explanations:
1.
No operand. No contact to drive the instruction is required.
2.
The subroutine will return to main program by SRET after the termination of subroutine and execute the
sequence program located at the next step to the CALL instruction.
Program Example 1:
When X0 = On, CALL instruction is executed and the program jumps to the subroutine designated by P2. When
SRET instruction is executed, the program returns to address 24 and continues its execution.
Содержание DVP-PLC
Страница 1: ...PLC PLC...
Страница 28: ...1 Basic Principles of PLC Ladder Diagram DVP PLC Application Manual 1 24 MEMO...
Страница 192: ...4 Step Ladder Instructions DVP PLC Application Manual 4 22 MEMO...
Страница 250: ...6 Application Instructions API 00 49 DVP PLC Application Manual 6 38 X0 DIV D0 D10 D20 D0 D10 K4Y0 DIV...
Страница 270: ...6 Application Instructions API 00 49 DVP PLC Application Manual 6 58 RST M0 X0 RST T0 RST Y0 FMOV K0 D10 K5...
Страница 337: ...7 Application Instructions API 50 99 DVP PLC APPLICATION MANUAL 7 53 X10 STMR T10 K50 Y0 Y3 X10 Y1 Y2 5 sec 5 sec...
Страница 458: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 56 or relay itself See 2 3 for more information...
Страница 472: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 70 MEMO...
Страница 574: ...9 Application Instructions API 150 199 DVP PLC Application Manual 9 102 MEMO...