News:

  • July 25, 2026, 09:51:12 AM

Login with username, password and session length

Author Topic: FTPGET Issues  (Read 12935 times)

Bolt

  • Hero Member
  • *****
  • Posts: 598
FTPGET Issues
« on: May 21, 2021, 03:29:04 AM »
I'm trying to implement FTPGET for the first time.  Windows 10 PC hosting FTP via IIS.  Windows Firewall disabled.  PC connected directly to switch with PLC.

Code: [Select]
192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.690 ,"File wasn't found in FTPGET @00000200"

192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.689 ,"Disconnecting FTP..."

192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.689 ,"125 Data connection already open; Transfer starting."

192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.689 ,"FTP data port connected!"

192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.689 ,"Connecting FTP data port..."

192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.689 ,"RETR test.csv.."

192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.688 ,"200 PORT command successful."

192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.688 ,"PORT 192,168,140,51,4,13.."

192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.688 ,"230 User logged in."

192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.688 ,"PASS .."

192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.688 ,"331 Anonymous access allowed, send identity (e-mail name) as password."

192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.688 ,"USER anonymous.."

192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.687 ,"220 Microsoft FTP Service"

192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.687 ,"FTP connected!"

192.168.140.51  Port 29298(0x7272),05/21/21 02:20:57.687 ,"Connecting to FTP server..."

This is trying to place the file on the RAM.  It results in a file being created, but of 0KB.  I have occasionally gotten actual data in the test file, but not with a FTPGET success bit.  Always an error bit.
Trying to do FTPPUT from RAM to server also gives a similar result, a file is transferred, but it says File wasn't found in FTPUT and error bit is set.

Any ideas?



BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6168
  • Yes Pinky, Do-more will control the world!
Re: FTPGET Issues
« Reply #1 on: May 21, 2021, 09:37:18 AM »
We'll set up FTP to IIS and see if we can dupe it. FTP is pretty simple, but there are some nuances between servers that we've had to tweak. I hate to ask, but are running the latest OS? I'm pretty sure a couple of bugs were fixed that sound a little like this.
« Last Edit: May 21, 2021, 10:24:08 AM by BobO »
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: FTPGET Issues
« Reply #2 on: May 21, 2021, 04:53:54 PM »
Yes, I believe I am running the latest update of both Win10Pro and DmD 2.8.3.  I would appreciate someone else's experience seeing if I'm overlooking something or if there's a tweak to the settings to be made.  I'm running everything as simple as possible, no security or access control of any kind.  I basically followed Garry's youtube video here: https://www.youtube.com/watch?v=D6BX5dnut5U


BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6168
  • Yes Pinky, Do-more will control the world!
Re: FTPGET Issues
« Reply #3 on: May 21, 2021, 05:31:52 PM »
I was thinking there was a firmware version later than 2.8.3. Not at the office to confirm, but I think the latest is 2.8.5.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

RBPLC

  • Hero Member
  • *****
  • Posts: 586
Re: FTPGET Issues
« Reply #4 on: May 21, 2021, 05:38:20 PM »
From the firmware revision (2.8.5) notes on the website:

"Fixed a problem in FTPPUT when the 'Use Unique Filename in Remote Directory' option was selected. FTPPUT was not properly handling responses from the FTP Server and would incorrectly report an error even though the instruction worked.

The FmtString function in STRPRINT now properly supports negative timer accumulator values."

I had seen item one as well but hadn't paid it much attention.


Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: FTPGET Issues
« Reply #5 on: May 21, 2021, 06:27:05 PM »
I was thinking there was a firmware version later than 2.8.3. Not at the office to confirm, but I think the latest is 2.8.5.

Okay, so when you posted that question I double checked.  I clicked Help -. Check for Updates... and it replies "An error occurred while reading the product information from the server."

Then I Googled Do-more Designer Download, and clicked through the ADC website to https://www.automationdirect.com/support/software-downloads?itemcode=Do-more%20Designer, which says "Do-more Programming Software : current Version 2.8.3"

I thought I was in the clear.  I will check the computer I am developing on later and see what changes.

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: FTPGET Issues
« Reply #6 on: May 21, 2021, 06:28:28 PM »
From the firmware revision (2.8.5) notes on the website:

"Fixed a problem in FTPPUT when the 'Use Unique Filename in Remote Directory' option was selected. FTPPUT was not properly handling responses from the FTP Server and would incorrectly report an error even though the instruction worked.

The FmtString function in STRPRINT now properly supports negative timer accumulator values."

I had seen item one as well but hadn't paid it much attention.

Where are the release notes posted?  I've only ever read them in the PDF that comes when downloading an update.

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: FTPGET Issues
« Reply #7 on: May 21, 2021, 06:31:01 PM »
I think https://hosteng.com/ is down completely.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6168
  • Yes Pinky, Do-more will control the world!
Re: FTPGET Issues
« Reply #8 on: May 21, 2021, 06:34:37 PM »
I think https://hosteng.com/ is down completely.

It's working for me.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: FTPGET Issues
« Reply #9 on: May 21, 2021, 07:17:47 PM »
Strange.  I can load it on my phone with either WiFi or 4G, but from the PC on "same" network as WiFi, I get:

Secure Connection Failed

An error occurred during a connection to hosteng.com. PR_END_OF_FILE_ERROR

    The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
    Please contact the website owners to inform them of this problem.

I'm just doing what Firefox told me, contacting the website owner!

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6168
  • Yes Pinky, Do-more will control the world!
Re: FTPGET Issues
« Reply #10 on: May 21, 2021, 07:50:35 PM »
Emailed it to you.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: FTPGET Issues
« Reply #11 on: May 21, 2021, 11:57:27 PM »
I have it working now.  I updated device firmware to 2.8.5.  It is now working to my satisfaction.  Sorry for the confusion, always double check (device) firmware version!