12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- PROGRAM _INIT
- Kurve_1 := 0;
-
- END_PROGRAM
- PROGRAM _CYCLIC
- CASE Kurve_1 OF
- 0:
- IF gKurve_1.Inputs.Vor_Stopper = TRUE AND gKurve_1.Inputs.Stausensor = FALSE THEN
- gKurve_1.Cmd.Stopper := KMD_EINFAHREN;
- Kurve_1 := 10;
- END_IF
-
- 10:
- IF gKurve_1.Status.Stopper = STATUS_EINGEFAHREN AND gKurve_1.Inputs.Nach_Stopper = TRUE THEN
- Kurve_1 := 20;
- END_IF
- 20:
- IF gKurve_1.Status.Stopper = STATUS_EINGEFAHREN AND gKurve_1.Inputs.Nach_Stopper = FALSE THEN
- gKurve_1.Cmd.Stopper := KMD_AUSFAHREN;
- Kurve_1 := 30;
- END_IF
- 30:
- IF gKurve_1.Status.Stopper = STATUS_AUSGEFAHREN AND gKurve_1.Inputs.Stausensor = TRUE THEN
- Kurve_1 := 0;
- END_IF
- END_CASE
- END_PROGRAM
- PROGRAM _EXIT
- (* Insert code here *)
-
- END_PROGRAM
|