EasyManua.ls Logo

IAI X-SEL

IAI X-SEL
535 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
175
INTELLIGENT ACTUATOR
Part 4 Commands
EXSR (Execute subroutine)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1 Operand 2
Output
(Output, flag)
Optional Optional EXSR
Subroutine
number
Prohibited CP
[Function] Execute the subroutine specified in operand 1.
A maximum of 15 nested subroutine calls are supported.
(Note) This command is valid only for subroutines within the same program.
[Example 1] EXSR 1 Execute subroutine 1.
:
:
EXIT
BGSR 1 Start subroutine 1.
:
:
:
EDSR End subroutine 1.
[Example 2] LET 1 10 Assign 10 to variable 1.
EXSR *1 Execute the content of variable 1 (subroutine 10).
BGSR (Start subroutine)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1 Operand 2
Output
(Output, flag)
Prohibited Prohibited BGSR
Subroutine
number
Prohibited CP
[Function] Declare the start of the subroutine specified in operand 1.
[Example 1] Refer to the section on EXSR command.
(Note) Using a GOTO command to branch out of or into a BGSR-EDSR syntax is prohibited.

Table of Contents

Other manuals for IAI X-SEL

Related product manuals