FTP
10.2, PLBCMP GUI Only
The FTP ( File Transfer Protocol ) object allows a PL/B program to connect as a ftp client to a ftp server and execute ftp commands to manage and transfer files. The FTP object has a full set of commands implemented as PL/B methods to provide feature-rich development capabilities. To define a FTP, use the following statement format:
|
|
|
|
|
Where:
label
Optional. A Data Label.
%
Optional. Denotes the item as being GLOBAL.
^
Optional. Denotes the item as being a POINTER.
arraysize
Required. An integer decimal constant, CONST variable, or EQUATEd value indicating the number of array items.
Flags Affected: NONE
Note the following:
The FTP object is a runtime instance component that can be used directly without having to be created. There are no properties, events, or instructions for a FTP object. All interaction with the FTP object is through methods.
The FTP object exists as an internal PL/B object and it is referenced by a label for a FTP object declared in a PL/B program. Even though there may be multiple or different program references declared in a PL/B program, all of the PL/B program references access only one internal FTP object for a runtime instance.
The FTP object is implemented to include a full set of ftp commands that allow bi-directional file transfers and other ftp client-server management commands. All of the ftp commands are implemented by methods that are named as follows:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
See Also: Object Definitions, Object Output Instructions
![]() |