Hello, there is missing an instance to the interface IIPAddress. The following should work: Declaration: VAR hostname: STRING := 'www.codesys.com'; url: STRING; asyncProperty: NBS.AsyncProperty := (anAppName := 'Application', tgTaskGroup := 'IEC-Tasks', tnTaskName := 'bgTask', udiTaskInterval := 20000 , usiTaskPrio := 30); ipv4Address: NBS.IPv4Address; itfIPAddress: NBS.IIPAddress := ipv4Address; resolve: NBS.ResolveHostname := (itfAsyncProperty := asyncProperty, udiTimeout := 1000000); webcl: WEB_CLIENT.WebClient; END_VAR Implementation: resolve(xExecute := TRUE, itfIPAddress := itfIPAddress, sHostname := hostname); IF resolve.xDone THEN url := CONCAT('https://', ipv4Address.ipAddress); webcl.xExecute := TRUE; END_IF webcl(sURL := url, eRequestType := WEB_CLIENT.REQUEST_TYPE.GET);
... View more