1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. Fanuc Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Copy file from RD to FD

  • SD-Matic
  • May 22, 2023 at 9:31 AM
  • Thread is Unresolved
  • SD-Matic
    Reactions Received
    2
    Trophies
    3
    Posts
    8
    • May 22, 2023 at 9:31 AM
    • #1

    Hi everyone,

    I use a KAREL routine to write some logs into a file. This file is stored in the RD memory area (really much faster than FD). But, as nothing is perfect :face_with_tongue: , RD is volatile, and so I need to daily copy my file from RD to FD.

    Once again, FANUC's world is not perfect, and KAREL doesn't allow this :

    Code
    fileFastLog : FILE
    fileSavedLog : FILE
    
    fileSavedLog = fileFastLog 

    Do you know how to copy a file from a memory zone to another one ?

    Greetings,

    Seb

  • SD-Matic May 22, 2023 at 9:40 AM

    Changed the title of the thread from “Copy file from Rd to DF” to “Copy file from RD to FD”.
  • MOM May 22, 2023 at 10:17 AM

    Approved the thread.
  • PnsStarter
    Reactions Received
    92
    Trophies
    6
    Posts
    330
    • May 23, 2023 at 11:54 AM
    • #2

    Hi SD-Matic,

    Quote

    fileFastLog : FILE

    fileSavedLog : FILE

    fileSavedLog = fileFastLog

    this won't work . The data type 'FILE' can't be used like you have tried.

    You have to use a builtin routine :

    COPY_FILE

    Purpose: Copies the contents of one file to another with the overwrite option

    Syntax : COPY_FILE(from_file, to_file, overwrite_sw, nowait_sw, status)

    Code
    e.g.
    
    from_file = 'RD:mySource.dt'
    
    to_file = 'MC:myTarget.dt'
    
    COPY_FILE(from_file, to_file, true, false, status)
    
    IF status <> o THEN ...
    
    ...
    Display More

    best regards

    Backdate/TP-Tools: A small collection of tools that simplify the commissioning and programming of Fanuc robots. (github.com)

  • SD-Matic
    Reactions Received
    2
    Trophies
    3
    Posts
    8
    • May 23, 2023 at 5:52 PM
    • #3

    Hi PnsStater,

    Thanks for your answer. I didn't know this routine, it will perfectly help me.

    Have a nice day !

    SD

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Similar Threads

  • CRX Plugin Error

    • crblake
    • September 29, 2022 at 4:52 PM
    • Fanuc Robot Forum
  • ABB S4c+ M2000 FLASH DISK 64MB don't work after clone ( the original and the clone)

    • paulofutre10
    • April 15, 2021 at 6:12 PM
    • ABB Robot Forum
  • it's simple program with Karel to move a fanuc robot 2000iA avec un contrôleur RJ3iB.

    • joH
    • March 21, 2023 at 1:06 PM
    • Fanuc Robot Forum
  • Kuka tool no.3: Kuka Archiving Automation

    • asimo
    • May 1, 2009 at 7:53 PM
    • Manuals, Software and Tools for KUKA Robots
  • copy file to FTP site via RAPID IRC5

    • Ruud
    • August 6, 2020 at 8:56 AM
    • ABB Robot Forum
  • How to Copy .VR file

    • JunaidAyaz
    • November 28, 2020 at 8:45 AM
    • Fanuc Robot Forum
  • User defined log file in KUKA

    • chickenkiller
    • November 21, 2020 at 10:18 PM
    • KUKA Robot Forum
  • How to copy a directory in the KUKA Explorer?

    • florog
    • November 8, 2019 at 11:30 AM
    • KUKA Robot Forum
  • Determen what WoV version that´s been used for a project

    • edda
    • September 27, 2019 at 10:33 PM
    • KUKA Robot Forum
  • RFP - karel program to copy/delete programs

    • mts04a60
    • May 2, 2019 at 3:30 AM
    • Fanuc Robot Forum

Tags

  • Fanuc
  • karel
  • file control
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download