-> Hier kostenlos registrieren
Hallo Ihr,
muss mich (leider) grad etwas in SCL einarbeiten. Im Speziellen geht es um eine Ein- u. Ausschaltverzögerung.
Die Einschaltverzögerung klappt jedoch nicht; der Ausgang wird sofort angesteuert. Die Ausschaltverzögerung funktioniert!
Frage:
Was habe ich falsch gemacht?
Lieben Dank...
muss mich (leider) grad etwas in SCL einarbeiten. Im Speziellen geht es um eine Ein- u. Ausschaltverzögerung.
Die Einschaltverzögerung klappt jedoch nicht; der Ausgang wird sofort angesteuert. Die Ausschaltverzögerung funktioniert!
Code:
[SIZE=3][FONT=Times New Roman]FUNCTION_BLOCK FB10[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]VAR_INPUT[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] Taste: BOOL;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]END_VAR[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]VAR_IN_OUT[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] Ausgang: BOOL;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]END_VAR[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]VAR[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] currTime_T10: S5TIME;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] biVal_T10: WORD;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] actFlag_T10: BOOL;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] currTime_T11: S5TIME;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] biVal_T11: WORD;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] actFlag_T11: BOOL;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]END_VAR[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]BEGIN[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] currTime_T10:= S_ODT (T_NO:= T10, S:=Taste, TV:= T#1s, R:= FALSE, BI:= biVal_T10, Q:= Ausgang);[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] currTime_T11:= S_OFFDT (T_NO:= T11, S:=Taste, TV:= T#4s, R:= FALSE, BI:= biVal_T11, Q:= Ausgang);[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]END_FUNCTION_BLOCK[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]DATA_BLOCK DB10 FB10[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]BEGIN[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]END_DATA_BLOCK[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]ORGANIZATION_BLOCK OB1[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]VAR_TEMP[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] info : ARRAY[0..19] OF BYTE;[/FONT][/SIZE]
[FONT=Times New Roman][SIZE=3]END_VAR[/SIZE][/FONT]
[SIZE=3][FONT=Times New Roman] FB10.DB10(Taste:= E1.1, Ausgang:= A1.0);[/FONT][/SIZE]
[FONT=Times New Roman][SIZE=3]END_ORGANIZATION_BLOCK[/SIZE][/FONT]
Frage:
Was habe ich falsch gemacht?
Lieben Dank...