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

Help regarding Fanuc FTP

  • Rouge
  • April 13, 2024 at 1:47 PM
  • Thread is Unresolved
  • Rouge
    Trophies
    1
    Posts
    7
    • April 13, 2024 at 1:47 PM
    • #1

    Good morning everyone,

    Does anyone have experience with Fanuc FTP? file transfer protocol.

    I need to create a procedure for which the robot automatically fetches one file at a time from an external memory (A memory card inserted via adapter into the PCMCIA port), executes it and deletes it from the Teach pendant, before getting another one etc. The robot and controller are as follows: LR mate 200ic, R30iA

    Would anyone have any idea how to do this and could help me or give me some advice?

    Thanks everyone in advance

  • 95devils April 13, 2024 at 2:40 PM

    Approved the thread.
  • ncavalheiro13
    Reactions Received
    6
    Trophies
    2
    Posts
    37
    • April 13, 2024 at 3:07 PM
    • #2

    Hi,

    You must do it in Karel ,

    something like this :

    BEGIN

    TP_CLS

    SET_REAL_REG(4,0,STATUS)

    Opened = FALSE

    OPEN FILE file_var ('RO','C1:SEEQ.DT')

    IF (IO_STATUS(file_var) <> 0 ) THEN

    CLR_IO_STAT(file_var)

    WRITE TPPROMPT('*** Erro ao aceder ao ficheiro ***',CR)

    ELSE

    Opened = TRUE

    ENDIF

    IF Opened = TRUE THEN

    READ file_var (X, Y, Z)


    WRITE (' ',CR)

    WRITE (' ',CR)

    WRITE(' Powered by ',CHR(141),CHR(155),CHR(52),'Introsys',CHR(143),CHR(155),CHR(127),CR)

    WRITE (' ',CR)

    WRITE (' Dados recebidos : ',CR)

    WRITE (' Valor de X = ', CHR(139), X::9::5, ' mm ',CHR(143), CR)

    WRITE (' Valor de Y = ', CHR(139), Y::9::5, ' mm ',CHR(143) , CR)

    --WRITE (' Valor de Z = ', CHR(139), Z ,CHR(143) , CR)


    SET_REAL_REG(1,X,STATUS)

    SET_REAL_REG(2,Y,STATUS)

    SET_REAL_REG(3,Z,STATUS)

    SET_REAL_REG(4,1,STATUS)

    CLOSE FILE file_var

    ENDIF

  • Nation
    Typical Robot Error
    Reactions Received
    523
    Trophies
    9
    Posts
    1,903
    • April 13, 2024 at 4:44 PM
    • #3

    You will need to setup a client tag. That is what the C1 is in the open file command above. You set the client tag to read from an FTP server. However, you will need to copy the file over, not read it.

    Create 2 Karel programs. One to copy the file from the C1: "drive" to the MD: drive.

    The second to delete the file that was loaded to the MD: drive.

    Call the Karel programs at the beginning and end if a calling program. The loading karel program could store the name of the loaded program into a string register, and your call program could use that to call indirectly.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

    Edited once, last by Nation: Misread where the files were stored. (April 13, 2024 at 4:51 PM).

  • vshnths
    Trophies
    1
    Posts
    5
    • May 2, 2024 at 11:48 AM
    • #4

    Hi,

    I would like to do the inverse of this. I would like to output a force log (.csv file) generated by the robot to an external harddisk or PC connected to the controller via ethernet or USB connection using KAREL. Currently I am able to write it to a USB stick connected to UD1:. I would like to eliminate using a USB stick as that creates more operation issues.
    How can I write to a specific location in a laptop or an external harddisk connected via USB or FTP connection, whichever is easier?

  • Nation
    Typical Robot Error
    Reactions Received
    523
    Trophies
    9
    Posts
    1,903
    • May 2, 2024 at 2:13 PM
    • #5

    Setup a client tag for an FTP connection, and write to C1, or whichever one you setup (there are 8). The client tag will act as a device location.

    You can setup a client tag in the host comm area.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

  • Boz
    Posts
    1
    • May 25, 2024 at 6:06 PM
    • #6

    Hi
    Does this require User Socket Messaging being installed on the pendant.

    Thanks

  • Nation
    Typical Robot Error
    Reactions Received
    523
    Trophies
    9
    Posts
    1,903
    • May 25, 2024 at 8:06 PM
    • #7
    Quote from Boz

    Hi
    Does this require User Socket Messaging being installed on the pendant.

    Thanks

    Nope. A FTP server is in the basic install.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

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

  • How to conect to the robot FTP server?

    • padin33
    • June 28, 2022 at 9:30 PM
    • Fanuc Robot Forum

Tags

  • Fanuc
  • FTP
  • R30iA
  • LRMATE-200iC
  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