Author Topic: Auto Load Files From External Storage  (Read 1585 times)

0 Members and 1 Guest are viewing this topic.

Offline kwakisaki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 30
  • -Receive: 102
  • Posts: 701
Re: Auto Load Files From External Storage
« Reply #15 on: October 08, 2018, 08:11:11 PM »
When you create these programs 'offline', I assume you are using a text editor?
- Are you pressing 'enter' after the .END before saving the file prior to loading in, if not try this.

Offline Nzhuhu

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 51
Re: Auto Load Files From External Storage
« Reply #16 on: October 09, 2018, 01:05:34 AM »
You could use a PC Program to monitor for which program is in use and handle the delete/load....that would be my direction to take.
- TASK or WHICHTASK should be used to monitor the status of the stepper (motion program in use).
- You can use DELETE directly in the motion program or a derivative of this MC DELETE in a PC Program.
- NLOAD command will automatically load files from the USB (E Controller) or PCMCIA (C/D Controller) into the Robot Memory.....reals, locations, programs etc.

Have a read of those........I know the NLOAD command works as I have used it before.
Hope this helps.............

Please correct if i am wrong. PC Program is an commmand which telling robot to run the Code from external Storage or is it a funtion I have to manualy choose the list of command in it ? Could we make it more simple as making the robot run from External Storage and the CMOS Ram will act as the bridge which feeding step to CPU and planning next step ready for CPU ? Our only problem is Limited internal Storage, I really want to make the Internal Storage stop storing Code File. Are we call this action is " Online Movement " which the robot get feed directly from External Storage, no External no more run.

Offline kwakisaki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 30
  • -Receive: 102
  • Posts: 701
Re: Auto Load Files From External Storage
« Reply #17 on: October 09, 2018, 05:14:54 PM »
PC Program is a completely independent program that can be executed irrespective of whether the robot is executing motion instructions.
- It is referred to generally as 'asynchronous', and in simple terms it is like your antivirus on a PC (it operates in the background, independent to your main motion programs, but programmed to do a task).
- An basic example would be, constantly monitor for a button to be pressed and if that button is pressed - turn on a light on/off.
- This could be executed on power up of the Controller, even though the robot is not moving or even if it is under emergency stop.

If you 'drip feed' commands from an external source, you will always introduce latency during the process, so until Kawasaki increase the internal storage, this will always be a question I think.
- Most standard industrial processes, do not require substantial amounts of memory to achieve the result and I think the Kawasaki's are more engineered to this whereas in comparison to other Manufacturers (Kuka come to mind) have a more broad application base for what they produce.

Regarding this specific problem with the F Controller, I have tested it also and receiving the same results, on E Controller there is no problem.
I think you need to contact your distributor as it appears either:
- This is a software bug.
- Or there is a new command structure, which has not been included in the latest revision of AS Manual.


Offline griphand

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 27
Re: Auto Load Files From External Storage
« Reply #18 on: October 10, 2018, 06:42:58 AM »
Hello,

Thank you for testing it.

I tried to use the drive name 'USB1\' in the file name, same result -- file not loaded.
Removed all other files from the drive, could not help.
I made a screenshot before load to activate the USB drive (I noticed the screenshot is made on USB1 always.) -- file not loaded.
It seems like an sw bug or the 'external storage' is something else.

Offline Nzhuhu

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 51
Re: Auto Load Files From External Storage
« Reply #19 on: October 10, 2018, 06:53:57 AM »
Thank you Kwakisaki,

Now i know that Pc Program command will not help anything on large code file. Back to our problem, the code file is too large to be saved on internal storage and we can not drip communication ( online feed code machine like mach3 ), or DNC - MME box ( live feed data to vintage fanuc cnc system ).  We only have solution is divide large file to many small parts save on external storage such as usb or FDD and manual load-delete on  internal storage...is there an command at the end of part 1 to tell it auto delete part 1 and load part 2 and auto execute?

Offline kwakisaki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 30
  • -Receive: 102
  • Posts: 701
Re: Auto Load Files From External Storage
« Reply #20 on: October 12, 2018, 07:27:08 AM »
If you have a look at the example Kawaguy kindly posted on page[1], that's exactly what the process is.
The issue you will likely encounter is due to the age/technology of your equipment only having 1Mb of SRAM available, would limit your no. of steps and the only way of downloading/replacing the data is the FDD (which will be very slow indeed).
Saying that though, if your process does not happen to use up all the SRAM, then it shouldn't be an issue.
- But when it comes to machining, then you are looking at many steps which need the storage.

You can still of course drip information, but this would need to be carefully managed and controlled to prevent 'pausing' during the main process.

Offline Nzhuhu

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 51
Re: Auto Load Files From External Storage
« Reply #21 on: October 14, 2018, 08:33:32 AM »
Dear Kwakisaki,

I would love to learn and read Kawaguy's code but please accept my apology for lacking of knowledge. I am trying to dig in my AD manual to find out the way to Run the mother program which will tell the controller to copy Code part 1 to Sram - then execute the part 1 - delete part 1 in Sram when the code is done - copy part 2 - execute - delete part 2 - and so on. If i can figure it then we do not have to copy and paste it manually.

Easier to understand is we Double Click on Auto Run when install some thing on PC. Even MS-Dos can do that kind of funtion but I do not remember how.

Thank you Kwakisaki,
Trung

Offline kwakisaki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 30
  • -Receive: 102
  • Posts: 701
Re: Auto Load Files From External Storage
« Reply #22 on: October 14, 2018, 07:53:02 PM »
AD Controllers were more designed to enter programs using the Teach Pendant, this was due to the technology at the time.
You also have a terminal editor built into the Display by use of the removable keyboard to enter programs using AS Programming Language.
Remembering back, they also introduced a terminal editing software called KCMon (which I think could also be used when loaded on a PC to write AS programs on the Controller), I think it used Parallel Communication via the printer port, but cannot be 100% sure.
- I will try and locate further information on that and post if I can find any.

You can also opt to use a text editor in the PC, create the programs offline, transfer them to FD and then load them into the Controller that way.