Advanced Search

Search Results (Searched for: )

  • MennilTossFlykune
  • MennilTossFlykune
21 May 2025 14:57
Replied by MennilTossFlykune on topic Manual Toolchange + Abs Z Probe (QtDragon)

Manual Toolchange + Abs Z Probe (QtDragon)

Category: Qtvcp

Reading Work Coordinates When Loading a New NGC File  

When loading a new `.ngc` file in LinuxCNC, is it possible to read the work coordinates at that stage? Since the G-code has not been executed yet, the work coordinates might not be applied.  

Would it be possible to create a custom button, similar to "WCS Sync," that reads the `.ngc` file and sends commands like `G55` to MDI?  

Has anyone implemented something similar, or does LinuxCNC provide a built-in way to achieve this? Any insights or suggestions would be greatly appreciated.

Thanks!
 

You can add this under StatCanon in qt5_graphics.py:
    def set_g5x_offset(self, index, x, y, z, a, b, c, u=None, v=None, w=None):
        interpret.Translated.set_g5x_offset(self, index, x, y, z, a, b, c, u, v, w)        
        g5x = {
            1: 54,
            2: 55,
            3: 56,
            4: 57,
            5: 58,
            6: 59,
            7: 59.1,
            8: 59.2,
            9: 59.3
        }
        print(f"G{g5x[index]} on line {self.lineno}")
  • kjlty
  • kjlty
21 May 2025 14:53 - 21 May 2025 14:53

Ethercat installation from repositories - how to step by step

Category: EtherCAT

How to install the latest linuxcnc-ethercat on Debian 10 (lcnc2.94)?
  • oddwick
  • oddwick's Avatar
21 May 2025 14:33

[SOLVED] MesaCT problems with 7i96 pwm spindle

Category: Configuration Tools

ok so heres a pic of the conns. i have verified everything all the way up to them is working. spindle start is on ssr.03, and all the wiring from the mesa to the vfd is tested. as best as i can tell P00.01 should switch between the keypad and remote switching. i can change the frequency from linuxcnc but thats about all. 

the manual is here: www.huanyangvfd.com/wp-content/uploads/2.../FC01-Series-VFD.pdf

 
  • Routerworks
  • Routerworks
21 May 2025 14:11
Replied by Routerworks on topic Calling next subroutine messes up offsets

Calling next subroutine messes up offsets

Category: General LinuxCNC Questions

No tool changer or offset.
I manually move the head to a zero position and insert the new tool. Then I use G54 offset to give it the program height, then run.

Went back and tried to regenerate this, it seems to not be very good at it.
I think I am either going to have to split the operations into separate programs or learn how to assemble this myself. I haven't given up on learning how to take the code, create subroutines and write the code for multiple locations.

Don't think I need the G92s. When I enter the Z location it moves the entire 4 location layout on the screen. Have no idea why.
Anyhow, more to do and learn.

Almost there, I think

thanks
  • rdtsc
  • rdtsc's Avatar
21 May 2025 13:01 - 21 May 2025 13:01

Linuxcnc 2.9.4 .iso on Rpi5: apt update does not build /boot/initrd.gz

Category: Installing LinuxCNC

Noted, and quite tricky indeed; thanks for staying the course and helping out so many people. Think the rpi-5-debian-bookworm-6.1.61-rt15-arm64-ext4-2023-11-17-1520.img.xz from linuxcnc.org/iso/ is missing the [rpi5] section in config.txt - I've tried this one several times, and it always kernel panics 0.5s into boot. I must have been using the rpi-5-debian-bookworm-6.12.11-arm64-ext4-2025-01-27-0140.img.xz before - will try that one again.

P.S. of course, after flashing the SD card, then I find the whole-SD backup, d'oh!
  • MTate01
  • MTate01
21 May 2025 12:59
Replied by MTate01 on topic RTelligent EtherCAT Servo Drive Setup: RS750E

RTelligent EtherCAT Servo Drive Setup: RS750E

Category: EtherCAT

Thanks for the reply - didn't get a notification of it, sorry for taking a little while to respond.

Okay noted, I will do my best to configure a cia402.hal file instead of the method i've been doing it...

but good news is that i've been able to move the drive to an "OP"erational state. very happy with even this little progress haha. will post my cia402.hal once i've got it to compile.
  • Lcvette
  • Lcvette's Avatar
21 May 2025 12:46
Replied by Lcvette on topic Mill as lathe with probebasic

Mill as lathe with probebasic

Category: QtPyVCP

can't imagine why not. is this a traditional xyz mill? I have not done this in PB before, but you may be able to simply go into the custom_config.yml and expand the mills tool table columns to include the X and Y offsets and use those for setting up your lathe tools to align them with the work centerline. I can confirm when using stationary offset mounted touch probes this works great. I think if you are just looking to do simple turning (actual turning in X and Z axis only like a traditional lathe) that this would work in that manner.

you may need to adjust the turning post to call tools as a mill post would in order to utilize those X and Y offsets.
  • Lcvette
  • Lcvette's Avatar
21 May 2025 12:03
Replied by Lcvette on topic Activate B-axis in Porbe Basic

Activate B-axis in Porbe Basic

Category: QtPyVCP

I think that the dro control box section will likely soon become a user tab module that can be setup per the users requirement and kept in the config folder. seems too many configurations to keep up with otherwise and really taxes the ui build having to keep so many dro's running and active.

I will take a look and see what would be required for that.
  • SanzuiWorks
  • SanzuiWorks's Avatar
21 May 2025 11:45
Replied by SanzuiWorks on topic Manual Toolchange + Abs Z Probe (QtDragon)

Manual Toolchange + Abs Z Probe (QtDragon)

Category: Qtvcp

So far, this method is not working well.
Nothing happens when I load the NGC. For now, I would like to try a different method.

I am considering creating an action button that retrieves the first WSC from the loaded NGC and sends it to the MDI. ...
  • Aciera
  • Aciera's Avatar
21 May 2025 08:58

GMOCCAPY 3.4.9 LCD7" can not display the whole GUI

Category: Gmoccapy

If I am not mistaken then 600 vertical is not enough for the regular version, maybe this custom config for 800x600 helps:
github.com/LinuxCNC/linuxcnc/pull/2837
  • Hakan
  • Hakan
21 May 2025 08:49

RTelligent EtherCAT Servo Drive Setup: RS750E

Category: EtherCAT

Typically you want to use the cia402 component with such a drive.
The cia402 component is in your installation already, here is an
example of how to set it up in  hal.
github.com/dbraun1981/hal-cia402/tree/main/example
  • Hakan
  • Hakan
21 May 2025 08:13
Replied by Hakan on topic Experimental XML config generator

Experimental XML config generator

Category: EtherCAT

It's
lcec_configgen
and comes with the linuxcnc-ethercat package. It first appeared a year ago (April -24) so might be too new for your installation.
 
  • MTate01
  • MTate01
21 May 2025 08:12 - 21 May 2025 08:22

RTelligent EtherCAT Servo Drive Setup: RS750E

Category: EtherCAT

Good day

I am currently trying to configure my linuxcnc to communicate with an RTelligent (Shenzhen Ruitech) RS750E AC Servo Drive. 

So far, I think I've correctly compiled an ethercat-conf.xml file for the single slave (for now) (from here) but am struggling with any further steps. I can successfully read registers (ie cia-controlword) and things like that, I can attempt to write them - by setting pins eg setp lcec.0.0.cia-controlword 15, but there is no change in cia-statusword. The same applies for opmode. 

Additionally, my drive never seems to exit PREOP. sudo ethercat states -p0 OP doesn't change state from PREOP. I figure that there is something I might need to do with registers, either in a specific order, or through the PC software (RSConfigurator), but the latter is rather confusing and i've had no success attempting such. I can change it to and from INIT (without errors) to PREOP (without errors), but as soon as I try SAFEOP or OP it stalls back to PREOP and has an error flag. I assume this means my XML might be wrong. 
I've also attempted to set up my ethercat.hal and changed the joint/axis info in my axis-edited.ini, but still no change occurs on the drive or servo. 

I cannot find any documentation on these AC servo drives from RTelligent here, but I will also be sending their support a ticket to see if they can help me. The appropriate files are below:

ethercat-conf.xml:
[code]<masters>
 <master idx="0" appTimePeriod="1000000" refClockSyncCycles="1000">
  <slave idx="0" type="generic" vid="00000A88" pid="0a880013" configPdos="tru>
    <!-- Joint 0 -->
    <syncManager idx="0" dir="out">
    </syncManager>
    <syncManager idx="1" dir="out">
    </syncManager>
    <syncManager idx="2" dir="out">
      <pdo idx="1600">
        <pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="cia-controlword">
        <pdoEntry idx="607a" subIdx="00" bitLen="32" halPin="target-position">
        <pdoEntry idx="60b8" subIdx="00" bitLen="16" halPin="touchprobefuncti>
      </pdo>
      <pdo idx="1601">
        <pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="cia-controlword0>
        <pdoEntry idx="607a" subIdx="00" bitLen="32" halPin="target-position0>
        <pdoEntry idx="6081" subIdx="00" bitLen="32" halPin="target-velocity">
        <pdoEntry idx="6083" subIdx="00" bitLen="32" halPin="target-accel" ha>
        <pdoEntry idx="6084" subIdx="00" bitLen="32" halPin="target-decel" ha>
        <pdoEntry idx="6060" subIdx="00" bitLen="8" halPin="opmode" halType=">
      </pdo>
      <pdo idx="1602">
        <pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="drivecontrol2" h>
        <pdoEntry idx="6083" subIdx="00" bitLen="32" halPin="accelcommand2" h>
        <pdoEntry idx="6084" subIdx="00" bitLen="32" halPin="decelcommand2" h>
        <pdoEntry idx="60ff" subIdx="00" bitLen="32" halPin="targetvelocomman>
        <pdoEntry idx="6060" subIdx="00" bitLen="8" halPin="modeofoperation2">
      </pdo>
    </syncManager>
    <syncManager idx="3" dir="in">
      <pdo idx="1a00">
        <pdoEntry idx="603f" subIdx="00" bitLen="16" halPin="errorcode" halTy>
        <pdoEntry idx="6041" subIdx="00" bitLen="16" halPin="cia-statusword" >
        <pdoEntry idx="6061" subIdx="00" bitLen="8" halPin="opmode-display" h>
        <pdoEntry idx="6064" subIdx="00" bitLen="32" halPin="actual-position">
        <pdoEntry idx="60b9" subIdx="00" bitLen="16" halPin="touchprobestat" >
        <pdoEntry idx="60ba" subIdx="00" bitLen="32" halPin="touchprobe1pos" >
        <pdoEntry idx="60fd" subIdx="00" bitLen="32" halPin="digitalinputs" h>
      </pdo>
      <pdo idx="1a01">
        <pdoEntry idx="6041" subIdx="00" bitLen="16" halPin="drivecontroltx1">
        <pdoEntry idx="6061" subIdx="00" bitLen="8" halPin="modeofoperationtx>
        <pdoEntry idx="6064" subIdx="00" bitLen="32" halPin="actual-velocity">
        <pdoEntry idx="60fd" subIdx="00" bitLen="32" halPin="digitalinputs1" >
      </pdo>
    </syncManager>
    <dcConf assignActivate="300" sync0Cycle="1"/>
  </slave>
 </master>
</masters>

a modified ethercat-conf, with the same results:
[code]<masters>
 <master idx="0" appTimePeriod="1000000" refClockSyncCycles="1000">
  <slave idx="0" type="generic" vid="0x00000A88" pid="0x0A880013" configPdos="true">
   <syncManager idx="2" dir="out">
    <pdo idx="1600">
     <pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="cia-controlword"/>
     <pdoEntry idx="607A" subIdx="00" bitLen="32" halPin="target-position"/>
    </pdo>
   </syncManager>
   <syncManager idx="3" dir="in">
    <pdo idx="1A00">
     <pdoEntry idx="6041" subIdx="00" bitLen="16" halPin="cia-statusword"/>
     <pdoEntry idx="6064" subIdx="00" bitLen="32" halPin="actual-position"/>
    </pdo>
   </syncManager>
   <dcConf assignActivate="300" sync0Cycle="1"/>
  </slave>
 </master>
</masters>

ethercat.hal:
[code]loadusr -W lcec_conf ethercat-conf.xml
loadrt lcec
addf lcec.read-all servo-thread
addf lcec.write-all servo-thread

setp lcec.0.0.opmode 8
setp lcec.0.0.cia-controlword 15
setp lcec.0.0.opmode 8
[/code][/code][/code]
  • tommylight
  • tommylight's Avatar
21 May 2025 07:35
Replied by tommylight on topic The numpty needs help

The numpty needs help

Category: Basic Configuration

Personally, i would not update if everything is working properly, i still have plenty of machines running 10.04.
The main reason being, 10.04 uses RTAI kernel, while everything after Wheezy uses RT-Preempt kernel that is better suited to new PC's, so it might limit the step rate you can get/machine speed, sometimes a lot.
-
If you still want to move ahead, upload the old and the new configs here.
Usually the wizard will convert working configs form 2.5-2.7 to 2.8-2.9 without issues the first time you run the old config, so what happened? Does the machine have non standard ...something or anything?
Right click on the old .ini file, choose open with, type linuxcnc near the bottom of that window, click OK, what happens?
  • tommylight
  • tommylight's Avatar
21 May 2025 07:27
Replied by tommylight on topic [SOLVED] MesaCT problems with 7i96 pwm spindle

[SOLVED] MesaCT problems with 7i96 pwm spindle

Category: Configuration Tools

Pictures of your VFD connectors?
Not from the net, last week i dealt with two of the same make and model VFD that are not the same in any way, nor are the electronics the same.
Displaying 3361 - 3375 out of 24859 results.
Time to create page: 0.276 seconds
Powered by Kunena Forum