![background image](http://html.mh-extra.com/html/abb/ac-31/ac-31_technical-manual_176157.webp)
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.
Summary of Contents for AC 31
Page 1: ...Technical Manual Advant Controller 31 40 50 Series 1SBC 260400 R 1001 b ...
Page 7: ......
Page 43: ......
Page 45: ...Technical specifications Page 3 2 ABB Control AC 31 1SBC 260400 R1001 b 06 99 ...
Page 83: ......
Page 85: ...Installation Page 4 2 ABB Control AC 31 1SBC 260400 R1001 b 06 99 ...
Page 109: ......
Page 130: ...Programming ABB Control AC 31 Page 5 21 1SBC 260400 R1001 b 06 99 ...
Page 182: ...Communication ABB Control AC 31 Page 7 11 1SBC 260400 R1001 b 06 99 ...
Page 189: ......
Page 203: ......
Page 217: ......
Page 218: ...AC 31 technical documentation ABB Control AC 31 Index Page 1 1SBC 260400 R1001 b 06 99 Index ...