NetVarPDO_Tx_Udp (FB) ¶ FUNCTION_BLOCK NetVarPDO_Tx_Udp InOut: Scope Name Type Initial Input nDataItems INT -1 pDataItems POINTER TO NetVarDataItem_Udp wDrvNr WORD nIndex INT -1 nSubIndex INT -1 bWithChecksum BOOL byChecksum BYTE bWithAcknowledge BOOL pbExpression POINTER TO BOOL bAnswerBootupRequest BOOL TRUE bBootupRequestReceived BOOL InhibitTimer TON STRUCT(PT := TIME#100ms) RepeatTimer TON STRUCT(PT := TIME#500ms) stIPAddressBootupRequest STRING(20) sNetTelegramm NetVarTelegramm_UDP bActive BOOL TRUE pNetVarManager_Udp POINTER TO NetVarManager_Udp_FB pNetVarPDO_Tx_Diagnosis POINTER TO NetVarUDPDiagStruct bBeforeApplication BOOL FALSE stIPAddressBroadcast STRING(20) Output nStatus INT Methods: Acknowledge SetError Structure: Acknowledge (Method) PDO_TxSendHard (Action) SetError (Method)
NetVarPDO_Tx_Udp.Acknowledge (METH) ¶ METHOD Acknowledge : BOOL InOut: Scope Name Type Return Acknowledge BOOL
NetVarPDO_Tx_Udp.PDO_TxSendHard (ACT) ¶
NetVarPDO_Tx_Udp.SetError (METH) ¶ METHOD SetError : BOOL InOut: Scope Name Type Return SetError BOOL Input error NetVarUDPError
Swap (FUN) ¶ FUNCTION Swap : BOOL InOut: Scope Name Type Return Swap BOOL Input bSwap BOOL pi POINTER TO BYTE nSize INT
Udp specific ¶ GetIPAddress (Function) UdpGetReceiveDataSize (Function) UdpOpenReceiveSocket (Function) UdpOpenSendSocket (Function) UdpReceiveData (Function) UdpSendData (Function) UdpSendTlg (Program)
GetIPAddress (FUN) ¶ FUNCTION GetIPAddress : UDINT InOut: Scope Name Type Comment Return GetIPAddress UDINT Input stIPAddress STRING IP-address or computer name
UdpGetReceiveDataSize (FUN) ¶ FUNCTION UdpGetReceiveDataSize : DINT InOut: Scope Name Type Comment Return UdpGetReceiveDataSize DINT Input hSocket RTS_IEC_HANDLE Socket Id
UdpOpenReceiveSocket (FUN) ¶ FUNCTION UdpOpenReceiveSocket : RTS_IEC_HANDLE InOut: Scope Name Type Return UdpOpenReceiveSocket RTS_IEC_HANDLE Input iPort INT
UdpOpenSendSocket (FUN) ¶ FUNCTION UdpOpenSendSocket : RTS_IEC_HANDLE InOut: Scope Name Type Return UdpOpenSendSocket RTS_IEC_HANDLE Input iPort INT