Advanced Search

Search Results (Searched for: )

  • thomaseg
  • thomaseg
24 Aug 2025 08:35
How to monitor error-pin on 3d probe? was created by thomaseg

How to monitor error-pin on 3d probe?

Category: Basic Configuration

Hi,

I'm trying to setup the  Vers WLR v9 probe  and i got it working fine together with the Vers toolsetter. However, there is a pin out for errors. This triggers if there is issues with the communication for the probe(e.g. if it runs out of battery, is not turned on, communication fails and so), but how to configure this in HAL to halt the probe-cycle? First i thought about making some logic to check if motion-type is "probing" and combine that with the error pin. But the issue is the famous "one pin for all probing", so i don't think i "know" if i'm using the 3D probe and should monitor the error pin or i'm using the toolsetter and the 3D probe is intentional not active(causing the error-pin to trigger!). I've seen several posts about using M-codes to determine which probing cycle to run, but i've also seen people warn about this approach since it requires you to remember to use them each time....

Am i missing something obvious here or have others found a clever solution to this?

/Thomas
  • xenith
  • xenith
24 Aug 2025 06:39

Named subroutines containing probe ops cause backplot errors

Category: O Codes (subroutines) and NGCGUI

I believe that I have figured out my problem, however I don't quite know how to fix it. I'm using subroutines to perform different types of feature probing operations. An example program would look something like this:

preamble
o<probe_z> call [...]
o<probe_xy_boss> call []
end

When I load one of these gcode programs, I immediately get "unknown word starting with c" errors from the 3D plotter. It seems like the plotter isn't recognizing the syntax for named subroutines. If you ignore the error, then the first subroutine will run without issue. After the first probe is completed, the error will appear again for the second o code and terminate the program. I attempted to fix this by wrapping each call in a conditional like this:

o100 if [#<_task> EQ 1]
o<probe_z> call [...]
o100 endif
o101 if [#<_task> EQ 1]
o<probe_xy_boss> call []
o101 endif
end

This stopped any errors from appearing prior to cycle start. The first subroutine will execute without issue, and then the error will get triggered again immediately after the first probe. Limiting the file to a single subroutine solves the issue. The #<_task> wrapping method doesn't seem to work more than once in a file in this situation. I suspect that this has something to do with the fact that the first subroutine contains a probe operation which limits the lookahead of the controller's planner. Perhaps the backplotter is getting re-triggered after the first probe operation, but the machine is still in automatic mode since it's mid-file? Any ideas would be appreciated. I'm using probe-basic.
  • jorgearma0205
  • jorgearma0205
24 Aug 2025 06:28
displayed axis was created by jorgearma0205

displayed axis

Category: Advanced Configuration

I am updating a grinding machine which only has the y and z axes controlled by a motor, the x axis is hydraulically driven with limit sensors, I already have the machine working with an old 5i23, I configured the x axis to not have errors in pncconf by configuring a linear encoder mounted on the x axis with the intention of being able to visualize them but when running a program it shows me a tracking error obviously given that there is no x movement command and the encoder starts to count, is it possible to disable the hili of the x axis only keeping the encoder count to be able to visualize the x axis on the screen? 
 
  • karlhe
  • karlhe
24 Aug 2025 05:42 - 24 Aug 2025 06:58
Replied by karlhe on topic in linuxcnc freecad 1.0 einbinden

in linuxcnc freecad 1.0 einbinden

Category: Configuration Tools

Danke tommy,

werde es nachher gleich probieren.

karlhe

Habe ich brobiert, leider nur freecad 0.2, nich 1.0

 
  • tommylight
  • tommylight's Avatar
24 Aug 2025 00:13
Replied by tommylight on topic Need help changing axis home direction?

Need help changing axis home direction?

Category: General LinuxCNC Questions

How did you create the config?
If using the wizard, there is "invert" on the right side of every pin, so check that for direction of the axis you need.
You can also edit the .ini file and add " - " (minus sign) in front of the SCALE value for the joints/axis you need to change direction.
  • tommylight
  • tommylight's Avatar
24 Aug 2025 00:10
Replied by tommylight on topic Voron Life , for anyone going into 3D printing !

Voron Life , for anyone going into 3D printing !

Category: Additive Manufacturing

Seen that a while back, it is a version of Voron 2.4 but bigger.
I have a bigger Voron with 10mm belts all over and i think i linked to files probably twice till now, they ar eon printables.com under the toma.3d name, just in case.
  • cmorley
  • cmorley
23 Aug 2025 23:48 - 23 Aug 2025 23:51
Replied by cmorley on topic Displaying Active Work Coordinate System

Displaying Active Work Coordinate System

Category: GladeVCP

Glad you got it to work.
It errors for timing reasons it seems, the function get called before all the initiation is done.
After initiation then there is no more errors.
I ran your panel in master and it's the same.

You can quiet the message by changing the code in hal_actions.py
def on_activate(self, w):
    try:
        ensure_mode(self.stat, self.linuxcnc, linuxcnc.MODE_MDI)
        template = HalTemplate(self.command)
        cmd = template.substitute(FloatComp(self.hal))
        self.linuxcnc.mdi(cmd)
    except Exception as e:
        pass
        #print(self.get_name(),e)

 
  • benn686
  • benn686
23 Aug 2025 23:24

ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board

Category: Driver Boards

Anyone have a Lattice Diamond project for the Colorlight v8 board?

I bought the board and a HW-USBN-2A jtag programmer.. however, the litex .bit file generated doesn't seem to do anything.. no led activity, no button response, no serial output etc.

So just want to take a step back, and see if I a simple blink-led project, synthesized in Diamond works.
 
  • cmorley
  • cmorley
23 Aug 2025 22:58
Replied by cmorley on topic QtDragon feature request go_to_zero

QtDragon feature request go_to_zero

Category: Qtvcp

What version of linuxcnc are you using?
I like this idea and have it working in principle for master branch.
  • my1987toyota
  • my1987toyota's Avatar
23 Aug 2025 22:03
Replied by my1987toyota on topic Voron Life , for anyone going into 3D printing !

Voron Life , for anyone going into 3D printing !

Category: Additive Manufacturing

I just came across this today, very tempting. Albeit it needs some work.
  • JT
  • JT's Avatar
23 Aug 2025 21:07
Flex GUI Keyboard Jogging was created by JT

Flex GUI Keyboard Jogging

Category: Flex GUI

We have been working on keyboard jogging for Flex GUI at the request of several people.

A test repo is here github.com/jethornton/flexgui2

JT
  • JT
  • JT's Avatar
23 Aug 2025 21:06
Replied by JT on topic Flex Gui preset buttons

Flex Gui preset buttons

Category: Flex GUI

An input filter is not supported by Flex GUI at this time.

JT
  • Quarter20
  • Quarter20
23 Aug 2025 20:36
Replied by Quarter20 on topic Need help changing axis home direction?

Need help changing axis home direction?

Category: General LinuxCNC Questions

I had this router working with Mach 3 and just swapped the Breakout board and LinuxPC.

The paraport wiring is the same and I put it into the step config the same way. I can jog the Z and X just fine, but since it is tandem Y, and that axis is last to home, I haven't gotten that far.

I just thought I would focus on the Z for now and get it to home upwards instead of down.

In Mach 3 I had put it set to home X and Y in negative direction. Z in Positive since it went from 0 to -150mm.

Any help is greatly appreciated!
  • Quarter20
  • Quarter20
23 Aug 2025 20:26
Need help changing axis home direction? was created by Quarter20

Need help changing axis home direction?

Category: General LinuxCNC Questions

I have a gantry router that utilizes the Y and Y tandem configuration. When I go to home it, my Z moves towards the positive direction instead of toward my home switch. Also my X and Y's are doing the same thing? Im sure this is a matter of changing some + or - signals in the files somewhere? Can anyone help?
 
  • hitchhiker
  • hitchhiker
23 Aug 2025 19:06
Replied by hitchhiker on topic Homing with 2 inputs/sensors?

Homing with 2 inputs/sensors?

Category: HAL

if its so.. then i got it...

on the table it works...

here my ini for the axis
#********************
# Axis Z
#********************
[AXIS_Z]
MIN_LIMIT = -2000.0
MAX_LIMIT = 2000.0
MAX_VELOCITY = 83
MAX_ACCELERATION = 500

[JOINT_2]
TYPE = LINEAR
MAX_VELOCITY = 83
MAX_ACCELERATION = 500
STEPGEN_MAXVEL = 150
STEPGEN_MAXACCEL = 1500
STEPSPACE  = 5000
STEP_SCALE = 400
STEPLEN    = 5000
MIN_LIMIT = -2000.0
MAX_LIMIT = 2000.0
HOME = 0.0
HOME_OFFSET = 0.0
FERROR = 1
MIN_FERROR = 0.25
HOME_SEQUENCE = 0
DIRSETUP   = 5000
DIRHOLD    = 5000

P = 1000
I = 0
D = 0
BIAS = 0
FF0 = 0
FF1 = 1
FF2 = 0
DEADBAND = 0.001
MAX_OUTPUT = 0
MAX_ERROR = 0.0001

HOME_SEARCH_VEL = -30.000000
HOME_LATCH_VEL = -0.100000
HOME_FINAL_VEL = -0.10000
HOME_USE_INDEX = YES
HOME_SEQUENCE = 0

and here my hal for the axis
####Z-Axis Setup####

setp   pid.z.Pgain     [JOINT_2]P
setp   pid.z.Igain     [JOINT_2]I
setp   pid.z.Dgain     [JOINT_2]D
setp   pid.z.bias      [JOINT_2]BIAS
setp   pid.z.FF0       [JOINT_2]FF0
setp   pid.z.FF1       [JOINT_2]FF1
setp   pid.z.FF2       [JOINT_2]FF2
setp   pid.z.deadband  [JOINT_2]DEADBAND
setp   pid.z.maxoutput [JOINT_2]MAX_OUTPUT
setp   pid.z.error-previous-target true
setp   pid.z.maxerror [JOINT_2]MAX_ERROR

net z-index-enable  <=> pid.z.index-enable
net z-enable        =>  pid.z.enable
net z-pos-cmd       =>  pid.z.command
net z-pos-fb        =>  pid.z.feedback
net z-output        <=  pid.z.output

net z-pos-cmd    <= joint.2.motor-pos-cmd
net z-vel-cmd    <= joint.2.vel-cmd
net z-output     <= [HMOT](CARD0).stepgen.02.velocity-cmd
net z-pos-fb     <= [HMOT](CARD0).stepgen.02.position-fb
net z-pos-fb     => joint.2.motor-pos-fb
net z-enable     <= joint.2.amp-enable-out
net z-enable     => [HMOT](CARD0).stepgen.02.enable


setp   [HMOT](CARD0).stepgen.02.dirsetup        [JOINT_2]DIRSETUP
setp   [HMOT](CARD0).stepgen.02.dirhold         [JOINT_2]DIRHOLD
setp   [HMOT](CARD0).stepgen.02.steplen         [JOINT_2]STEPLEN
setp   [HMOT](CARD0).stepgen.02.stepspace       [JOINT_2]STEPSPACE
setp   [HMOT](CARD0).stepgen.02.position-scale  [JOINT_2]STEP_SCALE
setp   [HMOT](CARD0).stepgen.02.step_type        0
setp   [HMOT](CARD0).stepgen.02.control-type     1
setp   [HMOT](CARD0).stepgen.02.maxaccel         [JOINT_2]STEPGEN_MAXACCEL
setp   [HMOT](CARD0).stepgen.02.maxvel          [JOINT_2]STEPGEN_MAXVEL



net z-pos-fb => joint.2.motor-pos-fb
net z-index-enable    joint.2.index-enable  <=>  [HMOT](CARD0).stepgen.02.index-enable


i write it by hand... do i forget something? or does it looks ok?

on the table i only work with 2 button switches .. and it do what it should do.
if this was the solution it was not the big deal to do the changes...
Displaying 9691 - 9705 out of 17954 results.
Time to create page: 0.346 seconds
Powered by Kunena Forum