You are on page 1of 2

SIMATIC SCL_Book\ 08/15/2019 12:39:16 PM

30 SCL Functions\Source Files\...\Example Calls

1 FUNCTION_BLOCK Calls30
2 TITLE = 'Calls of the examples for the standard functions'
3 //Call FB 301 STD_TIMER
4 //Call FB 302 STD_COUNTER
5 //Call FB 303 STD_KONV
6 //Call FB 304 STD_MATH
7 //Call FB 305 STD_SHIFT
8 //Call FB 306 STD_NUM
9
10 NAME : C30CALL
11 FAMILY : SCL_Book
12 AUTHOR : Berger
13 VERSION : '1.1'
14
15 VAR
16 Timers : STD_TIMER;
17 Counters : STD_COUNTER;
18 Convert : STD_CONV;
19 Math : STD_MATH;
20 Shift : STD_SHIFT;
21 Numerical : STD_NUM;
22 END_VAR
23
24 BEGIN
25 //Calling the timer functions
26 Timers();
27
28 //Calling the counter functions
29 Counters();
30
31 //Calling the conversion functions
32 Convert();
33
34 //Calling the math functions
35 Math();
36
37 //Calling the shift and rotate functions
38 Shift();
39
40 //Calling the numerical functions
41 Numerical();
42
43 END_FUNCTION_BLOCK
44
45

Page 1 of 2
SIMATIC SCL_Book\ 08/15/2019 12:39:16 PM
30 SCL Functions\Source Files\...\Example Calls

46 DATA_BLOCK Calls30_Data
47 TITLE = Instance data block for the FB "Calls30"
48 NAME : C30CALLD
49 FAMILY : SCL_Book
50 AUTHOR : Berger
51 VERSION : 1.1
52 "Calls30"
53 BEGIN
54 END_DATA_BLOCK
55

Page 2 of 2

You might also like