Advanced Search

Search Results (Searched for: )

  • jtrantow
  • jtrantow
Yesterday 21:24 - Yesterday 21:27
Replied by jtrantow on topic Commander SK VFD

Commander SK VFD

Category: General LinuxCNC Questions

I used the TangentAudio source code to build a driver for the Commander SK VFD, This worked, but when I implemented automatic gear detection, I found the updates were too slow. I was able to replace the user mode driver with hm2_modbus.

If anyone is still using a user mode driver and has a mesa card, you should consider replacing it with hm2_modbus and the CommanderSK.mbccs I posted in:

forum.linuxcnc.org/10-advanced-configura...dated-for-vfd#343921

 
  • ClarkSavage
  • ClarkSavage
Yesterday 21:17
Replied by ClarkSavage on topic 7i92T and mx3660 request for help

7i92T and mx3660 request for help

Category: PnCConf Wizard

Ok, everything has settled, homes and I have a working machine but ESTOP external button versus software - the external button kills the mx3660 but does not trip in LinuxCNC

Played a little, read some, and am giving the following thinking someone may have the fancy answer.

ESTOP external is NC switch setup, has a NO side not using.

Machine enabled Halshow results:
  • ESTOP External OFF:     pin.003.in  RED
  • ESTOP External ON:     pin.003.in  RED
  •          pin.003.out              no change

    Software ESTOP:
    • OFF         pin.003.in                 RED
    • OFF         pin.003.in_not          YELLOW
    • OFF         pin.003.out              YELLOW
    • ON         pin.003.in                   RED
    • OFF         pin.003.in_not          YELLOW
    • OFF         pin.003.out               RED

      Understand from reading that the output/input somehow can be linked to false or other pin - tried, I get config errors, no load.

      Again, not a deal breaker, but when the external ESTOP is triggered such as during a home, the motors stop but when I raise the button the machine continues - like it paused not ESTOPPED. That's a little disconcerting.

      Attaching HAL file.

       

      File Attachment:

      File Name: 010.hal
      File Size:10 KB
  • jtrantow
  • jtrantow
Yesterday 21:05 - Yesterday 21:17

Automatic spindle gear detection updated for vfd

Category: Advanced Configuration

I have been running my mill and lathe without accurate RPM control/calibration. Recently, I stumbled upon forum.linuxcnc.org/47-hal-examples/27071...r-detection?start=20

I broke down my implementation of this idea into three files:
  • LatheSpindle.hal - General spindle control and automatic gear detection scaling.
  • cmdr_wrapper.hal - Implements hm2_modbus for CommanderSK VFD.
  • Spindle_postgui.hal - Scaling for use with gmoccapy.Using hm2_modbus provides much faster communications and better gear detection during accel/decel than the user mode driver I previously used. 

     

    The gear detection magic occurs by using the ratio of the spindle frequency to the vfd motor frequency. If you have a number of gears or belts, each combination will have a distinct ratio. You use this to populate the x values of the lincurve. For the y values you use the scaling necessary to scale the spindle command frequency to the required vfd motor frequency. It's quite easy to collect this information.

I used a wrapper around the VFD commands so I could share code with my mill that uses a GS11 VFD.



I'm very happy with how this turned out! 
  • andrax
  • andrax's Avatar
Yesterday 20:47
Replied by andrax on topic CiA 402 Folder Missing

CiA 402 Folder Missing

Category: EtherCAT

No, you just adjust the servo and the ethercat master and your ethercat.xml take care of the rest. 
 
  • tommylight
  • tommylight's Avatar
Yesterday 20:45
Replied by tommylight on topic Tool Manager

Tool Manager

Category: Advanced Configuration

Thank you very much for everything you do.
  • Finngineering
  • Finngineering
Yesterday 20:21
Replied by Finngineering on topic XHC WHB04B development?

XHC WHB04B development?

Category: General LinuxCNC Questions

I just had a quick look, but might go a bit deeper at another time.

The ctx/context appears to be the libusb_context struct. I guess you could just do 
context->log_handler = nullptr;
after libusb_init in usb.cc:
github.com/LinuxCNC/linuxcnc/blob/master...whb04b-6/usb.cc#L629
But this probably isn't the best workaround in general.

