Private Utilities ¶ UtilAddressResolving (Function) UtilAssignCommAddress (Function) UtilByteToHexString (Function)
DHCP Client Library Documentation ¶ Company 3S - Smart Software Solutions GmbH Title DHCP Client Version 3.5.11.0 Categories Intern|Networking Namespace DHCP Author 3S - Smart Software Solutions GmbH Placeholder DHCP Client Description 1 ¶ Offers an IEC DHCP Client for obtaining and releasing the IP Address of a given network interface. Contents: ¶ DHCP_Client Enums Function Blocks Functions Global Constants Structs Indices and tables ¶ 1 Based on DHCP_Client.library, last modified 03.07.2017, 16:13:31. LibDoc 4.4.0.0-b.27 The content file DHCP_Client.clean.json was generated with CODESYS V3.5 SP11 on 03.07.2017, 16:13:31.
Enums ¶ ERROR (Enum) OPTION_CODE (Enum)
DHCP_Client ¶ Enums ERROR (Enum) OPTION_CODE (Enum) Function Blocks DHCP DHCP_Release (FunctionBlock) DHCP_Request (FunctionBlock) Helper ResolveInterface (FunctionBlock) 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) Global Constants CONSTANTS (GVL) Structs BootP_Header (Struct) DHCP_Header (Struct)
ERROR (ENUM) ¶ TYPE ERROR : Attributes: qualified_only InOut: Name Initial SUCCESS 0 CREATE_SOCKET SEND_DHCP_DISCOVER RECV_DHCP_OFFER SEND_DHCP_REQUEST RECV_DHCP_ACK INTERFACE_NOT_FOUND
OPTION_CODE (ENUM) ¶ TYPE OPTION_CODE : InOut: Name Initial SUBNETMASK 1 ROUTER 3 DOMAIN_SERVER 6 DOMAIN_NAME 15 ADDRESS_REQUEST 50 DHCP_MSG_TYPE 53 DHCP_SERVER_ID 54 PARAMETER_LIST 55 END 255
Function Blocks ¶ DHCP DHCP_Release (FunctionBlock) DHCP_Request (FunctionBlock) Helper ResolveInterface (FunctionBlock)
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