Advanced Search

Search Results (Searched for: )

  • MRx
  • MRx
Yesterday 17:15
Replied by MRx on topic XHC WHB04B development?

XHC WHB04B development?

Category: General LinuxCNC Questions

Under normal operation there's no disconnect of the XHC pendant. It's solid. If you power it off it will disconnect.

I heard from others that they had EMI problems with USB and the XHC pendant in the past, I'm going to operate it with a large CNC in the near future so I will see if it will hit me too.
I think you have to fix a problem on the USB layer, maybe use another system which has a native USB 2.0/ehci port. The XHCI USB ports can cause issues depending on the hardware.

By the way you can easily convert an WHB04B to 6 axis by removing a stopper with a knife which is inside the rotary switch. 6 axis are wired up even on the 4 axis versions.
  • andrax
  • andrax's Avatar
Yesterday 16:51

Technical questions about CIA402 and homecomp.comp on A6

Category: EtherCAT

I have an idea.
rodw: Can you make the bits from 0x6041 available as pins?
Then we can observe the bits during the home run.
If we know which bit is set when, the state machine could be set up accordingly.
But maybe we're overcomplicating things.
I took a look this afternoon and looked at various CIA drives. 0x6040 and 0x6041 are standardized. All CIA402-compatible drives use the same bits. 
See here:
Bosh Rexroth CIA Status word

That means all we really need to do is find a suitable SCL code from Beckhoff or Siemens and rewrite it for Linuxcnc. For example, this one:
VAR
    // PDO mapping inputs (from the drive)
    wStatusword : WORD; // 0x6041
    iActualMode : SINT; // 0x6060
    
    // PDO mapping outputs (to the PLC)
    wControlword : WORD; // 0x6040
    iModeOfOp    : SINT; // 0x6060
    
    // Control / Monitoring
    bStartHoming : BOOL;    // Trigger
    bHomingActive: BOOL;    // Status
    bHomed       : BOOL;    // Target reached
    bError       : BOOL;    // Monitoring: Error
    iState       : INT := 0; // Step chain
    
    // Monitoring: Timer
    fbTimeout : TON;
END_VAR

// --- Read status bits from status word (0x6041) ---
// Bit 12: Homing process running / successful (depending on method)
// Bit 13: Homing error
// Bit 10: Target reached (often used during homing)
bHomingActive := (wStatusword.12); // Homing operation in progress
bHomed        := (wStatusword.12) AND (wStatusword.10); 
bError        := (wStatusword.13); // Homing error

