nel frattempo si invia continuamente la richiesta di status per riceverli.
Si utilizza all'avvio del programma o in apertura di una finestra specifica.
Reset del Flag:
si utilizza per eseguire un reset del flag prima di richiedere lo status, ogni dispositivo ha un suo numero di funzione.
Codice: Seleziona tutto
XComm1.StatusPerformed [b]1[/b], N_CDS, N_SVR, True............................... ' Reset Status OK x [b]CDS[/b] ecc..
XComm1.StatusPerformed[b] 2[/b], N_CDS, N_SVR, True............................... ' Reset Status OK x [b]MCT A[/b]
XComm1.StatusPerformed[b] 3[/b], N_CDS, N_SVR, True............................... ' Reset Status OK x[b] MCT B[/b]
XComm1.StatusPerformed[b] 4[/b], N_CDS, N_SVR, True................................ ' Reset Status OK x [b]Tasca A[/b]
XComm1.StatusPerformed [b]5[/b], N_CDS, N_SVR, True................................ ' Reset Status OK x [b]Tasca B[/b]Codice: Seleziona tutto
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
' Aggiorna fino all'arrivo degli Status
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
If Not XComm1.StatusPerformed(1, N_CDS, N_SVR) Then............................. ' Check Status principale
XComm1.Status N_CDS, N_SVR
DoEvents
End If
If TascaAPresente Then
If Not XComm1.StatusPerformed(4, N_CDS, N_SVR) Then........................... ' Check Status Tasca A
XComm1.Status N_CDS, N_SVR
End If
End If
If TascaBPresente Then
If Not XComm1.StatusPerformed(5, N_CDS, N_SVR) Then..... ' Check Status Tasca B
XComm1.Status N_CDS, N_SVR
End If
End If