changeset 270 | f1674941c3ad |
parent 257 | 90782e241346 |
child 276 | 1679f514f38a |
256:101c7f148b9a | 270:f1674941c3ad |
---|---|
26 END_VAR |
26 END_VAR |
27 VAR_OUTPUT |
27 VAR_OUTPUT |
28 Q : BOOL; |
28 Q : BOOL; |
29 CV : INT; |
29 CV : INT; |
30 END_VAR |
30 END_VAR |
31 |
|
32 VAR RRR : REAL; END_VAR |
|
33 RRR := 9.9; |
|
34 |
|
31 IF R THEN CV := 0 ; |
35 IF R THEN CV := 0 ; |
32 ELSIF CU AND (CV < PV) |
36 ELSIF CU AND (CV < PV) |
33 THEN CV := CV+1; |
37 THEN CV := CV+1; |
34 END_IF ; |
38 END_IF ; |
35 Q := (CV >= PV) ; |
39 Q := (CV >= PV) ; |