UDP_Peer (FB)ΒΆ
FUNCTION_BLOCK PUBLIC FINAL UDP_Peer EXTENDS LConC IMPLEMENTS IPeer, IOptionConsumer
xEnable to TRUE.itfPeer can be contected with UDP_Receive, UDP_Receiver, UDP_Send and UDP_Sender.Send and Receive methods can also be used as an alternative to the related traditional function blocks.Sending or receiving multicast telegrams is only possible if the input itfMulticast has been assigned accordingly
with an IPAddressSet or IPv4Address.
- InOut:
- Scope - Name - Type - Comment - Inherited from - Input - xEnable- BOOL- TRUE: Activates the defined operation- FALSE: Aborts/resets the defined operation- LConC - Output - xBusy- BOOL- TRUE: Operation is running- LConC - xError- BOOL- TRUE: Error condition reached- LConC - eErrorID- LConC - Input Const - itfAsyncProperty- Input - itfIPAddress- IP Address of the specific Adpater for Receiving/Sending (The related Networkmask and Broadcast adresses for receiving will be calculated) - uiPort- UINT- Receive Port - itfMulticast- One or more Multicast Groups (optional) - Output - xActive- BOOL- TRUE if the peer context is established - itfPeerThe established context of this peerValid, as long- xActive=- TRUE
Methods:
Structure:
