SysEthernetAdapterOpen (FUN) ¶ FUNCTION SysEthernetAdapterOpen : SysTypes.RTS_IEC_HANDLE Open an Ethernet adapter by its MAC address. .. note: Each adapter can only be opened once . InOut: Scope Name Type Comment Return SysEthernetAdapterOpen SysTypes.RTS_IEC_HANDLE Returns a handle to the opened adapter. SysTypes.RTS_INVALID_HANDLE is returned if the operation failed. Input macAddress ARRAY [0..5] OF BYTE MAC address of the adapter to be opened. pResult POINTER TO SysTypes.RTS_IEC_RESULT Result of the operation
MvtIdRange_ContainsRange (FUN) ¶ FUNCTION MvtIdRange_ContainsRange : BOOL Returns whether mvtIdsA contains mvtIdsB . InOut: Scope Name Type Inout Const mvtIdsA MvtIdRange mvtIdsB MvtIdRange Return MvtIdRange_ContainsRange BOOL
SysEthernetEthFrameReceive (FUN) ¶ FUNCTION SysEthernetEthFrameReceive : POINTER TO SysEthernetFrame This function receives the next Ethernet frame from the Ethernet adapter. A pointer to this frame is returned. ..note: The frame returned has to be released using the SysEthernetEthFrameRelease () function . The frame will only be overwritten if the frame is released . As frames are reused when released pay attention to call this function if processing of the frame has finished . InOut: Scope Name Type Comment Return SysEthernetEthFrameReceive POINTER TO SysEthernetFrame Pointer to the Ethernet frame Input hAdapter SysTypes.RTS_IEC_HANDLE Ethernet adapter where to receive the frame. pResult POINTER TO RTS_IEC_RESULT Result of the operation.
SysEthernetEthFrameSend (FUN) ¶ FUNCTION SysEthernetEthFrameSend : SysTypes.RTS_IEC_RESULT This function sends an ethernetframe to the given adapter. The data of the frame is copied to the adapter. When this function returns the frame can be overwritten without any problems. InOut: Scope Name Type Comment Return SysEthernetEthFrameSend SysTypes.RTS_IEC_RESULT Input hAdapter SysTypes.RTS_IEC_HANDLE Ethernet adapter where to send the frame. pFrame POINTER TO SysEthernetFrame Pointer to the frame to send.
SysEthernetFrameRelease (FUN) ¶ FUNCTION SysEthernetFrameRelease : SysTypes.RTS_IEC_RESULT Release a received frame to indicate that the frame can be reused. InOut: Scope Name Type Comment Return SysEthernetFrameRelease SysTypes.RTS_IEC_RESULT Input pFrame POINTER TO SysEthernetFrame Pointer to the frame to release
SysEthernetGetCapabilities (FUN) ¶ FUNCTION SysEthernetGetCapabilities : SysTypes.RTS_IEC_RESULT Get EIP Interface Capability of an adapter identified by its MAC address. InOut: Scope Name Type Comment Return SysEthernetGetCapabilities SysTypes.RTS_IEC_RESULT Runtime system error code (see CmpErrors.library). Input macAddress ARRAY [0..5] OF BYTE MAC address of the adapter to get information from pSysEthernetCapabilities POINTER TO SysEthernetCapabilities EIP Interface Capability structure
MapException (FUN) ¶ FUNCTION MapException : DWORD InOut: Scope Name Type Return MapException DWORD Input ulException UDINT
OpenEvent (FUN) ¶ FUNCTION OpenEvent : RTS_IEC_HANDLE InOut: Scope Name Type Return OpenEvent RTS_IEC_HANDLE Input Event RTS_EVENT
SysCallbackRegister (FUN) ¶ FUNCTION SysCallbackRegister : BOOL InOut: Scope Name Type Comment Return SysCallbackRegister BOOL Input pfCallbackFunction DWORD POU address of callback function! Event RTS_EVENT Event to register
SysCallbackUnregister (FUN) ¶ FUNCTION SysCallbackUnregister : BOOL InOut: Scope Name Type Comment Return SysCallbackUnregister BOOL Input pfCallbackFunction DWORD POU Index of callback function. Event RTS_EVENT Event to register