The function template provides a program which has been created in programming language ST (Structured Text). This program is added under the SR_. A program-call is added automatically to the associated task.
node within a folder with the name assigned within the dialog box. The program has the same name as the folder with the prefixThe program implements the state machine for the http client with the following states:
State |
Description |
---|---|
|
If the command |
|
If the command |
|
The received response is processed and data is stored in the corresponding variables |
|
If the command |
The logic implementing the DNS client is provided in the action DnsClient
. This action is called from the program as long as the value of the variable sServerIp is a null string.