I guess most of the problems in the past has been because of the assert statement in setupAsyncTransfer? Or did the pendant never reconnect for you in the past? When I was testing and just unplugged the dongle and plugged it back in, it usually didn't fail in the setupAsyncTransfer function, so the assert statement didn't prevent reconnection.

You might also be interested in testing the changes made by Hannes:
github.com/hdiethelm/linuxcnc-fork/tree/xhc-whb04b-6-fix-v2
I believe you need to do a "git checkout xhc-whb04b-6-fix-v2" after git clone in case you want to test that. With regards to the disconnects, his solution is more elegant than decreasing loops, because it avoids trying to change mode altogether when it's clear it would fail anyway.
 
  • PCW
  • PCW's Avatar
Yesterday 19:56 - Yesterday 20:58
Replied by PCW on topic Trying to set up position control mode

Trying to set up position control mode

Category: HAL

Might look at the step pulse train with an oscilloscope.

Also is it possible the servo drive is not set to position mode?
 
  • jblanscett
  • jblanscett
Yesterday 19:18
Replied by jblanscett on topic Trying to set up position control mode

Trying to set up position control mode

Category: HAL

Okay, is there a way to verify that it is an electrical/wiring issue?
  • PCW
  • PCW's Avatar
Yesterday 18:59
Replied by PCW on topic Trying to set up position control mode

Trying to set up position control mode

Category: HAL

OK so that may still be an electrical/wiring  issue

(if the DRO does not move but the motors move)



 
  • jblanscett
  • jblanscett
Yesterday 18:45
Replied by jblanscett on topic Trying to set up position control mode

Trying to set up position control mode

Category: HAL

DRO updates to the inputed position about a second after .1 inches is inputted and the motor continues after that. The DRO doesn't update again until another input is entered. 
  • PCW
  • PCW's Avatar
Yesterday 18:40
Replied by PCW on topic Trying to set up position control mode

Trying to set up position control mode

Category: HAL

Does the DRO show movement when jogging should  stop?
 
  • Hakan
  • Hakan
Yesterday 18:36
Replied by Hakan on topic XHC WHB04B development?

XHC WHB04B development?

Category: General LinuxCNC Questions

No, I don't know how to change log level even.

Fresh git clone of libusb1.0, configure and make.
Fresh git clone of linuxcnc.
It has been the same behavior/problem with the libusb-1.0 via apt in debian.
This is a problem since a long time, years.
And this N100 PC is relatively new, latest debian and don't have any history.
Except the linuxcnc config, it is the same.
Hard to find something that sticks out.

I provoked the xhc a bit. Easily crashes with wrong loop setting. But it now recovers after three seconds.
This is a situation I can live with. It would have been better with no crash. Until then, this is fine.

The modification I made was in libusb1.0.
What I see is that if one set
context->log_handler = nulltpr;
the problem will not appear, the callback function pointed to by context->log_handler will not be called.
Do you know if this can be done in the xhc component code?
It would be good to use std libusb1.0 libs.
 
  • jblanscett
  • jblanscett
Yesterday 18:29
Replied by jblanscett on topic Trying to set up position control mode

Trying to set up position control mode

Category: HAL

All the results have been done with the AXIS GUI inputs.
  • PCW
  • PCW's Avatar
Yesterday 18:23
Replied by PCW on topic Trying to set up position control mode

Trying to set up position control mode

Category: HAL

Does jogging via the GUI work?
 
  • persei8
  • persei8's Avatar
Yesterday 18:22
Tool Manager was created by persei8

Tool Manager

Category: Advanced Configuration

I made this tool manager for the second generation QtDragon, but there's no reason it couldn't be a standalone application. Currently, you can assign tools to groups, such as Drills, spiral upcuts, whatever. Each tool can be assigned material specific cutting parameters and the running time for each tool is tracked according to how long it was in the spindle while a program was running. The linuxcnc tool table is the source of truth and tools can only be added or removed by editing the tool table. The database can be exported to csv or html.  I'm not a machinist, so this was only a guess on my part about what kind of data to record. Looking for suggestions on features, changes, etc. Regards.
Jim
 
Displaying 46 - 60 out of 18408 results.
Time to create page: 0.311 seconds
Powered by Kunena Forum