Advanced Search

Search Results (Searched for: )

  • kubes
  • kubes
Today 05:47

Setting pin value based on other pins

Category: HAL

I am using mb2hal (modbus) and it exposes a pin `mb2hal.00.00.int` that is an input, the values can be 1, 2, or 5. I need to set the values based on other bit pin:

if spindle.0.forward = true then mb2hal.00.00.in = 1
if spindle.0.reverse = true then mb2hal.00.00.in = 2
if spindle.0.on = false then mb2hal.00.00.in = 5

How do I create this logic in the hal?
  • juliankoenig87
  • juliankoenig87
Today 04:23
Replied by juliankoenig87 on topic home build cnc cutting fabric machine

home build cnc cutting fabric machine

Category: Plasma & Laser

Cool idea. I also think this shoul be possible.

I am thinking of servos instead of steppers. Reason is build in encoders (ok cl steppers have it too) and the possibility to change to torque mode. So the two pulling servos in position mode doing the move and the two servos in torque mode can build up adjustable tension.

This setup than could be used as an initial meassure of the layer thickness and correct values for that.

I can imagine some kind of tape at the sides for all corrections. Like the tape on the shaper woodworking cnc handheld machine (dont know the exact name right now). This way you can use a camera like system an be on track all the time I guess.
  • Lcvette
  • Lcvette's Avatar
Yesterday 02:15
Replied by Lcvette on topic Probe Basic Manual Tool Not Working

Probe Basic Manual Tool Not Working

Category: QtPyVCP

Cool, just ping me in here when you have time and need help getting things setup!
  • tommylight
  • tommylight's Avatar
Yesterday 01:55
Replied by tommylight on topic home build cnc cutting fabric machine

home build cnc cutting fabric machine

Category: Plasma & Laser

Most probably, yes.
Stuff helpful to know:
-what is the maximum Y length in one go?
Stuff randomly wandering through my tired brain:
-would be easier to use ESP-CAM for side monitoring and adjustment
-encoders can be tracking the material on both sides as LinuxCNC can use 2 or more encoder feedback's for the same joint/axis
-see "bottle labeling machine" for the type of sensor used for aligning the labeling foil (stuck my finger between the cutting and gluing rollers on one of those 2 weeks ago, what a mess! :) )
  • kubes
  • kubes
Yesterday 01:48
Replied by kubes on topic Probe Basic Manual Tool Not Working

Probe Basic Manual Tool Not Working

Category: QtPyVCP

Funny you mention that, as that is on my to-do list. It's been a little bit of a challenge. Once I have the mill 90% I'll try to read my notes and get some docs done. I also need to contribute code too. I also get that there has been less EtherCAT used in the past, which may change as the cost comes down. I was able to retrofit with 1.2KW AC servos for a little more cost than keeping 30-plus year old steppers, with new drivers, power supplies, and an interface card.
  • Lcvette
  • Lcvette's Avatar
Yesterday 01:32
Replied by Lcvette on topic Probe Basic Manual Tool Not Working

Probe Basic Manual Tool Not Working

Category: QtPyVCP

Glad you got it sorted. The docs are only giving probe basic specific information, the assumption on configuration building is that the main lcnc docs are used to obtain a working config. In that regard the connections for the probe basic UI dialog are what's being connected here in lieu of lcnc stock dialogs. This gives probe basic control of tool change ques. with the limited number of people working on probe basic, typically 2 or fewer at any given time it's too much to cover what's already available in linuxcnc. This is why we express the importance of qualifying a working configuration in axis before beginning the transition to probe basic to eliminate any general linuxcnc configuration problems without the complexity being compounded by the probe basic requirements.

For your situation it's 100% uncharted territory because none of the devs use Ethercat. If you would like to contribute a docs section for Ethercat users it would be greatly appreciated. The sphinx docs source files in the repository are where the doc pages reside and you can write up the specifics needed and format in the .rst format and submit a pull request and I will add them to the main docs page. I'm sure future Ethercat users would be very grateful for some guidance on how to avoid pitfalls the standard config docs can cause.

Let me know if you need assistance getting started.
  • kubes
  • kubes
Yesterday 01:07
Replied by kubes on topic Probe Basic Manual Tool Not Working

Probe Basic Manual Tool Not Working

Category: QtPyVCP

Thanks, I was able to figure it out.

I did read the words.  In fact I reread, prior to posting here.   To be honest, all the documentation is light, I would rather follow the docs than be a pia, yet we all are humans and make mistakes.
If you were asking if I removed all the hal_manualtoolchage, yes there is no hal_manualtoolchange in any of my hal files.

The issue is that the other tool-change nets were not defined. So while I followed the words and removed the red, it also implied to add the other nets.  I am using EtherCAT so my machine hal was not built from a pnconfig, etc.

For anyone in the future, these nets need to be in your machine hal.
#  ---manual tool change signals---
net tool-change-request    <= iocontrol.0.tool-change
net tool-change-confirmed  => iocontrol.0.tool-changed
net tool-number            <= iocontrol.0.tool-prep-number
  • COFHAL
  • COFHAL
Yesterday 00:41

W5100S-EVB-PICO stepgenerator and encoder driver

Category: Driver Boards

It would be very useful to add the INDEX input to the encoders, if you want to use oriented spindle or the lathe to do threading.
  • Lcvette
  • Lcvette's Avatar
Yesterday 00:24
Replied by Lcvette on topic Probe Basic Manual Tool Not Working

Probe Basic Manual Tool Not Working

Category: QtPyVCP

You're missing the main hal file section or at least are not showing it here. Your posting the post gui Hal file above. My image is of the machine.hal or whatever you named your machine. The one from pncconfig or other config builder. Read the words in the docs not just the pictures.. ?
  • kubes
  • kubes
Yesterday 00:20 - Yesterday 00:24
Replied by kubes on topic Probe Basic Manual Tool Not Working

Probe Basic Manual Tool Not Working

Category: QtPyVCP

Yes, I did follow the directions. Sorry, I should have stated that, but I used step #4. I only posted the section to ensure I did not mess that up.  I feel like I missed something very basic.  I can trigger the modal using showhal and setting 'tool-change-request' pin

The directions don't have the tool-request-loopback net, is that needed?

Here is the entire post UI hal

loadrt time
loadrt not

addf time.0 servo-thread
addf not.0 servo-thread

net prog-running not.0.in <= halui.program.is-idle
net prog-paused halui.program.is-paused => time.0.pause
net cycle-timer time.0.start <= not.0.out
net cycle-seconds qtpyvcp.timerseconds.in <= time.0.seconds
net cycle-minutes qtpyvcp.timerminutes.in <= time.0.minutes
net cycle-hours qtpyvcp.timerhours.in <= time.0.hours
# *** Time items required for Probe Basic to run ***

#  ---manual tool change signals---
net tool-change-request     =>  qtpyvcp_manualtoolchange.change
net tool-change-confirmed   <=  qtpyvcp_manualtoolchange.changed
net tool-number             =>  qtpyvcp_manualtoolchange.number

# *** Probe graphic simulation trigger push probe tip ***
# net probe-in  lcec.0.Z.din.1  qtpyvcp.probe-in.out
# net probe-in  <=  qtpyvcp.probe-led.on

# *** Set line below for actual spindle readout from your hal file ***
# net spindle-rpm-filtered scale_to_rpm.out  =>  qtpyvcp.spindle-encoder-rpm.in
# net spindle-speed-fb hy_gt_vfd.speed-fb => qtpyvcp.spindle-encoder-rpm.in

# Status LEDs
net ethercat-link lcec.link-up => qtpyvcp.led-lcec-link-up.on

net ethercat-0-Z-limit-pos lcec.0.Z.limit-pos => qtpyvcp.led-lcec-0-Z-limit-pos.on
net ethercat-0-Z-limit-neg lcec.0.Z.limit-neg => qtpyvcp.led-lcec-0-Z-limit-neg.on
net ethercat-0-Z-din-1 lcec.0.Z.din.1 => qtpyvcp.led-lcec-0-Z-din-1.on
net ethercat-0-Z-din-2 lcec.0.Z.din.2 => qtpyvcp.led-lcec-0-Z-din-2.on
# TODO how to we get the current stage of the HW pin, not the state of the hal pin

net mist-on => qtpyvcp.led-lcec-0-Z-dout-1.on
 
  • proff
  • proff
Yesterday 00:17
Replied by proff on topic home build cnc cutting fabric machine

home build cnc cutting fabric machine

Category: Plasma & Laser

thank's for any advice / idea / help
  • proff
  • proff
Yesterday 00:15

home build cnc cutting fabric machine

Category: Plasma & Laser

hello all 
I'm planning to build a fabric laser cutting machine
but as I have not enough space (and money) for buying a real machine and as I need to cut very long part, I've come up with an idea 
I will keep fabric on 2 rollers (1.5 m long) passing from one side on another from a cutting line (Y axis) with a moving laser diode head (X axis) 
if it was so simple I would use a cheap 3D printer / cn machin controler but whatbrings me here is that I need a closed loop position controller 
idea is that roller will be motorised by 2 motors ( left and right ) and will only working by pulling on fabric ( meaning that 2 motors will work in +Y and 2 in -Y) but I can't rely only on steps on motor to move accurately the fabric as depending on roller fabric diameter changing the distance of fabric moving on cutting line 
File Attachment:

on the other hand fabric can also moves on X axis when rolling and unrolling and objective is to use differential of both right and left motors to correct position 
in my idea the close loop in postion control can be supporte by an optical mouse sensor that can track X and Y moves and I can put 2 on each side right and left 
my question is: is linux cnc can be configured to adapt of this strange machine ? 
 
  • Lcvette
  • Lcvette's Avatar
Yesterday 23:09
Replied by Lcvette on topic Install Probe Basic

Install Probe Basic

Category: QtPyVCP

sweet no worries!
  • Lcvette
  • Lcvette's Avatar
Yesterday 23:08 - Yesterday 23:09
Replied by Lcvette on topic Probe Basic Manual Tool Not Working

Probe Basic Manual Tool Not Working

Category: QtPyVCP

Delete the red potion and make sure the lines above and below it are there still for the manual tool change.


  • Lcvette
  • Lcvette's Avatar
Yesterday 23:06
Replied by Lcvette on topic Probe Basic Manual Tool Not Working

Probe Basic Manual Tool Not Working

Category: QtPyVCP

need some lines in your main hal file also, check the docs it spells it out very clearly in the machine config setup docs. step 5.

kcjengr.github.io/probe_basic/machine_config.html
Displaying 1 - 15 out of 26191 results.
Time to create page: 0.244 seconds
Powered by Kunena Forum