// --- Monitoring (timeout) ---
fbTimeout(IN := bHomingActive AND NOT bHomed, PT := T#10S);

// --- State machine for homing (CiA 402) ---
CASE iState OF
    0: // Wait for start
        IF bStartHoming AND NOT bError THEN
            bStartHoming := FALSE;
            iState := 10;
        END_IF;
 10: // Set mode of operation to “Homing” (6)
        iModeOfOp := 6;
        IF iActualMode = 6 THEN
            iState := 20;
        END_IF;

    20: // Set drive to “Operation Enabled” (standard CiA402 state machine)
        // Simple example: Set control word to 0x0F (Enable)
        wControlword := 16#000F;
        IF (wStatusword AND 16#006F) = 16#0027 THEN // Ready to operate
            iState := 30;
        END_IF;

    30: // Start homing: Set bit 4 in control word (start homing procedure)
        wControlword := 16#001F; // Bit 4 high, enable op
        IF bHomingActive THEN
            iState := 40;
        END_IF;
        IF fbTimeout.Q OR bError THEN iState := 999; END_IF; // Monitoring

    40: // Wait for completion
        IF bHomed THEN
            wControlword := 16#000F; // Reset homing start bit
            iState := 0;
        END_IF;
        IF fbTimeout.Q OR bError THEN iState := 999; END_IF; // Monitoring

    999: // Error state
        // Error handling: Cancel homing, set message
        wControlword := 16#000F; // Stop
        bError := TRUE;
        IF NOT bStartHoming THEN iState := 0; bError := FALSE; END_IF;
END_CASE;
 
  • Hakan
  • Hakan
Yesterday 16:48 - Yesterday 16:50
Replied by Hakan on topic XHC WHB04B development?

XHC WHB04B development?

Category: General LinuxCNC Questions

Had a session with a lot of mode shifts, auto programs, manual and mdi and not being careful when mode shifting.
Worked great, it felt like there was no problem with the xhc.
I had checked autosuspend which was set to 2. Set it to -1 and the disconnect/connects in syslog stopped.

Finished after a few hours. Checked syslog and now the xhc is just laying there doing nothing on the milling machine.
The faint light is on, that's all. And the syslog fills with new disconnect/connects. Every 10-20 seconds it happens.
autosuspend was already set to -1.
Went to the milling machine and turned off the pendant. New disconnects/connects stopped coming in syslog.
Didn't touch the usb dongle during the whole day. The pendant causes the disconnects? When idle?
 
  • PCW
  • PCW's Avatar
Yesterday 16:30

Integrating a BCL-AMP capacitive sensor to LinuxCNC

Category: Plasma & Laser

That entirely depends on your scaling.

On way to check is to monitor the "plasma_voltage"
 and determine the threshold  for the fake Ohmic sense point.
  • Nathan40
  • Nathan40
Yesterday 15:56

Integrating a BCL-AMP capacitive sensor to LinuxCNC

Category: Plasma & Laser

Thanks for the reply.
For the 930000, fake ohmic sensing are we expecting the voltage value to around 15500.

Please let me know
  • turbohoolik
  • turbohoolik
Yesterday 15:35
Replied by turbohoolik on topic Soft limits are not working all the time...

Soft limits are not working all the time...

Category: Basic Configuration

Found my problem, the problem was me!
My soft limits were further away than hard limit switches. Why I was set it up like this, I have no idea...

Thank everybody for thinking with me!
  • PCW
  • PCW's Avatar
Yesterday 15:15

Integrating a BCL-AMP capacitive sensor to LinuxCNC

Category: Plasma & Laser

If you do not, you will have a huge offset that would have to be compensated
by using a similar setpoint. If you use the 22900 offset, you will now have
a 0 to 1000 active range ( if scale = 1)
  • tommylight
  • tommylight's Avatar
Yesterday 14:44
Replied by tommylight on topic socket raw Eth.

socket raw Eth.

Category: Computers and Hardware

That was me, i did check and it was the same post, and at the time the post here was not deleted.
Sorry for the inconvenience.
  • Marcos DC
  • Marcos DC's Avatar
Yesterday 14:12

Technical questions about CIA402 and homecomp.comp on A6

Category: EtherCAT

Good point about the homing bits being mode-specific / poorly documented. I initially mentioned bit12 as an example, assuming we’re aiming for a generic solution, but that’s clearly not something we can rely on.

I think the right approach is to keep the core logic generic (state machine + timeouts + progress watchdog), and make the actual homing status (done/active/error) configurable per drive, e.g. via masks on 0x6041.

While internal homing runs, keeping pos_cmd slaved to pos_fb still seems necessary to avoid the jump when control is handed back.

With that, A6 becomes just one mapping, not a special case baked into the algorithm.
  • MRx
  • MRx
Yesterday 13:38
Replied by MRx on topic XHC WHB04B development?

XHC WHB04B development?

Category: General LinuxCNC Questions

Disconnects might be caused by multiple reasons.

a) poor xhci support for that system - try to connect the pendant to a USB 2.0 port
b) check if USB autosuspend is disabled (as root)
cat >/sys/module/usbcore/parameters/autosuspend
echo -1 >/sys/module/usbcore/parameters/autosuspend
c) if connected to a USB hub - don't do that, connect it directly
d) EMI issues, check if there's a pattern that can trigger this, check if a relay is able to disconnect it somehow; I had HDMI displays resetting due to issues with relays a decade ago (eg. missing flyback diodes)

I worked on the XHC pendant some years ago to fix some issues, I never had disconnect issues with it.
  • Aciera
  • Aciera's Avatar
Yesterday 13:30
Replied by Aciera on topic socket raw Eth.

socket raw Eth.

Category: Computers and Hardware

The issue was that you have posted the same question in two different topics. That is called 'Double posting' and is against forum rules and why I removed the post here.
Unfortunately somebody else seems to have worked on removing the other topic at the same time.
  • Mr. Mass
  • Mr. Mass's Avatar
Yesterday 13:02
Replied by Mr. Mass on topic Control panel

Control panel

Category: Show Your Stuff

Thank you. This is an industrial keyboard from SYNTEK, model SK4-MB. It is made on a single board, but electrically there are two keyboards. The upper part with letters and numbers is a standard PS/2 (I had to figure out how to remap it). The lower part is a matrix keyboard combined with LEDs. Connecting and configuring it was the most time-consuming part of the job.
  • Looby
  • Looby
Yesterday 13:00
Replied by Looby on topic Electrical Contactors/Relay Help?

Electrical Contactors/Relay Help?

Category: Milling Machines

I feel like Im taking crazy pills... I swear Ive read that 2 dozen times in the past few days.  I THINK whats happened is I have been making an assumption on some things that I shouldnt have.  I have seen that inrush current on inductive loads can be 5-10x the constant running amps and assumed that I needed to have a contactor that was rated for THAT amount.  WOW I feel like a huge mental burden has been lifted as I have been stressing over this for a week.  Ive bought all the stuff for this CNC project and then hit this and was worried my plan wasnt possible and I had wasted a bunch of time and money.  


About a quarter the way down this states
"As a result, the motor attempts to draw the locked-rotor current (LRA), which is typically 6 to 8 times greater than the full-load current. If this high inrush current is not quickly reduced, the motor windings will overheat and may eventually burn out."
www.electricaltechnology.org/2025/06/siz...ctor-controller.html


Under the AC3 
"The most common category, AC3, governs contactors for squirrel-cage induction motors, which constitute 70% of industrial motor applications812. These motors exhibit high inrush currents (5–7× rated current) during startup but stabilize during running."
viox.com/electrical-standards-for-contac...lization-categories/


The below are just amazon listings and are specific to solid state relays

At the bottom of the page under the wiring diagram this relay states
"How to choose correctly:
STEP 1: Choose a correct type Current of Equipment/Ratio = Current of SSR PS: The Ratio depend on the kind of your loading equipment. Resistive load :70%, Inductive load:20%,Capacitive load:10%."
www.amazon.com/CGELE-SSR-80DD-3-32VDC-5-...astic/dp/B09HRX922Z/


This one states the
"Step 2: Choose the Correct Current
For resistive loads:SSR current = 2 x operating current of the load (heating equipment, etc.)
For inductive loads:SSR current = 6 x operating current of the load (motor, etc.)
For capacitive loads:SSR current = 10 X the operating current of the load (capacitance, etc.)"
www.amazon.com/LCLCTC-Solid-Output-24-48...iator/dp/B0BVFP7YB2/
  • Hakan
  • Hakan
Yesterday 12:49 - Yesterday 13:00
Replied by Hakan on topic Ethercat beckho el2819 conf

Ethercat beckho el2819 conf

Category: EtherCAT

The output of the command "lcec_configgen" should give you something you can use.
Cut out the part for the el2819. Adapt the names of the device and pins as needed.
Two examples for naming of bit outputs
forum.linuxcnc.org/ethercat/58248-kinko-ect-coupler#341688
  • GDTH
  • GDTH's Avatar
Yesterday 11:07
Ethercat beckho el2819 conf was created by GDTH

Ethercat beckho el2819 conf

Category: EtherCAT

Hi,I'm using LinuxCNC with the linuxcnc-ethercat driver and noticed that the EL2819 is not supported out of the box.The slave is detected by the EtherCAT master, but it isn’t mapped correctly in linuxcnc-ethercat.Since the EL2819 is a 16-channel digital output (similar to other EL28xx modules), is there an existing definition I can use, or do I need to manually add support (e.g. by copying a similar module and adjusting the PDO mapping)?Thanks for any guidance.
Displaying 46 - 60 out of 19092 results.
Time to create page: 1.205 seconds
Powered by Kunena Forum