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

Saving Programs Individually

  • Nation
  • August 1, 2019 at 3:41 PM
  • Thread is Resolved
  • Nation
    Typical Robot Error
    Reactions Received
    556
    Trophies
    9
    Posts
    1,937
    • August 1, 2019 at 3:41 PM
    • #1

    Is there a way to save each program in its own file? Like mainline gets placed into mainline.as, opengripper in opengripper.as, etc?

    I want to do it this way, so if I make a change to one program, I don't have to load them all in again.

    I know about the SAVE/P command, but I can't find an easy way to do the above.

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

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

  • kwakisaki
    Reactions Received
    694
    Trophies
    12
    Posts
    4,770
    • August 1, 2019 at 4:36 PM
    • #2

    Anytime you use SAVE, you have to assign your own filename.
    - This on its own, will create an ALLDATA file save.
    - ALLDATA referring to all the data you would require to reload in order to recover it (not an image).

    However, using the:
    SAVE 'filename' = 'program name' (without apostrophes)
    - Will save ALLDATA relative to the specified program name.
    - This will produce a .as file with your filename which contains the Program code, locations, reals and strings associated with the specified program.

    If you want to save more than one program and all relative data then simply:
    SAVE 'filename' = 'program name', 'program name' (without apostrophes)

    If you don't want certain values relative to a program then stipulate which you require by use of the / switch:
    SAVE/P 'filename' = 'program name', 'program name' (without apostrophes)
    - Will save just the program code of the programs specified using a .pg extension.

    If a program contains 'CALLS' to other subroutines, then just by saving the 'Parent' program, will also pull in the CALLED subroutines too.

    ie, a lot of Kawasaki applications use the pg0 program name as the main routine and have calls to subroutines within.
    Just by carrying out a SAVE 'filename' = pg0 (will also pull in the subroutines too).

    View my channel at Industrial Robotics Consultancy Limited - YouTube

  • buontempone
    Reactions Received
    1
    Trophies
    3
    Posts
    12
    • August 1, 2019 at 5:12 PM
    • #3

    If you are using the NotePad++ plugin (which you can find in this topic as an attachment AS plugin for notepad++, you can load directly the single programs from the same .as file by just right clicking on them and selecting the appropriate option.

    Edit: I made a screenshot

    C3brluD.png

    Edited 2 times, last by kwakisaki: 'hyperlink updated by moderator' (August 6, 2019 at 11:42 PM).

  • kwakisaki
    Reactions Received
    694
    Trophies
    12
    Posts
    4,770
    • August 1, 2019 at 7:37 PM
    • #4
    Quote

    you can load directly the single programs from the same .as file by just right clicking on them and selecting the appropriate option.

    Does this load in all the variables associated with the program and also subroutines and their associated variables too, or does this just load in the program code?

    View my channel at Industrial Robotics Consultancy Limited - YouTube

  • buontempone
    Reactions Received
    1
    Trophies
    3
    Posts
    12
    • August 2, 2019 at 1:59 PM
    • #5
    Quote from kwakisaki


    Does this load in all the variables associated with the program and also subroutines and their associated variables too, or does this just load in the program code?

    Just the program code for the selected program, no subroutines or variables values; to load the variables values you have to load everything using the first option in the menu.

  • Kawaguy
    Reactions Received
    1
    Trophies
    3
    Posts
    58
    • August 13, 2019 at 4:28 PM
    • #6

    To save a single program, without sub programs called inside this program use:

    SAVE /P /SEL file = program

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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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