NetVarUdp Library Documentation ¶ Company System Title NetVarUdp Version 3.5.19.0 Categories Intern|NetVars Namespace NetVarUdp Author 3S-Smart Software Solutions GmbH Placeholder NetVarUDP Description 1 ¶ Implements the UDP protocol for network variables Contents: ¶ Data types CLIENT_ACCEPT (Struct) CLIENT_REPLY (Struct) NetVarDataItem_Udp (Struct) NetVarOD_Service_Udp (Enum) NetVarTelegramm_Udp (Struct) NetVarTlgHeader_Udp (Struct) NetVarUDPDiagStruct (Struct) NetVarUDPError (Enum) Global Variables Globale_Variablen (GVL) POUs NetVar POUs Swap (Function) Udp specific Parameters (ParamList) Indices and tables ¶ 1 Based on NetVarUdp.library, last modified 02.03.2023, 10:51:49. LibDoc 4.4.0.0-b.27 The content file NetVarUdp.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 02.03.2023, 10:51:51.
Data types ¶ CLIENT_ACCEPT (Struct) CLIENT_REPLY (Struct) NetVarDataItem_Udp (Struct) NetVarOD_Service_Udp (Enum) NetVarTelegramm_Udp (Struct) NetVarTlgHeader_Udp (Struct) NetVarUDPDiagStruct (Struct) NetVarUDPError (Enum)
CLIENT_ACCEPT (STRUCT) ¶ TYPE CLIENT_ACCEPT : STRUCT InOut: Name Type diSocket DINT stIPAddress STRING(20)
CLIENT_REPLY (STRUCT) ¶ TYPE CLIENT_REPLY : STRUCT InOut: Name Type diBytesReceived __XINT dwIPAddress DWORD stIPAddressTransmitter STRING
NetVarDataItem_Udp (STRUCT) ¶ TYPE NetVarDataItem_Udp : STRUCT InOut: Name Type Initial pAddress POINTER TO BYTE nDataLen INT siType SINT -1
NetVarOD_Service_Udp (ENUM) ¶ TYPE NetVarOD_Service_Udp : InOut: Name Initial ODStateFree 0 ODReadRequest ODReadRequestReply ODWriteRequest ODWriteRequestReply ODAcknowledgement ODBootUpRequest ODErrorReplyUnnown 20 ODErrorReplyItems ODErrorReplyAccess ODErrorReplyIdx ODErrorReplySub ODErrorReplyLen ODErrorWrongService ODErrorTimeOut ODErrorReplyCPUStopped ODErrorDataLength ODStateBusy 100
NetVarTelegramm_Udp (STRUCT) ¶ TYPE NetVarTelegramm_Udp : STRUCT InOut: Name Type Header NetVarTlgHeader_Udp pData ARRAY [0..(Parameters.UdpPacketSize - 1)] OF BYTE
NetVarTlgHeader_Udp (STRUCT) ¶ TYPE NetVarTlgHeader_Udp : STRUCT InOut: Name Type Initial Comment dwIdentity DWORD 16#33532D00 dwIdentity : DWORD := TELEGRAM_IDENT; (* Kennung für Art der UDP Message BYTE 0 = ‘3’, 1 = ‘S’, 2 = ‘-’ , 3 = Nummer der Version * ) dwID DWORD nIndex INT nSubIndex INT nItems INT nLen INT nCounter INT byFlags BYTE Bit 0: Sende Bestätigung erwünscht byChecksum BYTE Bit 1: Checksumme prüfen Bit 2: Ungültige Checksumme Bit 3: Sender stopped
NetVarUDPDiagStruct (STRUCT) ¶ TYPE NetVarUDPDiagStruct : STRUCT InOut: Name Type nSendCount UDINT tLastSend TIME nReceiveCount UDINT tLastReceive TIME nWriteCount UDINT sLastError NetVarUDPError tLastError TIME nErrorCount UINT nAcknowledges UINT bSenderStopped BOOL
NetVarUDPError (ENUM) ¶ TYPE NetVarUDPError : InOut: Name Initial NetVarUDPError_NOERROR 0 NetVarUDPError_UDPSENDDATA NetVarUDPError_UDPSENDACKN NetVarUDPError_NOACKNOWLEDGEMENT NetVarUDPError_NOTACKNOWLEDGED NetVarUDPError_UDPSENDBOOTUPREQUEST NetVarUDPError_UDPANSWERBOOTUPREQUEST NetVarUDPError_CHECKSUM NetVarUDPError_LAYOUT NetVarUDPError_PACKETSIZEMISMATCH NetVarUDPError_UDPNETWORKMANAGER_NOT_READY 20 NetVarUDPError_UNKNOWN 100