CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Thu Nov 23, 2017 10:30 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Aug 21, 2017 3:48 pm 
Offline

Joined: Mon Aug 07, 2017 3:58 pm
Posts: 3
Hello

I'm a CoDeSys beginner. I already found for some of my previous problems solutions in this forum. Maybe you can help me with my current problem.

As hardware I am using the MTX-Control from Bosch Rexroth. It is a CNC with integrated CoDeSys V3 PLC.

I want to search a file in a directory. If this file is available, I want to create a new folder and copy this file into this folder. Additionally I want to delete an old folder which contains old files.

I've included alread the SysFile.lib but with this lib I can only copy a file, but I cannot search a file, delete one or create a new folder.

Does someone know which library I have to include for this purpose? And how an example code must look like?

I hope you can help me.

Thank you
Martin


Top
   
PostPosted: Mon Aug 21, 2017 4:43 pm 
Offline

Joined: Mon Aug 07, 2017 3:58 pm
Posts: 3
Hello

I found a library which is able to delete folders and copy files.

I added the following two libraries

CAA File 3.5.9.0 and
File Acces 3.5.7.0

And created DirRemove, which I want to use to remove a folder.


Code:
var
DirRemove : File.DirRemove;
End_Var


But if I want to start the simulation on my programming pc I get an error message:

Error during download
15 unresolved references

The device version on the hardware seems to be different from the device version used in the project. Try to up-/downgrade the device in the project to match the actual version on the hardware.

In the messages window I get 15 additional errors:

ID Description
TaskList Unresolve Reference: 'Ticks_GETTICK'
...
and so on

Does someone know what I can do?


Top
   
PostPosted: Thu Aug 24, 2017 4:56 pm 
Offline

Joined: Sun Jul 24, 2011 9:13 am
Posts: 9
Get the update
www.boschrexroth.com/indraworks


Gesendet von iPhone mit Tapatalk


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited