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