Advanced Search

Search Results (Searched for: )

  • meister
  • meister
09 Aug 2024 07:37

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

you can try
PYTHONPATH=. bin/rio-test riocore/configs/MecanixDev/config.json

-> Quadencoderz and set indexenable, then rotate the axis and look if the indexout changed

same you can do in linuxcnc -> Halshow

set rio.spindle_encoder.indexenable to 1 and look at the rio.spindle_encoder.indexout
while rotating
  • Mecanix
  • Mecanix
09 Aug 2024 07:33

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Wait wait, it see the index pin. I know because if I set the xxx.indexenable to true it trips on a rotation and reset the counter. 
Omg, the learning curve is steep, Olivier. Let me try to figure out how this works... prolly going to take me a day or two lool

  • Aciera
  • Aciera's Avatar
09 Aug 2024 07:26

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

Category: General LinuxCNC Questions

I'm sorry, I forgot to mention this, the preview does not reflect machine movement (ie joint position) when using custom kinematics all it shows is axes position in a fixed coordinate system. If you want to see the effects off your custom kinematic then you would need a machine visualization (vismach) for your config. For a simple config with a 3axis mill see 'configs/sim/axis/vismach/3axis-tutorial' you can then change KINEMATICS = trivkins' to your kinematics. You should then see the spindle move to the left when jogging X in the positive direction:

 
  • Mecanix
  • Mecanix
09 Aug 2024 07:14 - 09 Aug 2024 07:18

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

if you want to use the spindle in linuxcnc, the correct hal connections must be entered 'net':

Nice, thanks! Progress ha. But still not getting any index input for some strange reason. The encoder pin pulses HIGH on the oscope on each rev (probed on the FPGA pin), that works fine, but it never shows up in Lcnc. Do I need to debug this from rio.c (hal component?)

  • meister
  • meister
09 Aug 2024 06:56

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

if you want to use the spindle in linuxcnc, the correct hal connections must be entered 'net':
        {
            "type": "quadencoderz",
            "name": "spindle_encoder",
            "pins": {
                "a": {
                    "pin": "25",
                    "pull": "up"
                },
                "b": {
                    "pin": "26",
                    "pull": "up"
                },
                "z": {
                    "pin": "27",
                    "pull": "up"
                }
            },
            "signals": {
                "indexenable": {
                    "net": "spindle.0.index-enable",
                    "display": {
                        "type": "none"
                    }
                },
                "position": {
                    "net": "spindle.0.revs",
                    "scale": 600,
                    "display": {
                        "title": "REV"
                    }
                },
                "rps": {
                    "net": "spindle.0.speed-in",
                    "display": {
                        "type": "none"
                    }
                }
            }
        }
  • Mecanix
  • Mecanix
09 Aug 2024 06:39 - 09 Aug 2024 06:44

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

@meister

Only when you have time (no rush), I'll need your help with a spindle encoder config. I can make the counter work (A & B signals), however I can't figure out how to make the Z index work. I've attached my config for reference, grateful if you could have a look at it and let me know what I'm doing wrong, or what I'm not doing rather.

