Advanced Search

Search Results (Searched for: )

  • PhilipME
  • PhilipME's Avatar
09 Aug 2024 20:07 - 09 Aug 2024 20:08
my f`irst hal `file need help was created by PhilipME

my f`irst hal `file need help

Category: General LinuxCNC Questions

I want to change the state of pin 17 on my breakout board. At this stage, I dont want any GUI involved.

I want to change the state of pin 17 by halrun command

halcmd: setp parport.0.pin-17-out 1

the hal file name secondhal.hal,      then I issue 
halrun -I -f secondhal.hal


loadrt threads name1=base-thread fp1=0 period1=50000 name2=servo-thread period2=1000000
loadrt hal_parport cfg="0 out"
setp parport.0.reset-time 5000
1addf parport.0.read base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread

but no change to bob pin 17
Can anyone help?



Good day

Philip
  • Bari
  • Bari's Avatar
09 Aug 2024 19:07 - 09 Aug 2024 19:11
Replied by Bari on topic Remora for RP2040

Remora for RP2040

Category: Computers and Hardware

$5 Raspberry Pi Pico 2 with RP2350 Microcontroller

linuxgizmos.com/introducing-the-5-raspbe...350-microcontroller/

Now we need them to combine the newer 2350 with the W5500.
  • Moutomation
  • Moutomation
09 Aug 2024 18:19

Ethercat installation from repositories - how to step by step

Category: EtherCAT

Make a new and clean installation on another computer, do not touch the existing computer. If you can run it on a new computer, reinstall it on your existing computer.
  • Henk
  • Henk
09 Aug 2024 18:18

Spindle.0.at-speed False not inhibiting motion

Category: HAL

If spindle at speed signal goes false during a feed move, motion does not stop. It will only stop at the end of the current move,before the next move.

We have 3 deckels, all with gearboxes that are automated. I always invert the spindle at speed signal and connect it to motion.feed-inhibit to deal with this issue

Henk
  • Alexandrion
  • Alexandrion
09 Aug 2024 17:54 - 09 Aug 2024 17:55
Replied by Alexandrion on topic Spindle.0.at-speed False not inhibiting motion

Spindle.0.at-speed False not inhibiting motion

Category: HAL

You may be right about the timing because I tested the code below and works as expected, but I had to put G4 after the speed line.
%
G90 G17 G40 G80
S50 M3
G4 P0.1
G1 x0 F1000
S100
G4 P0.1
G1 X100
S300
G4 P0.1
G1 X200
S700
G4 P0.1
G1 X100
S1700
G4 P0.1
G1 X0
 
M30
%
  • papagno-source
  • papagno-source
09 Aug 2024 17:36
refclockSyncCycle question was created by papagno-source

refclockSyncCycle question

Category: EtherCAT

Hi , at all.
in many example ethercat.xml configuration files, the values ​​of refClockSyncCycles are different.
Sometimes -1 , sometimes 1 , sometimes 5 .
If you use a servo period in the ini file of 1 ms , what is the correct value to use ?
Keeping in mind that appTimePeriod is 1000000

Thanks
  • Mecanix
  • Mecanix
09 Aug 2024 17:22

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

Category: Computers and Hardware

I was shy to ask where those shift arrays came from. So glad you've explained.

I hope for lightnings, thunder, heavy rain and a dozen typhoons all of Sunday. I'll cave under and get it done. Thanks a-mil again Oliver.
  • meister
  • meister
09 Aug 2024 17:09

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

Category: Computers and Hardware

by the way, if you were wondering why there are such strange pin names at the top of the quadencoder:
        {
            "type": "quadencoder",
            "pins": {
                "a": {
                    "pin": "SHIFT_INPUT[2]"
                },
                "b": {
                    "pin": "SHIFT_INPUT[3]"
                }
            },
            "signals": {
                "position": {
                    "function": "jog.wheel_y"
                }
            }
        },

these are 'virtual' pins that are created when an expansion plugin is loaded:
        {
            "type": "shiftreg",
            "pins": {
                "out": {
                    "pin": "PMOD:P1"
                },
                "in": {
                    "pin": "PMOD:P2"
                },
                "sclk": {
                    "pin": "PMOD:P3"
                },
                "load": {
                    "pin": "PMOD:P4"
                }
            },
            "name": "shift",
            "speed": 5000000
        },

the expansion pins can be used in the same way as real pins in the configuration, except that they are limited to one direction.

Otherwise you can use them in pretty much any other plugin
even PWM or stepper if they don't need to be ultra fast
  • Mecanix
  • Mecanix
09 Aug 2024 16:54 - 09 Aug 2024 17:03

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

Category: Computers and Hardware

Oh and errr... now that I have the rio stepgens buzzing I hooked up a signal wire to my mill X step drive and, and ... Ready for it??

The Nasty Resonance Is Gone!!! Man those RIO stepgens are good. Used to sound like a freight train at several velocities before, so much so I bet my great great great neighbor half a mile away was hearing my sheet metal panels rattling. That mess will soon be resolved!!

Edit: as I was typing this, the awesome support from meister manifested itself once again. Not surprised though. That is so cool, great and spot on info - I look forward learning this 
  • meister
  • meister
09 Aug 2024 16:51

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

Category: Computers and Hardware

ok, jogging, grrrrrrrrrrrrrr

in general, everything can be configured as with mesa at the end via hal, the only problem is that this is overwritten when regenerating :(

To make simple assignments, there are the 'signal' -> 'net' options.
A strength of RIO is that even double assignments are recognised and if possible an AND/OR is built in between.

When it gets more complicated, for example when jogging (switching axes / speed / ..) the 'net' option no longer helps :(

but then there is the 'signal' -> 'function' option :)

there are a few predefined options

Examples 1:

2 Encoder
1. for Axis X / joint0
2. for Axis Y / joint1
        {
            "type": "quadencoder",
            "pins": {
                "a": {
                    "pin": "SHIFT_INPUT[0]"
                },
                "b": {
                    "pin": "SHIFT_INPUT[1]"
                }
            },
            "signals": {
                "position": {
                    "function": "jog.wheel_x"
                }
            }
        },
        {
            "type": "quadencoder",
            "pins": {
                "a": {
                    "pin": "SHIFT_INPUT[2]"
                },
                "b": {
                    "pin": "SHIFT_INPUT[3]"
                }
            },
            "signals": {
                "position": {
                    "function": "jog.wheel_y"
                }
            }
        },

Examples 2:

1 Encoder for all axis
joint/axis selection can be done in the AXIS gui
        {
            "type": "quadencoder",
            "pins": {
                "a": {
                    "pin": "SHIFT_INPUT[0]"
                },
                "b": {
                    "pin": "SHIFT_INPUT[1]"
                }
            },
            "signals": {
                "position": {
                    "function": "jog.wheel"
                }
            }
        },

Mixing Example 1 and 2 is not possible :(

this is a list of some rio functions:
RIO_FUNCTIONS = {
    "inout": {},
    "output": {
        "jog.selected-x": {"help": "X is the selected axis", "type": bool},
        "jog.selected-y": {"help": "Y is the selected axis", "type": bool},
        "jog.selected-z": {"help": "Z is the selected axis", "type": bool},
        "jog.position": {"help": "Position of selected axis", "type": float},
    },
    "input": {
        "jog.wheel": {"help": "Jog-Wheel", "type": float},
        "jog.wheel_x": {"help": "Jog-Wheel X-Axis", "type": float},
        "jog.wheel_y": {"help": "Jog-Wheel Y-Axis", "type": float},
        "jog.wheel_z": {"help": "Jog-Wheel Z-Axis", "type": float},
        "jog.select-x": {"help": "Jog-Select X-Axis", "type": bool},
        "jog.select-y": {"help": "Jog-Select Y-Axis", "type": bool},
        "jog.select-z": {"help": "Jog-Select Z-Axis", "type": bool},
        "jog.plus": {"help": "Jog selected axis plus", "type": bool},
        "jog.minus": {"help": "Jog selected axis minus", "type": bool},
        "jog.fast": {"help": "Jog set fast", "type": bool},
    },
}

i think we need a documentation for this, there are other function but i have also need to check what i have done there :)

last but not least, there are also a few add-ons that can be configured via the setup-gui:
riocore# ls riocore/generator/addons/
camera  classicladder  hy_vfd  joypad  mxmpg  README.md


it doesn't seem like much now, but we can still expand it and with the automatic links it is already very powerful and can create hal's that nobody would have to create by hand :P



  • abdulasis12
  • abdulasis12
09 Aug 2024 16:44

Ethercat installation from repositories - how to step by step

Category: EtherCAT

Now fixed. They had a bug in the DKMS deb files. Grab this Linuxcnc ISO which has the new keys in it.
ISO:  drive.google.com/file/d/1gEQzgHsj_LjHiGB...k1Z/view?usp=sharing
Folder with all generated files:  drive.google.com/drive/folders/1pwDh_jn8...QcQwcLv7?usp=sharing

This  ISO also corrects installing a pre-release version of Linuxcnc and no installs 2.93 as intended. 
I have asked the devs to copy this ISO to the downloads page.

Hi MR.RODW
I have question
Because my PC a lot setup for 7i73 mattrixkey sendkey for setup in debian (permission) ,If I go to D/L .ISO and reinstall , I must go to setup all again, and not sure I can do it working again or not.
Can you share any solution for fix this error about DKMS and don't need  to reinstall with .ISO ?
  • gardenweazel
  • gardenweazel's Avatar
09 Aug 2024 16:36
QTDragon and Versa Probe was created by gardenweazel

QTDragon and Versa Probe

Category: Qtvcp

Does the term VersaProbe only apply to the brand or probe or are the chinese-knockoffs included?

Additionally, what's the real difference between Basic Probe and Versa Probe in the QTDragon interface? Anyone know?
  • Mecanix
  • Mecanix
09 Aug 2024 16:34

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

Category: Computers and Hardware

I’ll drag it out over the weekend.

Give us the heads up and hint us rather, i.e where to start to get a module written (template/example?). If we are to be using RIO for the next decade then it's imperative we know how to implement one of those cool plugin/module (not even sure of the difference between both, goes to show). So much to learn and fun ahead I'm sure. 
  • zz912
  • zz912's Avatar
09 Aug 2024 16:13
Replied by zz912 on topic Jog keys for A axis

Jog keys for A axis

Category: Gmoccapy

I foung in AXIS only:
("[, ]", _("Jog fourth axis or joint")),
Displaying 22786 - 22800 out of 25540 results.
Time to create page: 0.442 seconds
Powered by Kunena Forum