Function Blocks ¶ AsyncProperty AsyncProperty (Folder) IP IPAddressSet (FunctionBlock) IPv4Address (FunctionBlock) GetIPasByteArray (Method) IIPAddress CompressedIP (Property) ExplodedIP (Property) IPIsGlobal (Property) IPIsLinkLocal (Property) IPIsLoopback (Property) IPIsMultiCast (Property) IPIsPrivate (Property) IPIsReserved (Property) IPIsUnspecified (Property) IPLength (Property) IPVersion (Property) SetInitialValue (Method) PingRequest (FunctionBlock) IActionProvider SampleAction (Method) RequestPing (Method) SetInitialValue (Method) ResolveHostname (FunctionBlock) IActionProvider SampleAction (Method) ResolveHostname (Method) SetInitialValue (Method) TCP TCP_Client (FunctionBlock) IClient Read (Method) SetAdapter (Method) Upgrade (Method) Write (Method) IOptionConsumer SetOptionProvider (Method) SetInitialValue (Method) TCP_Connection (FunctionBlock) IConnection GetClientAddress (Method) Read (Method) Write (Method) TCP_Processor (FunctionBlock) ITCPProcessor ProcessStream (Method) NonBlocking (Property) SetInitialValue (Method) TCP_Read (FunctionBlock) TCP_Reader (FunctionBlock) SetInitialValue (Method) TCP_Server (FunctionBlock) IOptionConsumer SetOptionProvider (Method) SetInitialValue (Method) TCP_Stream CreateSegment (Function) CreateSegmentPool (Function) SegmentPool (FunctionBlock) IDisposable ObjectDispose (Method) ISegmentPool GetSegment (Method) SetInitialValue (Method) Stream (FunctionBlock) IStream Read (Method) Write (Method) TCP_Write (FunctionBlock) TCP_Writer (FunctionBlock) SetInitialValue (Method) TLS TLSContext (FunctionBlock) SetInitialValue (Method) UDP UDP_Packet CreatePacket (Function) CreatePacketPool (Function) PacketPool (FunctionBlock) IPacketPool GetPacket (Method) SetInitialValue (Method) PacketQueue (FunctionBlock) IPacketQueue GetPacket (Method) PutPacket (Method) UDP_Peer (FunctionBlock) IOptionConsumer SetOptionProvider (Method) Receive (Method) Receive2 (Method) Send (Method) SetInitialValue (Method) UDP_Processor (FunctionBlock) IUDPProcessor ProcessPacket (Method) NonBlocking (Property) SetInitialValue (Method) UDP_Receive (FunctionBlock) UDP_Receiver (FunctionBlock) SetInitialValue (Method) UDP_Send (FunctionBlock) UDP_Sender (FunctionBlock) SetInitialValue (Method)
AsyncProperty ¶ AsyncProperty (Folder)
AsyncProperty (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL AsyncProperty IMPLEMENTS IAsyncProperty Structure for defining the properties of a background task InOut: Scope Name Type Initial Comment Input Const tgTaskGroup TASK_GROUP ‘IEC-Tasks’ anAppName APP_NAME ‘Application’ tnTaskName TASK_NAME usiTaskPrio USINT udiTaskInterval UDINT Taskinterval in µs
IP ¶ IPAddressSet (FunctionBlock) IPv4Address (FunctionBlock) GetIPasByteArray (Method) IIPAddress CompressedIP (Property) ExplodedIP (Property) IPIsGlobal (Property) IPIsLinkLocal (Property) IPIsLoopback (Property) IPIsMultiCast (Property) IPIsPrivate (Property) IPIsReserved (Property) IPIsUnspecified (Property) IPLength (Property) IPVersion (Property) SetInitialValue (Method) PingRequest (FunctionBlock) IActionProvider SampleAction (Method) RequestPing (Method) SetInitialValue (Method) ResolveHostname (FunctionBlock) IActionProvider SampleAction (Method) ResolveHostname (Method) SetInitialValue (Method)
IPAddressSet (FB) ¶ FUNCTION_BLOCK FINAL IPAddressSet IMPLEMENTS IIPAddressSet , IIPAddressSet_Internal Represents a set of IIPAddress instances Static initialization, as shown in the following code snippet. VAR myFirstPublisher : NBS.IPv4Address := ( ipAddress := '224.0.100.20' ); mySecondPublisher : NBS.IPv4Address := ( ipAddress := '224.0.100.30' ); myPublisherSet : ARRAY [0..1] OF NBS.IIPAddress := [myFirstPublisher, mySecondPublisher] ; myMulticastSet : NBS.IPAddressSet := ( paitfIPAddress := ADR ( myPublisherSet [0] ), udiSize := SIZEOF ( myPublisherSet )); END_VAR InOut: Scope Name Type Comment Input Const paitfIPAddress POINTER TO ARRAY [0..0] OF IIPAddress The address of the first array element udiSize UDINT Size of the array paitfIPAddress is pointing to
UDP_Send (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL UDP_Send EXTENDS ETrigTo This function block serves to sent data from the local itfPeer to the other side, specified by itfIPAddress and uiPort . The content of the memory area indicated by the pointer pData contains the data to be written. udiSize defines the number of bytes to be written. When xDone is set to TRUE , udiCount bytes of the data was written successfully. The time out value has no effect at this function block. InOut: Scope Name Type Comment Inherited from Input xExecute BOOL Rising edge: Starts defined operation FALSE : Resets the defined operation after ready condition was reached ETrigTo udiTimeOut UDINT Max. operating time for executing [µs], 0: No operating time limit ETrigTo Output xDone BOOL Ready condition reached ETrigTo xBusy BOOL TRUE : Operation is running ETrigTo xError BOOL TRUE : Error condition reached ETrigTo eErrorID ERROR ETrigTo Input Const itfTSNContext ITSNContext Input itfPeer IPeer itfIPAddress IIPAddress uiPort UINT pData __XWORD udiSize UDINT Output udiCount UDINT
UDP_Sender (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL UDP_Sender EXTENDS LConC Reads the data ( IPacket instances) from the IPacketQueue ( itfPackets ) instance and writes it to the IPeer instance 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 ERROR LConC Input Const itfAsyncProperty IAsyncProperty itfTSNContext ITSNContext Input itfPeer IPeer itfPackets IPacketQueue Output udiCount UDINT Methods: SetInitialValue Structure: SetInitialValue (Method)
Interfaces ¶ AsyncProperty IAsyncProperty (Interface) GetInstancePointer (Method) IDisposable (Interface) ObjectDispose (Method) ObjectRelease (Method) ObjectRetain (Method) IOptionProvider (Interface) GetOptionCount (Method) GetParams (Method) SetResult (Method) IP IIPAddress (Interface) CompressedIP (Property) ExplodedIP (Property) IPIsGlobal (Property) IPIsLinkLocal (Property) IPIsLoopback (Property) IPIsMultiCast (Property) IPIsPrivate (Property) IPIsReserved (Property) IPIsUnspecified (Property) IPLength (Property) IPVersion (Property) IIPAddressSet (Interface) IIPv4Address (Interface) TCP IClient (Interface) Read (Method) SetAdapter (Method) Upgrade (Method) Write (Method) IConnection (Interface) GetClientAddress (Method) Read (Method) Write (Method) ISegment (Interface) CopyData (Method) GetDataPointer (Method) SetOffset (Method) ISegmentPool (Interface) GetSegment (Method) IServer (Interface) IStream (Interface) Read (Method) Write (Method) TLS ICertificateVerifier (Interface) VerifyCertificate (Method) ITLSContext (Interface) TSN ITSNContext (Interface) UDP IPacket (Interface) CopyData (Method) GetDataPointer (Method) IP_Address (Property) Port (Property) SetOffset (Method) IPacketPool (Interface) GetPacket (Method) IPacketQueue (Interface) GetPacket (Method) PutPacket (Method) IPeer (Interface) Receive (Method) Receive2 (Method) Send (Method)
AsyncProperty ¶ IAsyncProperty (Interface) GetInstancePointer (Method)
IAsyncProperty (ITF) ¶ INTERFACE IAsyncProperty EXTENDS __SYSTEM.IQueryInterface A generic parameter for transferring the properties of a background task. See the properties in detail as part of AsyncProperty . Methods: GetInstancePointer Structure: GetInstancePointer (Method)