Download NC Program File from Client API

Posted By tshelley 7/10/2015 2:23:44 AM
Add to Favorites0
Author Message
tshelley
 Posted 7/10/2015 2:23:44 AM
Forum Expert

Forum Expert - (956 reputation)Forum Expert - (956 reputation)Forum Expert - (956 reputation)Forum Expert - (956 reputation)Forum Expert - (956 reputation)Forum Expert - (956 reputation)Forum Expert - (956 reputation)Forum Expert - (956 reputation)Forum Expert - (956 reputation)

Group: Forum Members
Last Active: 7/17/2015 2:23:31 AM
Posts: 2, Visits: 13
956
Hi All,

I am relatively new to MTConnect, and was wondering if there was anyway to download the full NC program. I am using the Fanuc_30i controller and Focas 2, i know there is a Focus command to download the program. Do i need to add some code to the adapter to call the specific .dll Focus function to download the file?

Any help would be greatly appreciated,

Tim
tbm0115
 Posted 8/24/2015 12:47:59 PM
Supreme Being

Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)

Group: Forum Members
Last Active: 2/26/2017 4:01:15 PM
Posts: 17, Visits: 125
I think that might be out of the scope of MTConnect. Something like this might be best applied to a client application. Perhaps a Windows Service that monitors the MTConnect stream and triggers the Fanuc download routine based on conditions of the machine? I can see validity in this type of setup if a crash occurs, which can be followed through various MTConnect Conditions.



What is your purpose for such a function?



-Trais


Trais
tbm0115
 Posted 11/30/2015 11:00:20 AM
Supreme Being

Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)Supreme Being - (7,128 reputation)

Group: Forum Members
Last Active: 2/26/2017 4:01:15 PM
Posts: 17, Visits: 125
This post is probably dead now, but I've come up with a relevant solution in my own shop. Although it's not exactly what the OP was looking for, the general concept still applies.

The outcome of my project was to provide a color coded display of an EIA (GCode) program. The colors would represent various classifications of the codes (ie Coolant, Spindle, Comments, etc.) and also modal lapses (ie G00 vs G01, which could be Not Cut vs Cut respectively).

Here are the very general steps:

  1. Organize and Store "Master" EIA programs in a central location on the server (ie An admin can access the folder path from almost any computer in the facility)
  2. Install a web service that can provide access to the folder
    1. ie. You create a local website on your server and can access it via http://server:8080/
    2. cont. Place a PHP file that returns the raw text of the specified EIA file name using the following URL: http://server:8080/EIAReader.php?filename=PRGRM_10
  3. Setup a webpage to query the MTConnect stream for the program file name
    1. ie. http://agent.mtconnect.org/current?path=//DataItem[@type="PROGRAM"]
  4. Send the filename to the PHP file, which searches the "Master EIA Folder" to find the MTConnect-provided program name. The PHP then reads and returns the raw text of the file that it finds back to the webpage.
  5. The webpage now has full-read access to the EIA program remotely.
This same concept could be applied to a desktop application and heavily relies on the idea of having a managed program repository on your server. Yet another way that MTConnect can induce positive change in the workplace.


In my implementation, we already have an internal website for Setup Sheet documents, so I included a web service using ASP.NET to find the correct program and another service to provide my webpage with access to the MTConnect stream.



Trais
11/30/2015 11:56:27 AM by tbm0115

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top

Advertisements