Jump to content

"Move/Copy File" Ladder function return status is always 1


ORSO2001

Recommended Posts

Dear,
I'm trying to copy a file from a DOK to the SD; the status stay always at 1 and never change (and the file is not copied). The function is "called" by a HMI button that set a bit...in the same ladder rung this bit is reset...then is called just one time.

If something in the UDFB was not set properly I should had a negative value...but this doesn't happens.  What can be?

thnaks

Link to comment
Share on other sites

Hi NoamM,

Just to be clear I am using static values in each field ...not tags...the file that i want copy from DOK to SD is not inside a folder...and are:

field A -> Copy Move File Enum.CopyDOKFileToSD

field B -> #"Media/Docs/"

field C -> #"960XXX.pdf"

field D -> #""

field E -> #"960XXX.pdf"

field F -> #1

Link to comment
Share on other sites

  • MVP 2023

Hi Orso, have you checked that the microSD is fully in place OK?   Have you tried another card?   Size/Speed/Capacity?   Over the years I have had some that were faulty and needed replacement.....no amount of using manufacturer's programs would get them going.

cheers, Aus

Link to comment
Share on other sites

Hi Ausman,

I think that the SD is ok because the DT that I am using are stored well and also the DOK is ok because if I move the files using the "file browser" this works fine...then is something that is happens when I call this specific UDFB.

I am sure that I am wrong something but I don't understood what...later I will check...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.