Funzione HP_StatusPerformed

Forum dedicato allo sviluppo di soluzioni di Supervisione e Monitoraggio per progetti di "edifici a energia quasi zero", per l'attuazione della norma EN15232 - CEI 205-18 in attuazione col Dl n.63 4 Giugno 2013 e in particolare per tutte quelle Funzioni che riguardano impianti reali in Classe A ovvero le F56, F57, F58
YahooSeeker [Bot]
Messaggi: 80
Iscritto il: gio 14 gen 2021, 18:56

Re: Funzione HP_StatusPerformed

Messaggio da YahooSeeker [Bot] »

Status Perfomed serve per verificare che i valori messi sul Monitor siano aggiornati subito e correttamente,
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]
di seguito si invia la richiesta fino a quando il flag non viene attivato!

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
ecc..
YahooSeeker [Bot]
Messaggi: 80
Iscritto il: gio 14 gen 2021, 18:56

Re: Funzione HP_StatusPerformed

Messaggio da YahooSeeker [Bot] »

xcomm.HP_StatusPerformed
Al momento è utilizzato solo per gli status dei regolatori 30 e 31 come espansione della centrale di camera.