Advanced Search

Search Results (Searched for: )

  • jossen
  • jossen
08 Aug 2024 15:28

[ Vfdmod ] An easy VFD control over MODBUS RTU

Category: HAL

Someone got the Vfdmod package for RaspberryPi? (arm)
  • PCW
  • PCW's Avatar
08 Aug 2024 13:43
Replied by PCW on topic Mesa Analog Vs Step Dir

Mesa Analog Vs Step Dir

Category: Driver Boards

Stepgen index requires 2.9 or later
  • tommylight
  • tommylight's Avatar
08 Aug 2024 13:36
Replied by tommylight on topic Pc reboot / 5i25(6i25) & 7i77

Pc reboot / 5i25(6i25) & 7i77

Category: Computers and Hardware

Download and install Linux Mint Debian Edition 6, after reboot in a terminal do
sudo apt update
sudo apt upgrade
sudo apt install linuxcnc-uspace
Test on all PC's as this seems to be the first thing to try.
-
I had 2 of Zen 3 5600G and they ran perfectly, several 3600 and 3700X and 3900X also run perfectly, so must be something else...
  • tommylight
  • tommylight's Avatar
08 Aug 2024 13:31
Replied by tommylight on topic I found old PC in the dumpster with parallel port

I found old PC in the dumpster with parallel port

Category: General LinuxCNC Questions

That might very well be usable, so start one of the included parallel port configurations and leave it running for a while, see if it shows latency warnings.
  • spumco
  • spumco
08 Aug 2024 12:28

Spindle.0.at-speed False not inhibiting motion

Category: HAL

Just speculating, but I wonder if there's a timing issue.

According to the manual, motion will be paused "before the first feed move after each spindle start or speed change"

Perhaps motion isn't being halted if a feed move is underway (even by 2ms) when the at-speed signal goes false.

Just to test, I'd throw a short G4 pause in the program right before the speed change and see if that corrects the behavior.
  • spumco
  • spumco
08 Aug 2024 12:11
Replied by spumco on topic Homing with detached 4th axis

Homing with detached 4th axis

Category: Advanced Configuration

Not sure if this is helpful , but here's my 4th scheme:

My 4th is set up with manual homing for a few reasons.  First, I may have a fixture or trunnion table attached and I don't want to blindly let it rotate without checking clearances.

Second, my particular setup uses the servo drive's internal home-to-switch, back-to-index feature. (LCNC is running open-loop).

Third - and this is probably the most important reason - I had no clue how to modify/create a custom-homing routine which automatically detected the 4th axis and homed it (or not) depending on whether it was connected.

When I command the 'home 4th' function, LCNC immediately zeros the DRO, the drive does it's homing routine, and then signals LCNC the drive 'is-homed'.  In the case of a power off, estop, or drive disable LCNC is set up to unhome all axes.

Like you, I have a 'connected' signal (using the servo cable) that controls both the drive contactor as well as informing LCNC that the 4th axis is attached/detached.
  • PhilipME
  • PhilipME's Avatar
08 Aug 2024 11:55 - 08 Aug 2024 11:57

I found old PC in the dumpster with parallel port

Category: General LinuxCNC Questions

Many thanks

I wanted to follow your recommendation, entered the bios . Could not find anything related to hyper threading.

I really dont know what I did as there are many settings, but after I reboot, the base thread latency running about less than 20000 ns

coming down from 12 million. Never thought it is possible.

It is better than my other device.

It is difficult to find a computer that is powerful enough and has a parallel port.


I really appreciate your support to the users
  • anfänger
  • anfänger's Avatar
08 Aug 2024 11:51
Homing with detached 4th axis was created by anfänger

Homing with detached 4th axis

Category: Advanced Configuration

Hi,

I wonder if there is a neat way to home refrence all with the 4th axis disconnected?
My machine has a 4th axis but there might be situations where I would like to have the space on the table and remove it.
So far I was thinking about using simply two configurations, but I wonder if I can do it with one.
I have signals showing me if the axis is connected. I wonder if I can use this to override homing the Axis

Thanks Patrick
 
  • Aciera
  • Aciera's Avatar
08 Aug 2024 11:45

How can I modify trivkins.c? (and also other kinematics files)

Category: General LinuxCNC Questions

The component language is very similar to C but saves the user a lot of tedious typing work.

Generally you need to look at the Forward and Inverse kinematic as a pair where one is the inverse of the other. Hence changing one will also require changing the other.

As an example have a look at 'millturn.comp'. 'Case 1' reverts the direction of the y-axis / j[1] :
static bool is_ready=0;
int kinematicsForward(const double *j,
                      EmcPose * pos,
                      const KINEMATICS_FORWARD_FLAGS * fflags,
                      KINEMATICS_INVERSE_FLAGS * iflags)
{
    static bool gave_msg;
    // define forward kinematic models using case structure for
    // for switchable kinematics
    switch (switchkins_type) {
        case 0:
            pos->tran.x = j[0];
            pos->tran.y = j[1];
            pos->tran.z = j[2];
            pos->a      = j[3];
            break;
        case 1:
            pos->tran.x = j[2];
            pos->tran.y = -j[1];
            pos->tran.z = j[0];
            pos->a      = j[3];
            break;
    }
    // unused coordinates:
    pos->b = 0;
    pos->c = 0;
    pos->u = 0;
    pos->v = 0;
    pos->w = 0;

    if (*haldata->in && !is_ready && !gave_msg) {
       rtapi_print_msg(RTAPI_MSG_ERR,
                       "%s the 'in' pin not echoed until Inverse called\n",
                      __FILE__);
       gave_msg=1;
    }
    return 0;
} // kinematicsForward()

int kinematicsInverse(const EmcPose * pos,
                      double *j,
                      const KINEMATICS_INVERSE_FLAGS * iflags,
                      KINEMATICS_FORWARD_FLAGS * fflags)
{
    is_ready = 1; // Inverse is not called until homed for KINEMATICS_BOTH

    // Update the kinematic joints specified by the
    // [KINS]JOINTS setting (4 required for this template).
    // define forward kinematic models using case structure for
    // for switchable kinematics
    switch (switchkins_type) {
        case 0:
            j[0] = pos->tran.x;
            j[1] = pos->tran.y;
            j[2] = pos->tran.z;
            j[3] = pos->a;
            break;
        case 1:
            j[2] = pos->tran.x;
            j[1] = -pos->tran.y;
            j[0] = pos->tran.z;
            j[3] = pos->a;
            break;
    }

    //example hal pin update (homing reqd before kinematicsInverse)
    *haldata->out = *haldata->in; //dereference
    //read from param example: *haldata->out = haldata->param_rw;

    return 0;
} // kinematicsInverse()
  • Aciera
  • Aciera's Avatar
08 Aug 2024 11:35
Replied by Aciera on topic Jog keys for A axis

Jog keys for A axis

Category: Gmoccapy

I don't use keyboard shortcuts so the changes I posted have been reverted on my local machine. If you are interested to have those changes as a PR then please go ahead.
  • winyk
  • winyk
08 Aug 2024 11:01

How can I modify trivkins.c? (and also other kinematics files)

Category: General LinuxCNC Questions

Thank you very much for providing the resources. Those will surely be helpful when I have to implement switchable kinematics (but still a lot more to learn to get to that point).

As you suggested, I have tried modifying kinematics using the userkins.comp method. I modify the inverse kinematics part of that file as followed
int kinematicsInverse(const EmcPose * pos,
                      double *j,
                      const KINEMATICS_INVERSE_FLAGS * iflags,
                      KINEMATICS_FORWARD_FLAGS * fflags)
{
    is_ready = 1; // Inverse is not called until homed for KINEMATICS_BOTH

    // Update the kinematic joints specified by the
    // [KINS]JOINTS setting (3 required for this template).
    // Maximum number of joints is defined in include file:
    //         emcmotcfg:EMCMOT_MAX_JOINTS (typ 16)
    // Some joints may be claimed as 'extrajoints' and
    // do not participate in kinematics calculations --
    // $ man motion for more info
    j[0] = - pos->tran.x; // joint 0
    j[1] = pos->tran.y; // joint 1
    j[2] = pos->tran.z; // joint 2

    //example hal pin update (homing reqd before kinematicsInverse)
    *haldata->out = *haldata->in; //dereference
    //read from param example: *haldata->out = haldata->param_rw;

    return 0;
} // kinematicsInverse()

Again, my intention here is to reverse the machine's movement in x-direction by 'intercepting' X value in G code, change that to negative value of itself, and set the joint variables to be that value using inverse kinematics (please correct me if my understanding of inverse kinematics is wrong.)

I followed the instruction listed in the description of that file to get the kinematics installed and modify the KINS part in axis_mm.ini accordingly. When I run the engraving G code in axis_mm.ini, I observed in the top left corner of the graphic display that the x-coordinates was showing some negative numbers. However, the +x direction vector (the green one) in the graphic display is also pointing in that same direction.



So, why does this happen? Did I do something wrong? I am not sure whether I have successfully reversed the x-direction or not .

Also, I noticed that the code in userkins.comp is very similar to C code, so is userkins.comp also written in C?, or is it a different language?
  • zz912
  • zz912's Avatar
08 Aug 2024 10:13
Replied by zz912 on topic Jog keys for A axis

Jog keys for A axis

Category: Gmoccapy

If Aciera agrees, I can create a Pull Request.

However, it is necessary to define which key letters are to be used.
This must be approved by Norbert.

It will be necessary to test how this change will affect the 3 axis configuration.
  • Sami
  • Sami
08 Aug 2024 10:04
Replied by Sami on topic Pc reboot / 5i25(6i25) & 7i77

Pc reboot / 5i25(6i25) & 7i77

Category: Computers and Hardware

Here is list of hw what we have tested with this reboot issue.


* Asus M4A77TD (AMD770) / Athlon II X2 250 + 5i25/7i77 works ok

* Asus M5A78L-M LE / FX 4300 + 5i25/7i77 works ok

* Gigabyte GA-970A-DS3P (rev.2.x) / FX 6300 + 6i25/7i77 works ok

* Asus Prime X370-PRO / Ryzen 5 1600 + 6i25/7i77 works ok

* Asus Prime X370-PRO / Ryzen 5 5600G + 6i25/7i77 reboot issue

* Asrock Phantom Gaming 4 B550M / Ryzen 5 5600G + 6i25/7i77 reboot issue

* Asus Tuf Gaming B550-PLUS / Ryzen 7 5700X + 6i25/7i77 reboot issue


After those tests, it seem that amd zen 3 processor is common hw when reboot issues occur.
All motherboards have latest stable bios installed.

Any ideas?
 
  • mariusl
  • mariusl's Avatar
08 Aug 2024 09:54
Replied by mariusl on topic Jog keys for A axis

Jog keys for A axis

Category: Gmoccapy

To Aciera: Can I ask you for Pull Request?
I would also like this improvement.

For at least five (5) axis please but all six will be better.
Displaying 21451 - 21465 out of 26053 results.
Time to create page: 1.968 seconds
Powered by Kunena Forum