FP_MEWNET_W2_GET_NETWORK_STATUS

Ottenere le informazioni di stato della rete MEWNET-W2

Con questa istruzione si ottengono le informaziondi di stato della rete MEWNET-W2 sull'unità MEWNET-W2 nel numero di slot specificato da s_Slot.

Ingresso

s_Slot (ANY16)

Numero slot dell'unità di espansione

Uscita

d_dutMewnetW2NetworkStatus

Memorizza le informazioni di stato della rete nella FP_MEWNET_W2_NETWORK_STATUS_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;
		dutMewnetW2NetworkStatus: FP_MEWNET_W2_NETWORK_STATUS_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 := 4 ;
        NETWORK_BODY
B(B_CONTACT,,bEnable,4,1,6,3,);
B(B_F,FP_MEWNET_W2_GET_NETWORK_STATUS!,,15,0,35,4,,?DEN?Ds_Slot?AENO?Cd_dutMewnetW2NetworkStatus);
B(B_VARIN,,iSlot,13,2,15,4,);
B(B_VAROUT,,dutMewnetW2NetworkStatus,35,2,37,4,);
L(1,0,1,4);
L(1,2,4,2);
L(6,2,15,2);
        END_NETWORK_BODY
    END_NET_WORK
END_BODY

ST body

If (bEnable) Then
    FP_MEWNET_W2_GET_NETWORK_STATUS(s_Slot := iSlot,
                                    d_dutMewnetW2NetworkStatus => dutMewnetW2NetworkStatus);
End_if;

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