How do I get my custom controller to output the X,Y, & Z coordinates to each line of g-code? UPG Editor is not helping me any.
To output the x,y,z for the acd file, you can add an "!" after the x,y, in the upg. This will force an output for each line.
This will need to be done at the Drill Cycle and Continue Drilling Locations.
Can you supply a little more info? What have you done to this point? What controller? Mill, lathe, etc? Can you provide the files you are using in the UPG?
Here are the files I am using. This is for drilling only. I need the controller to output the same as it did on the 19878 tubesheet.txt file is. I had this setup once before and now I am unable to get it back that way through the UPG editor. All I need is for each line of code to show the x,y, & z coordinates for each action.
I think what you are looking for is this area.
When you add the "z-depth" to this section for continue drilling, it will output the x,y,z, location while in the drilling cycle. If the holes are in a grid pattern, the previous x or y position is used in straight line moves. This controls the output while in a Drilling cycle.
This is all I changed on the .src you provided earlier to ouput the code in the image above.
That did give me the Z values but not the Y values.
What it is outputting are the movements incrementally from the current location to the next spot. When the holes are in a grid pattern, the post is only outputting the x or y location from the current position. If you are staying in the same x location on the table it will not output that move again as it is already at that location. Will the machine you are running, not remember the current position in x or y? I am trying to understand a little more about the need to repeating the current location with the new movement position.
Can you help me understand a little more?
We have a one off prototype Quickdrill machine that uses a fenuc controller. The quickdrill has it's own built in g-code generator. We create a text file from Solidworks (19804 Rear Tubesheet.txt) then we edit the file and create (19804TS.acd). This file is then imported into the quickdrill and it then creates the g-code (19804TS.bak). Ultimately we would like to create that same g-code within Solidworks but have not been able to as of yet. Still trying to figure that out in the UPG editor. Also we are not sure if the Quickdrill can even import g-code files on it's own or if it has to generate it's own files. So for now we have to basically create a coordinate file of x,y, & z for the machine to read.
Thank you for the clarification. If the Quick Drill is fanuc based, then it should accept g-code in some format. With that said it looks like you are almost recreating Cutter location information and letting the machine post process. Inside SOLIDWORKS CAM, you can save Cutter location data directly and open in the NC Editor or a text editor and make and edits. I do not think this is the correct solution. Let me do a little digging and see if we can help eliminate some steps as the post processor can do more than what the UPG offer for formatting. Do you happen to know who your reseller is?
Also, do you have a manual for that machine or can you provide a model of the Fanuc Controller?
Reseller for Solidworks is Alignex and the Quickdrill is prototype. We have the only of this kind. I will have to see if the machinist or if the IT manager knows if it has a model number of any kind.
Thanks, Frankie! Let me do some work on my end to see what we can find as well. Thanks for your patience and communication.
serial number, 4052
Quickmill - brand
Quickdrill - model
Stretch - submodel
That is about all I have for you on this machine.
Can you contact me directly? Michael.email@example.com? I would like to chat more directly since you are not that far away. I am in Denver, CO.
That did the trick for me. Thank you very much.
Have a great week Frankie!
Retrieving data ...