Constants ¶ CONSTANTS (GVL)
CONSTANTS (GVL) ¶ InOut: Name Type Initial Comment abyBroadcastMAC ARRAY [0..5] OF BYTE [16#FF, 16#FF, 16#FF, 16#FF, 16#FF, 16#FF] wHardwareType WORD 16#1 wProtocolType WORD 16#800 wOpcodeRequest WORD 16#1 wOpcodeResponse WORD 16#2 wARPEthType WORD 16#806 Ether types wVLANEthType WORD 16#8100
Function Blocks ¶ Request (FunctionBlock) ReceiveARP (Method) Send (Method)
Request (FB) ¶ FUNCTION_BLOCK Request IMPLEMENTS IARPEthernetClient Methods: ReceiveARP Send Structure: ReceiveARP (Method) Send (Method)
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
private ¶ ArchiveBaseName (Property) CloseFile (Method) OpenFile (Method) ReadHeader (Method) WriteHeader (Method)
FileStorageBase.ArchiveBaseName (PROP) ¶ PROPERTY PROTECTED ArchiveBaseName : STRING Overwrite this property if your Persistence file is not located at $ac_persistence$ This is probably the case if you are going to use |IDataLogChannel.ExternalSaveAs| or |IDataLogChannel4.ExternalLoadFrom| In these cases your implementation is likely to look like this: .. code-block:: codesys ArchiveBaseName := THIS^.sArchive;