ps. only guidance I found was in this thread, from old posts. Although all that info seems to have changed since :( And so I've tried everything before begging for your help!


@cornholio
I have no idea. It's a cmd from python-venv (to activate the virtual environment that Rio is isolated into). 
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
09 Aug 2024 06:38
Replied by Cant do this anymore bye all on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Sweet will wait for more info.
@Mecanix what's the contents of this file
~/rio/riocore/bin/activate
  • cmorley
  • cmorley
09 Aug 2024 06:12
Replied by cmorley on topic qtdragonhd / probing

qtdragonhd / probing

Category: Qtvcp

Ok I see what you mean. What dimension should we use for Z depth?
Should it be 2x Z clearance?
  • newbynobi
  • newbynobi's Avatar
09 Aug 2024 06:05
Replied by newbynobi on topic Jog keys for A axis

Jog keys for A axis

Category: Gmoccapy

Hallo,

Keyboard shortcuts are IMHO dangerous and will only be used on hobby machines. I use a handmade hand MPG for that. But implementing more keys will not lead to a more or less dangerous behavior.

So implementing more keys is not the case. We should try to maintain the behavior equally on every GUI, so I suggest to use the same keys as on AXIS GUI.

Norbert
  • PhilipME
  • PhilipME's Avatar
09 Aug 2024 05:50
Replied by PhilipME on topic Not sure if my parallel port is working

Not sure if my parallel port is working

Category: General LinuxCNC Questions

No I did not try to run anything because the bob is not connected to anything yet.


I will try to run a small motor

Thank you for the reply
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
09 Aug 2024 04:35
Replied by Cant do this anymore bye all on topic Not sure if my parallel port is working

Not sure if my parallel port is working

Category: General LinuxCNC Questions

The parallel port is there 0x378
Have you tried running your machine ?
  • PhilipME
  • PhilipME's Avatar
09 Aug 2024 04:14
Not sure if my parallel port is working was created by PhilipME

Not sure if my parallel port is working

Category: General LinuxCNC Questions

In another computer,  I usually hear the clicking of the relay in my bob when I click to start the cooling water pump

but in this computer I am not sure if the parallel port is working. 

this is what I get from dmesg > boot.txt






10.473367] lp: driver loaded but no devices found
[   10.542907] ppdev: user-space parallel port driver
[   10.653516] parport_pc 00:06: reported by Plug and Play ACPI
[   10.653592] parport0: PC-style at 0x378, irq 5 [PCSPP,TRISTATE]
[   10.756442] lp0: using parport0 (interrupt-driven).
[   12.327487] input: PC Speaker as /devices/platform/pcspkr/input/input10
[   12.567250] at24 0-0050: supply vcc not found, using dummy regulator
[   12.569898] at24 0-0050: 256 byte spd EEPROM, read-only
[   12.725210] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   12.725268] sr 3:0:0:0: Attached scsi generic sg1 type 5
[   12.880444] RAPL PMU: API unit is 2^-32 Joules, 3 fixed counters, 163840 ms


Good day

Philip
  • PhilipME
  • PhilipME's Avatar
09 Aug 2024 04:06

I found old PC in the dumpster with parallel port

Category: General LinuxCNC Questions

I will start another topic as the issue now is different

Many thanks
  • winyk
  • winyk
09 Aug 2024 01:48

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

Category: General LinuxCNC Questions

I tried reversing x-direction in both forward kinematics and inverse kinematics as you have suggested, but the machine still move in the +x direction. Now, the x in graphic display also shown as positive



here are my kinematicsForward and kinematicsInverse functions. 
int kinematicsForward(const double *j,
                      EmcPose * pos,
                      const KINEMATICS_FORWARD_FLAGS * fflags,
                      KINEMATICS_INVERSE_FLAGS * iflags)
{
    static bool gave_msg;
    // [KINS]JOINTS=3
    pos->tran.x = - j[0]; // X coordinate
    pos->tran.y = j[1]; // Y coordinate
    pos->tran.z = j[2]; // Z coordinate
    // unused coordinates:
    pos->a = 0;
    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 (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()

I have already made sure that I reinstall the component with halcompile --install mykins.comp after editing the file.
  • EW_CNC
  • EW_CNC's Avatar
09 Aug 2024 01:35
Replied by EW_CNC on topic Retrofitting a small bending machine

Retrofitting a small bending machine

Category: CNC Machines

DoWerna,
I have retrofitted a press brake with LinuxCNC.
You can checkout my forum topic Pressbrake CNC Control .
We are using it regularly for bending. I still have an issue with homing the backstop, but otherwise it is working good.
- Earl
Displaying 23491 - 23505 out of 25039 results.
Time to create page: 0.446 seconds
Powered by Kunena Forum