A H 5 0 0 M o t i o n C o n t r o l M o d u l e M a n u a l
API Instruction
code
Operand
Function
02
SRET
─
Indicating that a subroutine ends
Pulse instruction 16-bit instruction (1 step) 32-bit instruction
─
─
E xp la nat io n
The instruction SRET indicates that a soubroutine ends. After the
execution of a subroutine in a program is complete, the instruction
following CALL which calls the subroutine in the main program O100 will
be executed.
E xamp le 1
When X0.0 is ON, the instruction CALL is executed, and the execution of
the program jumps to the subroutine to which P2 points. When the
instruction SRET is executed, the execution of the program returns to
address 24.
X0.0
X0.1
C ALL
P2
Y0 .1
20
P2 points to a s ubr outine.
24
Subroutine
Y0 .0
Y0 .0
E xamp le 2
When X2.0 is turned from OFF to ON, the instruction CALL P10 is
executed, and the execution of the program jumps to the subroutine to
which P10 points.
When X1.1 is ON, the instruction CALL P11 is executed, and the
execution of the program jumps to the subroutine to which P11 points.
When X1.2 is ON, the instruction CALL P12 is executed, and the
execution of the program jumps to the subroutine to which P12 points.
When X1.3 is ON, the instruction CALL P13 is executed, and the
execution of the program jumps to the subroutine to which P13 points.
When X1.4 is ON, the instruction CALL P14 is executed, and the
execution of the program jumps to the subroutine to which P14 points.
When the instruction SRET is executed, the execution of the program
returns to the previous subroutine.
When the instruction SRET in the subroutine to which P10 points is
executed, the execution of the program returns to the main program.
5 - 2 2
Содержание AH500
Страница 9: ...viii...
Страница 52: ...Chapter 2 Hardware Specifications and Wiring Wiring AH10PM 5A and a Panasonic CN5 series servo drive 2 31...
Страница 53: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Yaskawa servo drive 2 32...
Страница 54: ...Chapter 2 Hardware Specifications and Wiring Wiring AH10PM 5A and a Mitsubishi MJR2 series servo drive 2 33...
Страница 55: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Fuji servo drive 2 34...
Страница 115: ...AH500 Motion Control Module Manual 4 16 MEMO...
Страница 375: ...AH500 Motion Control Module Manual 5 260 MEMO...
Страница 376: ...Chapter 6 Data Transmission Table of Contents 6 1 Functions 6 2 6 2 Parameters 6 2 6 3 Usage 6 5 6 1...
Страница 383: ...AH500 Motion Control Module Manual 6 8 MEMO...
Страница 419: ...AH500 Motion Control Module Manual 7 36 MEMO...
Страница 436: ...Chapter 8 Electronic Cam 8 17...
Страница 482: ...Chapter 10 High speed Counters and High speed Timers 3 The cyclic mode is used to measure a frequency 10 7...
Страница 483: ...AH500 Motion Control Module Manual 10 8 MEMO...
Страница 505: ...AH500 Motion Control Module Manual 12 8 MEMO...
Страница 515: ...AH500 Motion Control Module Manual 13 10 MEMO...
Страница 544: ...Appendix A Error Code Table Table of Contents A 1 Error Code Table A 2 A 1...
Страница 547: ...AH500 Motion Control Module Manual A 4 MEMO...