Advanced Search

Search Results (Searched for: )

  • 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.
  • zz912
  • zz912's Avatar
08 Aug 2024 09:18
Replied by zz912 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.
  • endian
  • endian's Avatar
08 Aug 2024 08:50
Replied by endian on topic ethercat master service

ethercat master service

Category: EtherCAT

Have you ever try more then one ethercat task on the single master? Something as lcec.0 with 1ms scan time and lcec.1 with diferent scan time?
  • Moutomation
  • Moutomation
08 Aug 2024 08:40
classic ladder input and output added was created by Moutomation

classic ladder input and output added

Category: ClassicLadder

inputs and outputs end at 14 (%I14-%Q14). How can I increase these, for example %I50-%Q50?

I use gmoccapy
  • jpg
  • jpg
08 Aug 2024 07:26 - 08 Aug 2024 07:26
  • anfänger
  • anfänger's Avatar
08 Aug 2024 07:06
Replied by anfänger on topic Mesa Analog Vs Step Dir

Mesa Analog Vs Step Dir

Category: Driver Boards

Many thanks.
Maybe one last question.
For usng the index with step I need to upgrade to linuxcnc 2.9.3 right?
currently its 2.8.2 I am working on this machine three years now.
  • Cormac
  • Cormac
08 Aug 2024 06:14
Replied by Cormac on topic CAN-Bus HAL ?

CAN-Bus HAL ?

Category: HAL

I am not certain but perhaps:
github.com/dbraun1981/hal-cia402
seems to be what your looking for?

Let me know how you go as I'll be attempting linuxcnc to can bus communication soon and will be learning on the fly.
Displaying 23026 - 23040 out of 25551 results.
Time to create page: 0.605 seconds
Powered by Kunena Forum