Advanced Search

Search Results (Searched for: )

  • unknown
  • unknown
10 Sep 2025 05:38
Replied by unknown on topic RPi 4B - Network File Share - nfs

RPi 4B - Network File Share - nfs

Category: Computers and Hardware

My guess is that it's trying to mount the nfs share before the wifi interface is up.
So you may have to look through dmesg to see when the nfs share is being mounted and when the wifi interface is being brought up.
Do you have any issues trying to mount the share after the wifi network is up ?

There may be a way to do it via systemd that waits for the wifi network to come up, I've got a couple of ones that turn off the power related stuff for wifi, but only after the interface is up. Might be able to use the same mechanism to mount the shares once that interface is up.

I'd suggest this isn't a issue related to the Raspberry Pi platform but any situation where an nfs or samba share is automounted and the required interface isn't up at that time.
  • Red_D85
  • Red_D85
10 Sep 2025 04:50
Replied by Red_D85 on topic Lichuan Ethercat io

Lichuan Ethercat io

Category: Deutsch

Guten Morgen.

hat niemand Erfahrungen?
  • electrosteam
  • electrosteam
10 Sep 2025 04:36
RPi 4B - Network File Share - nfs was created by electrosteam

RPi 4B - Network File Share - nfs

Category: Computers and Hardware

Trying to get nfs between workstation and mill.
Posted here hoping the RPi developers may have a solution.

nfs server - workstation: hp desktop ubuntu 24.04.
nfs client - mill: RPi 4B 4GB LC 2.9.4.
 
wifi is working fine.
sftp between the stations without issue.

nfs works after a manual mount on the client.
Cannot get nfs to mount automatically at start up.

The /etc/fstab file is populated (to the best of my searching).
Tried a couple of web suggestions, but no solution yet.

Looked through the startup log:
    - "mount.nfs: Network is unreachable".

Tried several web suggestions, including increasing the wait time.

Did some searching on the Raspberry Forum without success.

When I issue a terminal command "mount' after starting LC, there is a response about an old version and to use "systemctl-daemon reload".
After reboot, entered 'systemctl-daemon reload', got 'command not found'.
Tried 'systemctl daemon-reload', accepted without success.

Any suggestions getting the mount at start-up ?

John.
  • amanker
  • amanker
10 Sep 2025 04:21

Remora - Rpi Software Stepping Using External Microcontroller via SPI

Category: Computers and Hardware

I was using Octopus Pro Board for LinuxCNC. That one is giving some problems. So I bought new board BTT SKR3 so that I can use TMC5160. Can anyone help me setting up its config.txt and LinuxCNC configuration. And connection diagram. I have wired it as per SKR2 board. Pinouts of both boards seems similar. I cant get Machine out of estop. I think there is no communication between rpi and skr3.
Remora.ini
# Basic LinuxCNC config for testing of Remora firmware

[EMC]
MACHINE = Remora-XYZ
DEBUG = 0
VERSION = 1.1

[DISPLAY]
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
ARCDIVISION = 64
GRIDS = 10mm 20mm 50mm 100mm
MAX_FEED_OVERRIDE = 1.2
MIN_SPINDLE_OVERRIDE = 0.5
MAX_SPINDLE_OVERRIDE = 1.2
DEFAULT_LINEAR_VELOCITY = 50.00
MIN_LINEAR_VELOCITY = 0
MAX_LINEAR_VELOCITY = 200.00
DEFAULT_ANGULAR_VELOCITY = 36.00
MIN_ANGULAR_VELOCITY = 0
MAX_ANGULAR_VELOCITY = 45.00
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = ~/linuxcnc/nc_files
INCREMENTS = 50mm 10mm 5mm 1mm .5mm .1mm .05mm .01mm

[KINS]
JOINTS = 3
#KINEMATICS =trivkins coordinates=XYZ kinstype=BOTH
KINEMATICS =trivkins coordinates=XYZ

[FILTER]
PROGRAM_EXTENSION = .py Python Script
py = python

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[RS274NGC]
PARAMETER_FILE = linuxcnc.var

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 0
SERVO_PERIOD = 1000000

[HAL]
HALFILE = remora.hal
POSTGUI_HALFILE = postgui_call_list.hal

[TRAJ]
COORDINATES =  X Y Z 
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_LINEAR_VELOCITY = 50.00
MAX_LINEAR_VELOCITY = 200.00
NO_FORCE_HOMING = 1 

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl

[AXIS_X]
MAX_VELOCITY = 500
MAX_ACCELERATION = 1000.0
MIN_LIMIT = -500
MAX_LIMIT = 500.0

[JOINT_0]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -500.0
MAX_LIMIT = 500.0
MAX_VELOCITY = 500.0
MAX_ACCELERATION = 1000.0
STEPGEN_MAXACCEL = 2000.0
SCALE = 200.0
FERROR = 2
MIN_FERROR = 2.0
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 0
HOME_LATCH_VEL = 0
HOME_SEQUENCE = 0

[AXIS_Y]
MAX_VELOCITY = 250.0
MAX_ACCELERATION = 750.0
MIN_LIMIT = -300.0
MAX_LIMIT = 300.0

[JOINT_1]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -300.0
MAX_LIMIT = 300.0
MAX_VELOCITY = 250.0
MAX_ACCELERATION = 750.0
STEPGEN_MAXACCEL = 2000.0
SCALE = 80.0
FERROR = 9.0
MIN_FERROR = 5.0
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 0
HOME_LATCH_VEL = 0
HOME_SEQUENCE = 0

[AXIS_Z]
OFFSET_AV_RATIO = 0.2
MAX_VELOCITY = 5.0
MAX_ACCELERATION = 200.0
MIN_LIMIT = -280
MAX_LIMIT = 280

[JOINT_2]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -280
MAX_LIMIT = 280
MAX_VELOCITY = 5.0
MAX_ACCELERATION = 200.0
STEPGEN_MAXACCEL = 3000.0
SCALE = 400.0
FERROR = 5
MIN_FERROR = 1.0
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 0
HOME_LATCH_VEL = 0
HOME_SEQUENCE = 0


remora.hal

[code]# load the realtime components

    loadrt [KINS]KINEMATICS
    loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS

    loadrt remora-spi
    #loadrt remora_lpc chip_type=LPC SPI_clk_div=64


# estop loopback, SPI comms enable and feedback
    net user-enable-out     <= iocontrol.0.user-enable-out        => remora.SPI-enable
    net user-request-enable <= iocontrol.0.user-request-enable    => remora.SPI-reset
    net remora-status     <= remora.SPI-status             => iocontrol.0.emc-enable-in
    

# add the remora and motion functions to threads

    addf remora.read servo-thread
    addf motion-command-handler servo-thread
    addf motion-controller servo-thread
    addf remora.update-freq servo-thread
    addf remora.write servo-thread


# Joint 0 setup

    setp remora.joint.0.scale         [JOINT_0]SCALE
    setp remora.joint.0.maxaccel     [JOINT_0]STEPGEN_MAXACCEL

    net xpos-cmd         <= joint.0.motor-pos-cmd     => remora.SP.0  joint.0.motor-pos-fb
#    net j0pos-fb         <= remora.joint.0.pos-fb     => joint.0.motor-pos-fb
#    net j0enable         <= joint.0.amp-enable-out     => remora.joint.0.enable


# Joint 1 setup

    setp remora.joint.1.scale         [JOINT_1]SCALE
    setp remora.joint.1.maxaccel     [JOINT_1]STEPGEN_MAXACCEL

    net j1pos-cmd         <= joint.1.motor-pos-cmd     => remora.joint.1.pos-cmd
    net j1pos-fb         <= remora.joint.1.pos-fb     => joint.1.motor-pos-fb 
    net j1enable         <= joint.1.amp-enable-out     => remora.joint.1.enable


# Joint 2 setup

    setp remora.joint.2.scale         [JOINT_2]SCALE
    setp remora.joint.2.maxaccel     [JOINT_2]STEPGEN_MAXACCEL

    net j2pos-cmd         <= joint.2.motor-pos-cmd     => remora.joint.2.pos-cmd
    net j2pos-fb         <= remora.joint.2.pos-fb     => joint.2.motor-pos-fb
    net j2enable         <= joint.2.amp-enable-out     => remora.joint.2.enable




