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

:LS file or .TXT File to modify as .TP

  • ravitejagali
  • September 7, 2018 at 6:36 AM
  • Thread is Resolved
  • ravitejagali
    Trophies
    3
    Posts
    143
    • September 7, 2018 at 6:36 AM
    • #1

    Is there a way to convert .Ls file to .TP file without using external softwares like robguide or other.

    I send program to controller using ftp, batch commands which takes programm from other directory and make automatically. all robots are equipped with ascii uploader s/w package.

    I get .TP Programm with some Name, this Name i Need to Change it to CALL:Programm Name and sent it to Robot using ftp Batch program.

    Edited once, last by rAviteja_g (September 7, 2018 at 9:29 AM).

  • Nation
    Typical Robot Error
    Reactions Received
    529
    Trophies
    9
    Posts
    1,910
    • September 7, 2018 at 2:48 PM
    • #2

    I am having trouble following what you are trying to do. Do want the robot to indirectly call the program you load?

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

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

  • Racermike123
    Reactions Received
    13
    Trophies
    4
    Posts
    901
    • September 8, 2018 at 6:18 PM
    • #3

    Depending on what model you have you can load an LS file. The problem I see you having is calling a program that doesn't exist because you don't have a name for it.

  • ravitejagali
    Trophies
    3
    Posts
    143
    • September 10, 2018 at 9:31 AM
    • #4

    Hallo Nation, Racermike123,

    This is how it goes, The robot programm(.TP programm), is placed in serever. And throuh barcode scanner I get path, After getting path I go to path and get robot .TP program and through ftp & batch programm I send this programm to robot.

    Now the problem is, the progrm name is not same every time_ for each work piece diffrent name, so that the operator knows it is correct program, but i call run program with same name_ to this process i need to change name.

    Controller side settings are all okay, Racermike123 The client access level is kept to 8 that means it is in installation. There is no problem with with level i think.

    My try: I tried to send normal .tp programm from local (My Pc) to remote(Robot), it worked out. And the same programm i changed name and tried to send, it got worked out and as susspected it didnt changed name while the .tp file contains ist name on the first line.
    So I got .ls file and changed the first line name to new name and this file i need to convert it in to .tp file if try to bin upload it shows file operation failed and file error.

    Edited once, last by rAviteja_g (September 10, 2018 at 9:35 AM).

  • dha
    Reactions Received
    28
    Trophies
    6
    Posts
    397
    • September 10, 2018 at 10:26 AM
    • #5

    When I'm sending programs to robot with different names I also send additional text file that contains program name e.g. 'PROGRAM_1'.
    In MAIN program I first call RD_PRG_NM karel program that reads text file from PC and stores name into SR(x).
    After that I use instruction CALL SR(x).

    Edited once, last by dha (September 10, 2018 at 12:39 PM).

  • ravitejagali
    Trophies
    3
    Posts
    143
    • September 10, 2018 at 12:36 PM
    • #6
    Quote from dha


    When I'm sending programs to robot with different names I also send additional text file that contains program name e.g. 'PROGRAM_1'.

    In MAIN program I first call RD_PRG_NM karel program that reads text file from PC and stores name into SR[x].

    After that I use instruction CALL SR[x].

    Karel Program? I have never used Karel, could you have any code for me.?

  • HawkME
    Reactions Received
    568
    Trophies
    10
    Posts
    3,268
    • September 10, 2018 at 3:33 PM
    • #7

    If you don't want to use karel you can also send the name directly to a string register.

    Sent from my SM-G930V using Tapatalk

  • Nation
    Typical Robot Error
    Reactions Received
    529
    Trophies
    9
    Posts
    1,910
    • September 10, 2018 at 3:33 PM
    • #8

    I do something similar for one of my customers, but I use another TP program to do it. I send over 2 programs, one that sets the program name string, and the actual program.

    Code
    : CALL PROG_NAME_SET ;
      : CALL SR[1] ;

    In this program, you would hardcode the name of the program that needs to be called.

    Code
    : CALL SR1_SET("MY_GREAT_PROGRAM") ;

    String registers can't be set directly in TP, so I use this argument workaround.

    Code
    :  SR[1]=AR[1] ;

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

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

  • ravitejagali
    Trophies
    3
    Posts
    143
    • September 10, 2018 at 4:39 PM
    • #9

    It looks better solution but the problem is how do u get AR(1) or i have diffrent no of progrm in server, with barcode scanner i get path(server where robot program is ) and then i go tot hat path, change name and send it to robot. Here problem is first i get .ls programm.

    To change name inside .ls program is easy while first line i can delete and keep my text or programm name. But here while converting .ls to .tp file is difficult using batch, (ascii to bin)

  • ravitejagali
    Trophies
    3
    Posts
    143
    • September 11, 2018 at 7:50 AM
    • #10

    We do it form PLC side, from HMI load programm is selected and by that the batch programm gets activated changes program, as you said in which form do i getthis string from PLC.? Could yu please.

    Now first send programto robot (by using ftp) --->then change name using karel program (But how do i fetch name uisng Input, I mean GI or some other way?)

    Edited once, last by rAviteja_g (September 11, 2018 at 9:21 AM).

  • ravitejagali
    Trophies
    3
    Posts
    143
    • September 14, 2018 at 10:15 AM
    • #11

    Hey Hi,

    Here Main is .TP prograem, Prog_NAME_SET and SR1_SET are karel program. What does AR[1] contains?

    Quote from Nation


    I do something similar for one of my customers, but I use another TP program to do it. I send over 2 programs, one that sets the program name string, and the actual program.

    Code
    : CALL PROG_NAME_SET ;
      : CALL SR[1] ;

    In this program, you would hardcode the name of the program that needs to be called.

    Code
    : CALL SR1_SET("MY_GREAT_PROGRAM") ;

    String registers can't be set directly in TP, so I use this argument workaround.

    Code
    :  SR[1]=AR[1] ;
  • pdl
    Reactions Received
    266
    Trophies
    9
    Posts
    1,508
    • September 14, 2018 at 7:48 PM
    • #12

    "MY_GREAT_PROGRAM"

  • bagged2drag
    Trophies
    3
    Posts
    79
    • September 14, 2018 at 11:25 PM
    • #13

    You can also set up a bar code scanner and hook it to the robot through a usb connection and scan it. Set up a webpage on the pendent with an active x button to modify the string register. Press enter and scan the barcode. It will write the scanned string to a string register. You can set up your main program to call that string register. It's been some time since I have messed with this. You could also write a Karel program to do the same thing and then you wouldn't need to interact with the pendent at all.

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
  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