Refresh MEWNET-W monitoring information
This instruction refreshes the MEWNET-W send/receive time interval information for the MEWNET-W unit in the slot specified by s_Slot.
Input
Slot number of expansion unit
Output
Stores the time interval values in the FP_MEWNET_W_TIME_INTERVAL_DUT.
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;
dutMewnetWTimeInterval: FP_MEWNET_W_TIME_INTERVAL_DUT;
END_VAR
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_W_GET_TIME_INTERVAL!,,15,2,33,6,,?DEN?Ds_Slot?AENO?Cd_dutMewnetWTimeInterval);
B(B_VARIN,,iSlot,13,4,15,6,);
B(B_VAROUT,,dutMewnetWTimeInterval,33,4,35,6,);
L(1,0,1,7);
L(1,4,4,4);
L(6,4,15,4);
END_NETWORK_BODY
END_NET_WORK
END_BODY
If (bEnable) Then
FP_MEWNET_W_GET_TIME_INTERVAL(s_Slot := iSlot,
d_dutMewnetWTimeInterval => dutMewnetWTimeInterval);
End_if;