Dear Community User! We are updating our platform to a new system.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

FTP File list IL_FTPGetAsync

FTP File list IL_FTPGetAsync

stefanAT_ctrlX
New Contributor

A customer uses the IL_FTPGetAsync from the CXA_SocketComm library. Works fine.

But he needs now a solution to get before a list of the files on the server.

How to get a list of the files (filenames) of the directory of his ftp server ?

 

4 REPLIES 4

Sgilk
Frequent Contributor

@stefanAT_ctrlX ,

I do not know of a great solution within the PLC. One option would be to browse the file structure in another application, like Node-RED, and write the result to a datalayer node which you can reference in the PLC logic.

HmiGuide
Community Moderator
Community Moderator

I did a example some years ago, maybe I can find it again, but this needs some time.
The problem for the FTP Listing is, that the listing returns a string.
There are many different string format, which means it is hard to create a general function which works with every existing format. But you can adapt the example to your specific format.

HmiGuide
Community Moderator
Community Moderator

I attached an PLC example project, created for IndraWorks 13 some years ago. I converted it to ctrlX PLC 2.6, without any adaption of the cod
I'm not able to verify if it is working, while I do not have a valid test environment. Unzip it, to open it in PLC Engineering.

Thank you @HmiGuide .  Customer will check and we will give feedback here.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist