Programming
BC9000 and BC910050 Version: 4.0.0
VAR_INPUT
bStart:BOOL;
sSntpServer:STRING(15);
tTimeOut:TIME;
bOpen: A positive edge starts the function block
sSntpServer: SNTP server entry. If an empty string is entered, the time protocol is used (UDP port 37)*.
tTimeOut: TMOut after which the process is to be terminated
VAR_OUTPUT
bBusy:BOOL;
bError:BOOL;
iErrorId:WORD;
tTime:DT;
cCurrSntpServer:STRING(15);
bBusy: The function block is active as long it is TRUE.
bError: Error bit.
iErrorId: Error number.
tTime: Time and date.
sCurrSnptServer: IP address of the SMTP server
Return parameter iErrId Meaning
0 No error
> 0 Error number (#not documented#)
Download sample: (https://infosys.beckhoff.com/content/1033/bc9000/Resources/zip/4351410059.zip)