Calling A Sub-Program - ABB AC 31 Technical Manual

Advant controller 31 40 & 50 series
Hide thumbs Also See for AC 31:
Table of Contents

Advertisement

1.2. Calling a sub-program

Page 6-4
Program Optimization
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.
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.
SUB1
VALID1
EN
SUB1
VALID2
EN
ABB Control - AC 31
1SBC 260400 R1001-b
06.99

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents