Advanced Search

Search Results (Searched for: )

  • mariusl
  • mariusl's Avatar
04 Jan 2025 17:10
Replied by mariusl on topic Custom kinematics

Custom kinematics

Category: Advanced Configuration

Well I would never have guessed that it was for the sims only.

Thanks for clearing it up for me.
  • nick_namsep
  • nick_namsep
04 Jan 2025 16:57
First time configuring ethercat was created by nick_namsep

First time configuring ethercat

Category: EtherCAT

Hello everyone, 

I have been working the past couple days on getting ethercat working and installed for my first linuxcnc project. I got ethercat working and the slave is showing the master command etc works so that is amazing but now i am stuck with the configuration part. I have not used linuxcnc before and i can't seem to find any well quite basic tutorials on how to set up a single axis and just get it to show in linuxcnc i have tried to make a config using a old tutorial but i just can't seem to figure it out. I am currently using a raspberry pi with Leadshine EL8 driver and the ethercat between these works just dont understand the config part. 

So if there is someone that would be able to help get me started that would be amazing.
  • Aciera
  • Aciera's Avatar
04 Jan 2025 16:53 - 05 Jan 2025 10:25
Replied by Aciera on topic Mcode out of range, greater than 199 error

Mcode out of range, greater than 199 error

Category: G&M Codes

M100 .. M199 are User Defined Commands and can be any executable script. These need to be located in the path set in [RS274NGC]USER_M_PATH in the ini file. These do not need a remap.

M200...M999 are gcode or python files and need to be located in the [RS274NGC]SUBROUTINE_PATH and these DO need to be listed as remap. 

[edit]
The error message comes from here
github.com/LinuxCNC/linuxcnc/blob/master...interp_read.cc#L1122

If the mcode in the gcode is not found in the list of remapped mcodes and is above 199 then you get the error.
  • tommylight
  • tommylight's Avatar
04 Jan 2025 16:52
Replied by tommylight on topic Cnclinux do not find harddisk

Cnclinux do not find harddisk

Category: Installing LinuxCNC

What is the exact error?
  • Lcvette
  • Lcvette's Avatar
04 Jan 2025 16:22
Replied by Lcvette on topic To Probe Basic from Gmoccapy

To Probe Basic from Gmoccapy

Category: QtPyVCP

we made some changes that should resolve an issue found in the way tool edits/calls from the conversational works, they are up in the develop version and will be released soon in the new stable update in the next day or two. if you would like to change to the develop version you could give it a try!
  • PCW
  • PCW's Avatar
04 Jan 2025 16:21 - 04 Jan 2025 17:18

Mesa 7i95T spindle step/Direction setup using stepgen

Category: Driver Boards

Never mind, the PID stuff is all side stepped by:

net machine-is-on => hm2_[MESA](BOARD).0.stepgen.03.enable
net spindle-vel-cmd-rps => hm2_[MESA](BOARD).0.stepgen.03.velocity-cmd
net spindle-vel-fb-rps <= hm2_[MESA](BOARD).0.stepgen.03.velocity-fb

But it looks like machine-is-on is not connected, it probably should be something like:

net machine-is-on  <=motion.motion-enabled
 
  • Lcvette
  • Lcvette's Avatar
04 Jan 2025 16:19
Replied by Lcvette on topic Mcode out of range, greater than 199 error

Mcode out of range, greater than 199 error

Category: G&M Codes

its been a while since i tested this, and i currently have a large project pulled that i don't want to exist until finished as we are preparing a release for qtpyvcp and probe basic.

based on spumco's response above does this mean that a remap for 200+ mcodes is required? i think spumco is running probe basic also if memory serves so his experience should be the same as the pb sim.
  • PCW
  • PCW's Avatar
04 Jan 2025 16:16

Mesa 7i95T spindle step/Direction setup using stepgen

Category: Driver Boards

As a first step try this:

[SPINDLE_0]
MAX_VELOCITY = 100.0
MAX_ACCELERATION = 300.0
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAX_VEL = 125.00
STEPGEN_MAX_ACC = 375.00
P = 0
I = 0
D = 0
FF0 = 1
FF1 = 0
FF2 = 0
BIAS = 0
DEADBAND = 0.001
MAX_OUTPUT = 2000
  • Lcvette
  • Lcvette's Avatar
04 Jan 2025 16:15
Replied by Lcvette on topic Mcode out of range, greater than 199 error

Mcode out of range, greater than 199 error

Category: G&M Codes

would it be better to use 100-199 for the switchkins to avoid the possible conflict?
  • Sternfox
  • Sternfox
04 Jan 2025 16:10

Mesa 7i95T spindle step/Direction setup using stepgen

Category: Driver Boards

Thanks for the reply.

I have tried that already, and no joy, wasn't sure if it was a incorrect setting in my configs
  • Lcvette
  • Lcvette's Avatar
04 Jan 2025 16:08

[SOLVED] ProbeBasic NameError: name 'tool' is not defined

Category: QtPyVCP

ok i found the issue and corrected and just pushed the fix to the develop branch. and we are about to make a new release soon to move the current develop to the new stable branch, will be a day or so to follow.

and no, it is a great catch, thanks for bringing it up! it was a stray edit that was saved in the backplotter code and needed fixing.
  • Aciera
  • Aciera's Avatar
04 Jan 2025 16:07
Replied by Aciera on topic Mcode out of range, greater than 199 error

Mcode out of range, greater than 199 error

Category: G&M Codes


The error only occurs when I don't remap m-codes higher than 199. If you don't remap, then LCNC's standard user m-code range is 100-199, using capital "M" and no file extension.


Yes, that is the expected behavior.
  • Aciera
  • Aciera's Avatar
04 Jan 2025 16:05 - 04 Jan 2025 16:09
Replied by Aciera on topic Mcode out of range, greater than 199 error

Mcode out of range, greater than 199 error

Category: G&M Codes

@Lcvette
Do you get the same errors when running the switchkins sim configs that are included in the standard Linuxcnc installation?
  • spumco
  • spumco
04 Jan 2025 16:04
Replied by spumco on topic Mcode out of range, greater than 199 error

Mcode out of range, greater than 199 error

Category: G&M Codes

This would indicate that the remap has not been setup correctly. Could you guys post your ini files that cause this error please?
 

Aciera,

The error only occurs when I don't remap m-codes higher than 199.  If you don't remap, then LCNC's standard user m-code range is 100-199, using capital "M" and no file extension.

Using remap and mxxx.ngc permits an essentially unlimited number of m-codes.  I get no errors with my remap:

This works fine for me (combo of user m-codes and remapped mcodes)
[RS274NGC]
PARAMETER_FILE = lathe.var
USER_M_PATH = /home/lathe/linuxcnc/configs/LATHE_REV1.70/MCODES/
SUBROUTINE_PATH = /home/lathe/linuxcnc/configs/LATHE_REV1.70/subroutines
RS274NGC_STARTUP_CODE = F10 S0 G7 G18 G20 G40 G49 G54 G64 P0.001 G80 G90 G91.1 G92.1 G94 G97 G98
;ORIENT_OFFSET =
#REMAP=G12.1 ngc=g121
#REMAP=G13.1 ngc=g131
REMAP=M200  modalgroup=10   ngc=m200
REMAP=M201  modalgroup=10   ngc=m201
REMAP=M202  modalgroup=10   ngc=m202
REMAP=M203  modalgroup=10   ngc=m203
REMAP=M210  modalgroup=10   ngc=m210
REMAP=M211  modalgroup=10   ngc=m211
REMAP=M212  modalgroup=10   ngc=m212
REMAP=M213  modalgroup=10   ngc=m213
REMAP=M220  modalgroup=10   ngc=m220
REMAP=M221  modalgroup=10   ngc=m221
REMAP=M222  modalgroup=10   ngc=m222
REMAP=M223  modalgroup=10   ngc=m223
REMAP=M268  modalgroup=10   ngc=m268
REMAP=M269  modalgroup=10   ngc=m269
  • erdem
  • erdem
04 Jan 2025 16:03
Replied by erdem on topic Cnclinux do not find harddisk

Cnclinux do not find harddisk

Category: Installing LinuxCNC

Hi , I installed old version debian in 2019. I try to update my linuxcnc , but terminal codes is locked.How am I making unlock?
Displaying 20611 - 20625 out of 21770 results.
Time to create page: 0.409 seconds
Powered by Kunena Forum