Jump to content

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


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 post
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 post
Share on other sites

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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...