A head scratcher for me

More
02 Jun 2020 21:06 #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.

File Attachment:

File Name: ax4laser.ini
File Size:3 KB
Attachments:

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

More
02 Jun 2020 22:03 #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 or Create an account to join the conversation.

More
05 Jun 2020 16:08 #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.
Attachments:

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

More
05 Jun 2020 23:04 #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 or Create an account to join the conversation.

More
30 Jul 2020 10:14 #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 or Create an account to join the conversation.

More
30 Jul 2020 14:11 #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
The following user(s) said Thank You: aleksamc

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

More
12 Feb 2021 21:14 - 12 Feb 2021 21:15 #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
Last edit: 12 Feb 2021 21:15 by aleksamc.

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

More
15 Feb 2021 21:24 - 15 Feb 2021 21:25 #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.

File Attachment:

File Name: filter_g93.py
File Size:2 KB


PS
This program doesn't solved my problem of slow motion when V axis is used.
Attachments:
Last edit: 15 Feb 2021 21:25 by aleksamc.

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

More
17 Nov 2022 17:02 - 17 Nov 2022 17:06 #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
Last edit: 17 Nov 2022 17:06 by slidinghawk.

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

More
17 Nov 2022 22:55 #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 or Create an account to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum