EasyManua.ls Logo

ABB AC 31 - 1.2. Calling a sub-program

ABB AC 31
221 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...
Program Optimization
Page 6-4 ABB Control - AC 31
1SBC 260400 R1001-b 06.99
1.2. Calling a sub-program
Once a sub-program is defined, its name is automatically inserted into the list of function
blocks as a function block.
A sub-program is called by using the function block in the main program.
For example: calling the SUB1 program:
The SUB1 is called twice by 2 different conditions.
SUB1
EN
VALID1
SUB1
EN
VALID2
The Instruction List syntax is detailed in the AC31GRAF software documentation.
All of the functions used in the sub-programs have their own values belonging to the sub-
program call. For example, calling a sub-program, which contains a counter, is written twice,
the counter will have 2 different values.
The only exception concerns all of the time based functions such as TON, TOF, ... where their
status is unique, independently of the number of times the sub-program is called within the
program.

Table of Contents

Related product manuals