Support Forums
FTP remote directories

Hello,
I would like to write data to a sub directory on an FTP server but can not get it to write to below top level I have tried 2 methods:

1 DO{COPYD job=subdir merge=N ID=1 start=NEW dest=ftp://user:pw@xxxx.co.nz/httpdocs/}

2 DO{COPYD merge=N ID=1 start=NEW dest=ftp://user:pw@xxxx.co.nz/httpdocs/subdir/}

The program will not run with either of these.
Also it would be nice if it would append to a remote file but this does not seem possible also?

Any help would be appreciated.

Hello, I would like to write data to a sub directory on an FTP server but can not get it to write to below top level I have tried 2 methods: 1 DO{COPYD job=subdir merge=N ID=1 start=NEW dest=ftp://user:pw@xxxx.co.nz/httpdocs/} 2 DO{COPYD merge=N ID=1 start=NEW dest=ftp://user:pw@xxxx.co.nz/httpdocs/subdir/} The program will not run with either of these. Also it would be nice if it would append to a remote file but this does not seem possible also? Any help would be appreciated.

Good morning MLCarter,

1/ writing to directories
You have to include the file name
e.g.
DO{COPYD job=subdir merge=N ID=1 start=NEW dest=ftp://user:pw@xxxx.co.nz/httpdocs/Data.csv}

2/ Append.
Appending data is a function of the server receiving the data not the device that sends it (The DT80).
Most servers actually don't have the ability to append data and there in no way for the sending device to detect if the server has the ability to append files so the append data option is not supported when sending data.

Cheers,
Roger

Good morning MLCarter, 1/ writing to directories You have to include the file name e.g. DO{COPYD job=subdir merge=N ID=1 start=NEW dest=ftp://user:pw@xxxx.co.nz/httpdocs/Data.csv} 2/ Append. Appending data is a function of the server receiving the data not the device that sends it (The DT80). Most servers actually don't have the ability to append data and there in no way for the sending device to detect if the server has the ability to append files so the append data option is not supported when sending data. Cheers, Roger

Thnx Roger. but will this work?

DO{COPYD job=subdir merge=N ID=1 start=NEW dest=ftp://user:pw@xxxx.co.nz/httpdocs/subdir/Data.csv}

For FTP append the client(logger) has to instruct server to put point to the end of the file.

Thnx Roger. but will this work? DO{COPYD job=subdir merge=N ID=1 start=NEW dest=ftp://user:pw@xxxx.co.nz/httpdocs/subdir/Data.csv} For FTP append the client(logger) has to instruct server to put point to the end of the file.

Good afternoon MLCarter,

1/ Unloading data
So,
the job running in the DT80 is called subdir (job=subdir)
You do not want data from other schedules to be merged into a single file (merge=N)
The user ID is 1 (ID=1)
You only want to unload data collected since the last unload (start=NEW)
And the destination for the data is dest=ftp://user:pw@xxxx.co.nz/httpdocs/subdir/Data.csv

That should work and create a file called data.csv in your path.
You can create custom file names if you wish.

2/ Merging files.
Yes we know how the process work but there is no method in the FTP process to determine if the server supports merging of file.
Not all servers support the merge function and is some one specifies Merge and the server doesn't support the function they can loose the data.
So we play it safe with a process that will work with all servers.

Cheers,
Roger

Good afternoon MLCarter, 1/ Unloading data So, the job running in the DT80 is called subdir (job=subdir) You do not want data from other schedules to be merged into a single file (merge=N) The user ID is 1 (ID=1) You only want to unload data collected since the last unload (start=NEW) And the destination for the data is dest=ftp://user:pw@xxxx.co.nz/httpdocs/subdir/Data.csv That should work and create a file called data.csv in your path. You can create custom file names if you wish. 2/ Merging files. Yes we know how the process work but there is no method in the FTP process to determine if the server supports merging of file. Not all servers support the merge function and is some one specifies Merge and the server doesn't support the function they can loose the data. So we play it safe with a process that will work with all servers. Cheers, Roger

Sorry I'm completely new to this, just a couple more questions

In the uploaded file the date/time stamp is in the eg format

2012/07/19 15:00:00.01,n

I would like to have it dd/mm/yyyy but P31=1 doesn't help
Also can the TZ be dropped?

also I would like to drop decimal places in data eg,12.349594
P41=2 doesn't seem to help

I have these in the job file before the schedules
eg

'3=allow sleep when power on
P15=0
'DD/MM/YYYY
P31=1
'HH:MM
P39=2
'number decimal places doesn't work
'P41=2

LOGON
'==========================================================
'Schedule A
'Logs 5 Mb of data, overwrites when full
'Logs every 60 minutes
'==========================================================
RA(DATA:OV:5MB)3600s

Thnx for any help, Mark

Sorry I'm completely new to this, just a couple more questions In the uploaded file the date/time stamp is in the eg format 2012/07/19 15:00:00.01,n I would like to have it dd/mm/yyyy but P31=1 doesn't help Also can the TZ be dropped? also I would like to drop decimal places in data eg,12.349594 P41=2 doesn't seem to help I have these in the job file before the schedules eg '3=allow sleep when power on P15=0 'DD/MM/YYYY P31=1 'HH:MM P39=2 'number decimal places doesn't work 'P41=2 LOGON '========================================================== 'Schedule A 'Logs 5 Mb of data, overwrites when full 'Logs every 60 minutes '========================================================== RA(DATA:OV:5MB)3600s Thnx for any help, Mark

Good afternoon Mark,

Don't apologize for asking question, that's how we learn and these are all really good questions.

Add the format option to the CopyD command
Format=Free should do the trick. You can then use the parameters etc to control the output.
You should add /T to add automatic time stamping of data and /D for the date.
You can also use the FF channel option to set the data format for individual channels

e.g 1V(FF2) for 2 decimal places or 1V(FF0) for no decimal places.

Cheers,
Roger

Good afternoon Mark, Don't apologize for asking question, that's how we learn and these are all really good questions. Add the format option to the CopyD command Format=Free should do the trick. You can then use the parameters etc to control the output. You should add /T to add automatic time stamping of data and /D for the date. You can also use the FF channel option to set the data format for individual channels e.g 1V(FF2) for 2 decimal places or 1V(FF0) for no decimal places. Cheers, Roger

Just one more today.
I can FTP into jobs/<jobname> directory on drive A and see PROGRAM.DXC. Can I copy a modified file direct to here then re-boot?

Just one more today. I can FTP into jobs/&lt;jobname&gt; directory on drive A and see PROGRAM.DXC. Can I copy a modified file direct to here then re-boot?

Good afternoon Mark,

Yes but the process is a bit different
FTP the file to a known location on the DT80
Then use the RUN command to load and run the code

For example
FTP the text file (DTCode.TXT) containing the DT code to the root of A drive.
Open a command window and send the command Run"a:\DTCode.txt"

Cheers,
Roger

Good afternoon Mark, Yes but the process is a bit different FTP the file to a known location on the DT80 Then use the RUN command to load and run the code For example FTP the text file (DTCode.TXT) containing the DT code to the root of A drive. Open a command window and send the command Run&quot;a:\DTCode.txt&quot; Cheers, Roger

Hello again Roger,

I uploaded a job file with FTP into the jobs dir but can not get it to run. Gives E32 (file not found)
eg
DT80> RUN "B:\JOBS\BALLANT3.DXC"
E32

I tried A: but it also would not work

what have I missed?

Hello again Roger, I uploaded a job file with FTP into the jobs dir but can not get it to run. Gives E32 (file not found) eg DT80&gt; RUN &quot;B:\JOBS\BALLANT3.DXC&quot; E32 I tried A: but it also would not work what have I missed?

Hi Mark,

Did you try it with a TXT file extension?

Cheers,
Roger

Hi Mark, Did you try it with a TXT file extension? Cheers, Roger
50
9
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft