FB_FTP_Info

Information about the created FTP server connections can be retrieved with the function block FB_FTP_Info.
Inputs
VAR_INPUT
sNetID : T_AmsNetId:= '';
pList : POINTER TO ST_FTP_ConnInfo;
cbList : UDINT := 0;
bExecute : BOOL;
tTimeout : TIME := T#15s;
END_VAR
Name | Type | Description |
---|---|---|
sNetID | T_AmsNetId | A string containing the AMS network ID of the target device, at which the ADS command is directed. |
pList | POINTER TO ST_FTP_ConnInfo | Pointer address to a variable of type ST_FTP_ConnInfo. This variable can also be an array of the type ST_FTP_ConnInfo. |
cbList | UDINT | Length of the ST_FTP_ConnInfo instance |
bExecute | BOOL | The function block is executed with the rising edge. |
tTimeout | TIME | Indicates the duration of the timeout. |
Outputs
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
nErrID : UDINT;
nEntries: UDINT;
END_VAR
Name | Type | Description |
---|---|---|
bBusy | BOOL | The command is in the process of being transmitted by ADS. No new command will be accepted as long as "bBusy" remains TRUE. |
bError | BOOL | Becomes TRUE, as soon as an error occurs. |
nErrID | UDINT | Returns the corresponding error code in the event of a set bError output. |
nEntries | UDINT | Number of existing connections. |
Requirements
Development Environment |
Target Platform |
PLC Libraries to include |
---|---|---|
TwinCAT v3.0 Build 3102 |
PC or CX (x86) |
Tc2_FTP |