A head scratcher for me

More
6 years 4 months ago #169869 by aleksamc
Replied by aleksamc on topic A head scratcher for me
Here is ini file.
Currently, I cann't make screenshot of it.

Attachment not found

Please Log in to join the conversation.

More
6 years 4 months ago #169874 by rcKeith
Replied by rcKeith on topic A head scratcher for me
If you open a terminal and
type
ls -l /home/user/linuxcnc/python
and then
Alt + PrtSc – Save a screenshot of the current window to Pictures
Then upload the screenshot

Please Log in to join the conversation.

More
6 years 4 months ago #170263 by aleksamc
Replied by aleksamc on topic A head scratcher for me
At photo there is filter.py (original) and filter2.py (edited for axes X,Y,Z,A), no one is run.

Please Log in to join the conversation.

More
6 years 4 months ago #170297 by rcKeith
Replied by rcKeith on topic A head scratcher for me
If you type ./filter2.py in the directory you have the filter in does it run?
It needs a g-code file as its input so if you type ./filter.py somefile.gcode
it should print out the altered g-code.

In the ini file the filter will work if it finds a g-code file with a .foam extension,

Give that a try

Please Log in to join the conversation.

More
6 years 3 months ago #176489 by kang2k
Replied by kang2k on topic A head scratcher for me
Hi Andy.
My machine use 3 AXIS, X,Y and A (rotate), how edit you module for use 3 axis ?

Please Log in to join the conversation.

More
6 years 3 months ago #176519 by rcKeith
Replied by rcKeith on topic A head scratcher for me
It only for 4 axis machines. Doesn't make any sense for 3 axis. You may be better looking at G93 Inverse Time Feed Mode

Please Log in to join the conversation.

More
5 years 8 months ago #198581 by aleksamc
Replied by aleksamc on topic A head scratcher for me
I don't remember if file run at that time, supposedly not. Possibly it was problem with python version.
But now, when I upgraded to Linux Buster and linux 2.8.1 it's run fine.
I will study this question more now

Please Log in to join the conversation.

More
5 years 8 months ago #198984 by aleksamc
Replied by aleksamc on topic A head scratcher for me
I maid some marks to Andys filter.py. I'm not a programmer and it's my first and earlier than "Hello world" python program.
I edited it for my needs. It's for colinear movement of Y and V axes. I also added A rotary axis.
Here is this file.

Attachment not found



PS
This program doesn't solved my problem of slow motion when V axis is used.

Please Log in to join the conversation.

More
3 years 11 months ago #256940 by slidinghawk
Replied by slidinghawk on topic A head scratcher for me
Tried to add too with an error.

code 126
sh: /home/cnc/linuxcnc/filter.py: Permission denied (((

PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
PROGRAM_EXTENSION = .nc,.tap G-Code File
PROGRAM_EXTENSION = .foam foam
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python
foam = /home/cnc/linuxcnc/filter.py

Please Log in to join the conversation.

More
3 years 11 months ago #256976 by andypugh
Replied by andypugh on topic A head scratcher for me
Have you made the filter.py file executable?

chmod +x filter.py

Please Log in to join the conversation.

Time to create page: 1.154 seconds
Powered by Kunena Forum