DHCP ¶ DHCP_Release (FunctionBlock) DHCP_Request (FunctionBlock)
DHCP_Release (FB) ¶ FUNCTION_BLOCK DHCP_Release Releases an IP Address to a DHCP Server InOut: Scope Name Type Comment Input xEnable BOOL TRUE: release ip address abyMACAddress ARRAY [0..5] OF BYTE mac address of the network interface sIPAddress STRING ip address to release sDHCPServer STRING ip address of the dhcp server (use output from dhcp_request) Output xReady BOOL TRUE: ip address released
DHCP_Request (FB) ¶ FUNCTION_BLOCK DHCP_Request Requests an IP Address from a DHCP Server and returns it. InOut: Scope Name Type Comment Input xEnable BOOL TRUE: request ip address from dhcp server abyMACAddress ARRAY [0..5] OF BYTE interface the ip address should be assigned to Output xReady BOOL TRUE: ip address received xError BOOL TRUE: Error occurred during ip request eError ERROR sIPAddress STRING received ip address sSubNetMask STRING sRouter STRING sDNSServer STRING sDomainName STRING sDHCPServer STRING
Helper ¶ ResolveInterface (FunctionBlock)
ResolveInterface (FB) ¶ FUNCTION_BLOCK ResolveInterface Resolves the label of an interface to its mac address. InOut: Scope Name Type Comment Input xEnable BOOL sInterfaceName STRING Name of interface to be resolved Output xReady BOOL xError BOOL eError ERROR abyMACAddress ARRAY [0..5] OF BYTE MAC Address of the interface diAdapterNumber DINT
Functions ¶ Helper CRC16 (Function) MAC_ADDRESS_COMPARE (Function) IP Conversions IPARRAY_TO_IPSTRING (Function) IPARRAY_TO_UDINT (Function) IPSTRING_TO_UDINT (Function) UDINT_TO_IPSTRING (Function)
Helper ¶ CRC16 (Function) MAC_ADDRESS_COMPARE (Function)
CRC16 (FUN) ¶ FUNCTION CRC16 : WORD InOut: Scope Name Type Return CRC16 WORD Input pipframe POINTER TO BYTE iSize INT
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
IP Conversions ¶ IPARRAY_TO_IPSTRING (Function) IPARRAY_TO_UDINT (Function) IPSTRING_TO_UDINT (Function) UDINT_TO_IPSTRING (Function)