config.txt
[code]{
    "Board": "BIGTREETECH SKR v3",
    "Modules":[
    {
    "Thread": "Servo",
    "Type": "Reset Pin",
        "Comment":            "Reset pin",
        "Pin":                "PC_4"
    },
    {
    "Thread": "On load",
    "Type": "Motor Power",
        "Comment": "Enable motor power SKR2",
        "Pin":                     "PC_13"
    },
    {
    "Thread": "Base",
    "Type": "Stepgen",
        "Comment":            "X - Joint 0 step generator",
        "Joint Number":        0,
        "Step Pin":         "PD_4",
        "Direction Pin":     "PD_3",
        "Enable Pin":         "PD_6"
    },
    {
    "Thread": "Base",
    "Type": "Stepgen",
        "Comment":            "Y - Joint 1 step generator",
        "Joint Number":        1,
        "Step Pin":         "PA_15",
        "Direction Pin":     "PA_8",
        "Enable Pin":         "PD_1"
    },
    {
    "Thread": "Base",
    "Type": "Stepgen",
        "Comment":            "Z - Joint 2 step generator",
        "Joint Number":        2,
        "Step Pin":         "PE_2",
        "Direction Pin":     "PE_3",
        "Enable Pin":         "PE_0"
    },

    {
    "Thread": "Servo",
    "Type": "Digital Pin",
        "Comment":            "X min",
        "Pin":                "PC_1",
        "Mode":                "Input",
        "Data Bit":            0
    },
    {
    "Thread": "Servo",
    "Type": "Digital Pin",
        "Comment":            "X max",
        "Pin":                "PC_2",
        "Mode":                "Input",
        "Data Bit":            1
    },
    {
    "Thread": "Servo",
    "Type": "Digital Pin",
        "Comment":            "Y min",
        "Pin":                "PC_3",
        "Mode":                "Input",
        "Data Bit":            2
    },
    {
    "Thread": "Servo",
    "Type": "Digital Pin",
        "Comment":            "Y max",
        "Pin":                "PA_0",
        "Mode":                "Input",
        "Data Bit":            3
    },
    {
    "Thread": "Servo",
    "Type": "Digital Pin",
        "Comment":            "Z min",
        "Pin":                "PC_0",
        "Mode":                "Input",
        "Data Bit":            4
    },
    {
    "Thread": "Servo",
    "Type": "Digital Pin",
        "Comment":            "Z max",
        "Pin":                "PC_15",
        "Mode":                "Input",
        "Data Bit":            5

    }
    ]
}
[/code][/code]

  • scotth
  • scotth
10 Sep 2025 03:38
Replied by scotth on topic The forum is really laggy recently.

The forum is really laggy recently.

Category: Forum Questions

I'm having the same problem. Got on using the .org just a while ago and now trying the 162.243.45.186. I will see if works any faster.
  • scsmith1451
  • scsmith1451's Avatar
10 Sep 2025 00:35
Replied by scsmith1451 on topic Mapping key codes to specific jog rates

Mapping key codes to specific jog rates

Category: Advanced Configuration

You are correct, not much there.
  • PCW
  • PCW's Avatar
10 Sep 2025 00:00

HAL help needed for MPG wheel jogging and machine enabling logic

Category: HAL

OK so if you are supplying the same 24V to TB3 and TB1
the 5V and 24V grounds are already common so that's OK.

Does hm2_7i76e.0.7i76.0.0.enc0.count change when you turn the MPG?

 
  • LinuxCrashOut
  • LinuxCrashOut's Avatar
09 Sep 2025 23:12

HAL help needed for MPG wheel jogging and machine enabling logic

Category: HAL

I already have
0) **Power**

    | TB1 pin  |  Name   | Terminal block |
    |:---|:-----|:---|
    | 5 | VIN |  24V+  |     
    | 8 | GROUND |  0V  |     

    | TB3 pin  |  Name   | Terminal block |
    |:---|:-----|:---|
    | 22 | UNREG LOGIC PWR+ IN |  24V+  |     
    | 23 | GND |  0V  |    

And from my post above, I wrote :
| TB3 pin  |  Name   | MPG contact |
    |:---|:-----| :--- |
    | 9 | GND | VCC |
    | 12 | +5VP | GND |

but I meant:
| TB3 pin  |  Name   | MPG contact |
    |:---|:-----| :--- |
    | 9 | GND | GND |
    | 12 | +5VP | VCC |

is the GND on pin 9 floating and I need to wire it to the GND from my power supply?

bit lost here...
  • PCW
  • PCW's Avatar
09 Sep 2025 21:49

HAL help needed for MPG wheel jogging and machine enabling logic

Category: HAL

For the MPG wiring you would also need the field power common
to connect to the MPG GND
  • LinuxCrashOut
  • LinuxCrashOut's Avatar
09 Sep 2025 21:07 - 09 Sep 2025 21:15

HAL help needed for MPG wheel jogging and machine enabling logic

Category: HAL

Hello guys, 

Trying to set up two things :

1) I want my machine to be enabled as soon as I disengage the estop, so halui.machine.is-on is true when the estop is not pressed.

I already have this 

# --- Physical E-stop on INPUT27 ---
# Normally open: 0 = OK, 1 = E-stop pressed

net estop-in    <=  hm2_7i76e.0.7i76.0.0.input-27
net estop-in    =>  iocontrol.0.emc-enable-in

I tried a lot of different ways but unsuccessfully. The most I could do was that the machine was on at start, when the estop was not pushed, but after cycling the estop, the machine would not get back to its on state.

# Load the required components
loadrt toggle2nist
loadrt timedelay
loadrt oneshot

# Add functions to threads
addf toggle2nist.0 servo-thread
addf timedelay.0 servo-thread
addf oneshot.0 servo-thread

# Configure components
setp timedelay.0.on-delay 2.0
setp timedelay.0.off-delay 0.0
setp oneshot.0.width 0.1  # Short pulse

# Create a not component for inversion (using existing not component)
loadrt not names=not.estop
addf not.estop servo-thread

# Connect iocontrol.0.user-enable-out to not component
net user-enable-status iocontrol.0.user-enable-out => not.estop.in

# Detect estop clearance edge (inverted signal)
net estop-cleared <= not.estop.out
net estop-cleared => oneshot.0.in
net estop-pulse oneshot.0.out => timedelay.0.in

# Use existing machine status signal
net machine-is-on => toggle2nist.0.is-on

# Connect delayed pulse to toggle
net delayed-pulse timedelay.0.out => toggle2nist.0.in

# Connect toggle output
net machine-on-toggle toggle2nist.0.on => halui.machine.on

Can you guys tell me why it does not work, what I am doing wrong or forgot?

2) I tried adding an MPG, but I am lost and the documentation is not very helpful for a beginner.

I am wiring my mpg as described in the attached picture but I was not able to make it work :

 

Here is the wiring for my pins on my mesa 7i76e :

5) **Jog MPG** (hm2_7i76e.0.7i76.0.0.enc0.count)

    | TB3 pin  |  Name   | MPG contact |
    |:---|:-----| :--- |
    | 9 | GND | VCC |
    | 12 | +5VP | GND |

    | TB5 pin  |  Name   | MPG contact |
    |:---|:-----| :--- |
    | 1 | INPUT16 | A+ |
    | / | / | A- |
    | 2 | INPUT17 | B+ |
    | / | / | B- |

6) **Jog enabling button**

    | TB5 pin  |  Name   | HAL name |
    |:---|:-----|:---|
    | 5 | INPUT20 | hm2_7i76e.0.7i76.0.0.input-20 |

7) **Speed selector button**

    | TB5 pin  |  Name   |  Position  |
    |:---|:-----|:---|
    | 6 | INPUT21 | X1 |
    | 7 | INPUT22 | X100 |

    If none is selected, the speed is X10

8) **Axis selector button**

    | TB5 pin  |  Name   |  Position  |
    |:---|:-----|:---|
    | 8 | INPUT23 | X |
    | 9 | INPUT24 | Z |

So, if someone has the code for an mpg wired like that, on a 7i76e, I would really appreciate it!

My ini and hal files are attached.
  • PCW
  • PCW's Avatar
09 Sep 2025 20:59

Troubles to get started with SD240 Retrofit

Category: Turning

Yes, sounds like its working now, sorry I missed that the index was single ended.

The 7I33 can just change the input mode of each encoder interface (A,B,IDX), not pin-by-pin
as most newer Mesa cards can do.
 
  • ziggi
  • ziggi's Avatar
09 Sep 2025 20:42 - 09 Sep 2025 20:49

Troubles to get started with SD240 Retrofit

Category: Turning

So I set the jumpers on the 7i33 for X- and Z-axis to TTL (DOWN) and entered the USE INDEX- YES in the INI. Both axes behave normal and I think they home with using the index now.
Sequence:
Homing movement
Home switch trips- "home sw. X" gets yellow, "enable index" lights up yellow and the axis moves forward a bit further.Then the "hm2_7i80.0.encoder.00.input-index" flashes yellow very short, the axis frees the home switch and moves on to home-pos, stops and "x-axis homed" lights up yellow and the DRO says 0/0.

Z homes the same way. 

I think thats exactly what I wanted to achieve- correct? 
The spindle I guess can be indexed also, otherwise threading would be impossible...but the spindle likely just needs the index, A/B will not be necessary on a lathe- or am I wrong?
Well lets see how the next step can be solved.

The important hint was that the 7i33 just can process ALL inputs as TTL or ALL inputs as differential!
Thank you all so much
Sigi
  • scotta
  • scotta's Avatar
09 Sep 2025 20:40

Remora - Rpi Software Stepping Using External Microcontroller via SPI

Category: Computers and Hardware

Hi, please share your config files. If signals can be seen in Hal Meter there must be another config issue.
  • PCW
  • PCW's Avatar
09 Sep 2025 20:26
Replied by PCW on topic Homing is not working

Homing is not working

Category: HAL

Does individual joint homing work?

(comment out the HOME_SEQUENCE settings in the .ini file)
 
  • PCW
  • PCW's Avatar
09 Sep 2025 19:58

Driving my SyilX3 and Plasma cutter machine with 5i25t which provided driver?

Category: Driver Boards

Here's a basic try at this using the stepgen mapping:

0 = X
1 = Y
2 = Z
3 = A

 

File Attachment:

File Name: 5i25t_syil3a.zip
File Size:134 KB


The zip file includes the firmware and the modified pinout  source file
Displaying 1921 - 1935 out of 22556 results.
Time to create page: 0.544 seconds
Powered by Kunena Forum