MAC_ADDRESS_COMPARE (FUN) ¶ FUNCTION MAC_ADDRESS_COMPARE : BOOL InOut: Scope Name Type Return MAC_ADDRESS_COMPARE BOOL Input abyMacAddress1 ARRAY [1..6] OF BYTE abyMacAddress2 ARRAY [1..6] OF BYTE
Interfaces ¶ IARPCallback (Interface) ARP_RequestCallback (Method) IARPEthernetClient (Interface) ReceiveARP (Method) IEthernet (Interface) SendARP (Method)
IARPCallback (ITF) ¶ INTERFACE IARPCallback Methods: ARP_RequestCallback Structure: ARP_RequestCallback (Method)
IARPEthernetClient (ITF) ¶ INTERFACE IARPEthernetClient Methods: ReceiveARP Structure: ReceiveARP (Method)
IARPCallback.ARP_RequestCallback (METH) ¶ METHOD ARP_RequestCallback : BOOL This Method gets called by the Request FB as soon as the response was received. InOut: Scope Name Type Comment Return ARP_RequestCallback BOOL Input abyReceivedIP ARRAY [0..3] OF BYTE IP from response (abyReceivedIP is at abyReceivedMAC) abyReceivedMAC ARRAY [0..5] OF BYTE MAC from response (abyReceivedIP is at abyReceivedMAC)
IARPEthernetClient.ReceiveARP (METH) ¶ METHOD ReceiveARP : BOOL Returns TRUE, if the ethernet frame was the arp response to the request sent before. InOut: Scope Name Type Comment Return ReceiveARP BOOL Input pstrARPResponse POINTER TO ARP_Packet ethernet II frame diLength DINT length of received data
IEthernet (ITF) ¶ INTERFACE IEthernet Methods: SendARP Structure: SendARP (Method)
IEthernet.SendARP (METH) ¶ METHOD SendARP : UDINT Sends an ARP Request InOut: Scope Name Type Return SendARP UDINT Input pstrARPRequest POINTER TO ARP_Packet
Structs ¶ ARP_Packet (Struct)
ARP_Packet (STRUCT) ¶ TYPE ARP_Packet : STRUCT InOut: Name Type Initial Comment abyDestAddress ARRAY [0..5] OF BYTE CONSTANTS.abyBroadcastMAC Ethernet Header abySrcAddress ARRAY [0..5] OF BYTE wEtherType WORD CONSTANTS.wARPEthType wHardwareType WORD ARP Data wProtocolType WORD byHardwareSize BYTE byProtocolSize BYTE wOpCode WORD abySenderMAC ARRAY [0..5] OF BYTE abySenderIP ARRAY [0..3] OF BYTE abyTargetMAC ARRAY [0..5] OF BYTE abyTargetIP ARRAY [0..3] OF BYTE abyPadding ARRAY [0..17] OF BYTE