DHCP_Request (FB)ΒΆ
FUNCTION_BLOCK DHCP_Request
Requests an IP Address from a DHCP Server and returns it.
- InOut:
Scope
Name
Type
Comment
Input
xEnableBOOLTRUE: request ip address from dhcp server
abyMACAddressARRAY [0..5] OF BYTE
interface the ip address should be assigned to
Output
xReadyBOOLTRUE: ip address received
xErrorBOOLTRUE: Error occurred during ip request
eErrorsIPAddressSTRINGreceived ip address
sSubNetMaskSTRINGsRouterSTRINGsDNSServerSTRINGsDomainNameSTRINGsDHCPServerSTRING