Request.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
Request.Send (METH) ¶ METHOD Send : UDINT Creates and sends an arp request InOut: Scope Name Type Comment Return Send UDINT Input abySenderMAC ARRAY [0..5] OF BYTE MAC Address of the sender (…? Tell abySenderIP, abySenderMAC) abySenderIP ARRAY [0..3] OF BYTE IP Address of the sender (…? Tell abySenderIP, abySenderMAC) abyTargetIP ARRAY [0..3] OF BYTE IP Address of the requested host (Who has abyTargetIP?) itfARPCallback IARPCallback Interface to the instance which shall receive the response (abyTargetIP is at abyTargetMAC ) itfEthernet IEthernet Interface to the Ethernet adapter which shall send the request
Functions ¶ MAC_ADDRESS_COMPARE (Function)
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)
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 (ITF) ¶ INTERFACE IARPEthernetClient Methods: ReceiveARP Structure: ReceiveARP (Method)
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)