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 operationFALSE
: Aborts/resets the defined operationLConC
Output
xBusy
BOOL
TRUE
: Operation is runningLConC
xError
BOOL
TRUE
: Error condition reachedLConC
eErrorID
LConC
Input
itfAsyncProperty
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
itfPeer
The established context of this peerValid, as longxActive
=TRUE
Methods:
Structure: