Hey zusammen,
kurze Frage. Ich habe einen Paralleltask (Submittask) laufen der nur eine Abfrage beinhaltet .
Code
&ACCESS RVO
&COMMENT USER specified PLC program
DEF Ueberwachung ( )
;FOLD DECLARATIONS
;FOLD USER DECL
; Please insert user defined declarations
;ENDFOLD (USER DECL)
;ENDFOLD (DECLARATIONS)
;FOLD INI
;FOLD USER INIT
; Please insert user defined initialization commands
;ENDFOLD (USER INIT)
;ENDFOLD (INI)
LOOP
;FOLD USER PLC
;Make your modifications here
IF ($PROG_INFO[2].P_STATE <> #P_ACTIVE) THEN
$OUT[120] = FALSE
ENDIF
;ENDFOLD (USER PLC)
ENDLOOP
;FOLD ;%{H};
END
;ENDFOLD
;FOLD USER SUBROUTINE
;Integrate your user defined subroutines
;ENDFOLD (USER SUBROUTINE)
Alles anzeigen
Wäre es schlauer eine Wartezeit von 500ms zum Beispiel einzubinden um den Prozessor nicht zu überlasten?
Für die Anwendung reicht es völlig aus, wenn ich nach 1-2 Sekunden eine aktualisierung erhalte...
Oder meint ihr das spielt keine Rolle?
Vielen Dank schon mal für eure Antworten
Gruß
Max