FP_MEWNET_W2_GET_ERROR_OCCURRENCY

Ottenere il numero di errori sulle unità MEWNET-W2 per tipo di errore

Questa istruzione FP legge il numero di volte in cui un errore si è verificato sull'unità MEWNET-W2 nel numero di slot specificato da s_Slot.

Ingresso

s_Slot (ANY16)

Numero slot dell'unità di espansione

Uscita

d_dutMewnetW2ErrorOccurrency

Memorizza il numero di volte in cui l'errore si è verificato per tipo di errore nella FP_MEWNET_W2_ERROR_OCCURRENCY_DUT.

Example

POU header

All input and output variables used for programming this function have been declared in the POU header.The same POU header is used for all programming languages.

	VAR
		bEnable: BOOL:=FALSE;
		iSlot: INT:=0;
		dutMewnetW2ErrorOccurrency: FP_MEWNET_W2_ERROR_OCCURRENCY_DUT;
	END_VAR

LD body

When the variable bEnable is set to TRUE, the function is executed.

BODY
    WORKSPACE
        NETWORK_LIST_TYPE := NWTYPELD ;
    END_WORKSPACE
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 7 ;
        NETWORK_BODY
B(B_CONTACT,,bEnable,4,3,6,5,);
B(B_F,FP_MEWNET_W2_GET_ERROR_OCCURRENCY!,,15,2,36,6,,?DEN?Ds_Slot?AENO?Cd_dutMewnetW2ErrorOccurrency);
B(B_VARIN,,iSlot,13,4,15,6,);
B(B_VAROUT,,dutMewnetW2ErrorOccurrency,36,4,38,6,);
L(1,0,1,7);
L(1,4,4,4);
L(6,4,15,4);
        END_NETWORK_BODY
    END_NET_WORK
END_BODY

ST body

If (bEnable) Then
    FP_MEWNET_W2_GET_ERROR_HISTORY(s_Slot := iSlot,
                                   d_dutMewnetW2ErrorHistory => dutMewnetW2ErrorHistory);
End_if;

L'ultima revisione: 2022-04-19Feedback su questa paginaPanasonic hotline