109
|
1 |
|
|
2 |
|
|
3 |
|
|
4 |
PROGRAM foo
|
|
5 |
VAR_INPUT
|
|
6 |
single, interval, priority : BOOL;
|
|
7 |
END_VAR
|
|
8 |
LD single
|
|
9 |
LD interval
|
|
10 |
LD priority
|
|
11 |
END_PROGRAM
|
|
12 |
|
|
13 |
|
|
14 |
PROGRAM priority
|
|
15 |
VAR_INPUT
|
|
16 |
bar : BOOL;
|
|
17 |
END_VAR
|
|
18 |
LD bar
|
|
19 |
END_PROGRAM
|
|
20 |
|
|
21 |
|
|
22 |
PROGRAM single
|
|
23 |
VAR_INPUT
|
|
24 |
bar : BOOL;
|
|
25 |
END_VAR
|
|
26 |
LD bar
|
|
27 |
END_PROGRAM
|
|
28 |
|
|
29 |
|
|
30 |
PROGRAM interval
|
|
31 |
VAR_INPUT
|
|
32 |
bar : BOOL;
|
|
33 |
END_VAR
|
|
34 |
LD bar
|
|
35 |
END_PROGRAM
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
CONFIGURATION config1
|
|
42 |
TASK fast(PRIORITY := 4);
|
|
43 |
PROGRAM P1 WITH fast:
|
|
44 |
FOO(single := TRUE, interval := TRUE, priority := TRUE);
|
|
45 |
END_CONFIGURATION
|
|
46 |
|
|
47 |
|
|
48 |
CONFIGURATION config2
|
|
49 |
TASK fast(SINGLE := 3, PRIORITY := 4);
|
|
50 |
PROGRAM P1 WITH fast:
|
|
51 |
FOO(single := TRUE, interval := TRUE, priority := TRUE);
|
|
52 |
END_CONFIGURATION
|
|
53 |
|
|
54 |
|
|
55 |
CONFIGURATION config3
|
|
56 |
TASK fast(INTERVAL := T#1s, PRIORITY := 4);
|
|
57 |
PROGRAM P1 WITH fast:
|
|
58 |
FOO(single := TRUE, interval := TRUE, priority := TRUE);
|
|
59 |
END_CONFIGURATION
|
|
60 |
|
|
61 |
|
|
62 |
CONFIGURATION config4
|
|
63 |
TASK fast(SINGLE := 3, INTERVAL := T#1s, PRIORITY := 4);
|
|
64 |
PROGRAM P1 WITH fast:
|
|
65 |
FOO(single := TRUE, interval := TRUE, priority := TRUE);
|
|
66 |
END_CONFIGURATION
|
|
67 |
|