UDP_Peer (FB)¶
FUNCTION_BLOCK UDP_Peer EXTENDS CBM.LTrig
This function block activates a Peer by setting xEnable to TRUE.
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
xEnableBOOLTRUE: Action startsFALSE: Action stops, outputsxDone,xBusy,xErrorare resettedLTrig
Output
xDoneBOOLTRUE: Action successfully completedLTrig
xBusyBOOLTRUE: Function block activeLTrig
xErrorBOOLTRUE: Error occurred, function block aborts actionFALSE: No errorLTrig
Input
ipAddrSTRUCT(sAddr := ‘0.0.0.0’)
‘0.0.0.0’ => INADDR_ANY‘127.0.0.1’ => INADDR_LOOPBACK‘255.255.255.255’ => INADDR_NONEuiPortUINTipMultiCastSTRUCT(sAddr := ‘255.255.255.255’)
Multicast address. ‘255.255.255.255’ => INADDR_NONE
Output
eErrorxActiveBOOLTRUE if the handle is valid
hPeerCAA.HANDLE