Generating G Code from MDI history log

More
13 years 7 months ago #30828 by susam
Hi,

I am quite new to linuxCNC. I was looking for a way to record jog positions. Somewhat similar to what you have mentioned. However, I am unable to use the solution you provided. When I press the "Mark Co-ordinates" or "Generate" buttons, nothing happens. No .txt file is generated in the temp folder etc. It will be of great help if you could provide with a more detailed step by step guide to use this.

Thanks a lot!

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago - 13 years 7 months ago #30830 by BigJohnT
The changes_to.ini has POSTGUI_HALFILE = custom_postgui.hal listed under [DISPLAY] and it should be in the [HAL] section.

The sub writecoords.ngc calls M122 and I don't see that file in the zip.

The M153 file has what looks like some hard coded directories to ~emc2/ngc/header.ngc etc. I assume that needs to be changed to where the files are...

John
Last edit: 13 years 7 months ago by BigJohnT.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #30831 by susam
The changes_to.ini has POSTGUI_HALFILE = custom_postgui.hal listed under [DISPLAY] and it should be in the [HAL] section.

- It is under [HAL] section too. The error I get is:

" Unable to open file <writecords> "

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #30832 by BigJohnT
I created a directory called splice and placed all the files in there. I changed the ini to point to that location.
Code:
[RS274NGC] PARAMETER_FILE = linuxcnc.var SUBROUTINE_PATH = /home/john/linuxcnc/splice USER_M_PATH = /home/john/linuxcnc/splice

I edited the writecords.ngc file and changed M122 to M152.

John

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago - 13 years 7 months ago #30833 by BigJohnT
Running M153 I get splice: command not found... so I assume that needs to be copied to a bin or changed to ./splice...

That works now to change the paths to the header and footer files...

John
Last edit: 13 years 7 months ago by BigJohnT.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #30834 by BigJohnT
I changed the M153 file to:
Code:
#!/bin/bash ./splice header.ngc footer.ngc /tmp/cords.txt ~/.axis_mdi_history /tmp/op.ngc exit 0

and it now runs... now to find the output file...

John

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum