Advanced Search

Search Results (Searched for: )

  • jochen91
  • jochen91
14 Apr 2025 08:44 - 14 Apr 2025 08:47

Planning to Retrofit a Mazak Integrex200Y Mill-Turn Machine

Category: Advanced Configuration

Hi Tommy,

i think i never used the lower case "s". I used the millturn.comp for this function. Here is the part from my comp file:

EXPORT_SYMBOL(kinematicsType);
EXPORT_SYMBOL(kinematicsSwitchable);
EXPORT_SYMBOL(kinematicsSwitch);
EXPORT_SYMBOL(kinematicsInverse);
EXPORT_SYMBOL(kinematicsForward);

static hal_u32_t switchkins_type;

int kinematicsSwitchable() {return 1;}

int kinematicsSwitch(int new_switchkins_type)
{
switchkins_type = new_switchkins_type;
rtapi_print("kinematicsSwitch(): type=%d\n",switchkins_type);
// create case structure for switchable kinematics
switch (switchkins_type)
{
case 0: rtapi_print_msg(RTAPI_MSG_INFO,
"kinematicsSwitch:TYPE0\n");
*haldata->kinstype_is_0 = 1;
*haldata->kinstype_is_1 = 0;
break;
case 1: rtapi_print_msg(RTAPI_MSG_INFO,
"kinematicsSwitch:TYPE1\n");
*haldata->kinstype_is_0 = 0;
*haldata->kinstype_is_1 = 1;
break;
default: rtapi_print_msg(RTAPI_MSG_ERR,
"kinematicsSwitch:BAD VALUE <%d>\n",
switchkins_type);
*haldata->kinstype_is_1 = 0;
*haldata->kinstype_is_0 = 0;
return -1; // FAIL
}
return 0; // ok
}
  • rodw
  • rodw's Avatar
14 Apr 2025 08:39
Replied by rodw on topic Problem with THC

Problem with THC

Category: Plasmac

You need to plot the voltage or encoder with halscope. I think that is way too low. I would expect around 130 volts. I suspect the THCAD is not properly calibrated. The plot will tell you how long to delay. I would check the input voltage at the thcad with a multimeter.

I did have a machine once that needed about 2 seconds to be stable...
  • tommylight
  • tommylight's Avatar
14 Apr 2025 08:27

Planning to Retrofit a Mazak Integrex200Y Mill-Turn Machine

Category: Advanced Configuration

motmod: dlopen: /usr/lib/linuxcnc/modules/motmod.so: undefined symbol: kinematicsSwitch
Linux is case sensitive, so kinematicsswitch is not the same as kinematicsSwitch, notice the upper case S.
  • rodw
  • rodw's Avatar
14 Apr 2025 08:23

Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)

Category: Installing LinuxCNC

This will not work for the Pi because the buildbot does not build Debs for it.
Your only option is to compile from source.

 
  • mariusl
  • mariusl's Avatar
14 Apr 2025 08:16
Replied by mariusl on topic Problem with THC

Problem with THC

Category: Plasmac

It is a new machine. The divider is set to 1/32. I am not sure what voltage is given by the source as this is also a new configuration Hypertherm that does stuff automatically. It reads the consumable and does it's own adjustments. Although I disabled that feature on the plasma source. It might still be doing something that I am not aware off.
The voltage seems very stable . The thing that bothers me is that the torch starts moving up as soon as it starts cutting. It does not delay the 5 seconds that I set the THC_delay to.
  • Soccer Kid
  • Soccer Kid's Avatar
14 Apr 2025 08:04 - 14 Apr 2025 09:39
Replied by Soccer Kid on topic very basic mdi call

very basic mdi call

Category: O Codes (subroutines) and NGCGUI

The method mentioned by Aciera is very correct and at the same time <XXX> cannot be a number, I have been troubled by this question for a long time today!
  • H-S-W
  • H-S-W
14 Apr 2025 08:02

Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)

Category: Installing LinuxCNC

I still can't get it to work! changed the arch=amd64 to arch=arm64?
cnc@raspberrypi:~$ #! /bin/bash
cnc@raspberrypi:~$ mkdir ~/apt
mkdir: cannot create directory ‘/home/cnc/apt’: File exists
cnc@raspberrypi:~$ sudo cp -r /etc/apt/*.* ~/apt
cnc@raspberrypi:~$ sudo wget http://buildbot2.highlab.com/buildbot-archive-key.gpg -P /etc/apt/trusted.gpg.d
--2025-04-14 09:58:49--  http://buildbot2.highlab.com/buildbot-archive-key.gpg
Resolving buildbot2.highlab.com (buildbot2.highlab.com)... 184.96.146.47
Connecting to buildbot2.highlab.com (buildbot2.highlab.com)|184.96.146.47|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1190 (1.2K)
Saving to: ‘/etc/apt/trusted.gpg.d/buildbot-archive-key.gpg.3’

buildbot-archive-ke 100%[===================>]   1.16K  --.-KB/s    in 0s      

2025-04-14 09:58:49 (146 MB/s) - ‘/etc/apt/trusted.gpg.d/buildbot-archive-key.gpg.3’ saved [1190/1190]

cnc@raspberrypi:~$ sudo rm -f /etc/apt/preferences.d/99linuxcnc-uspace.pref
cnc@raspberrypi:~$ sudo rm -f /etc/apt/sources.list.d/linuxcnc-uspace.list
cnc@raspberrypi:~$ sudo tee /etc/apt/sources.list.d/linuxcnc-uspace.list > /dev/null <<EOT
deb [arch=amd64, signed-by=/etc/apt/trusted.gpg.d/buildbot-archive-key.gpg] http://buildbot2.highlab.com/debian/ bookworm master-uspace 2.9-uspace
EOT
cnc@raspberrypi:~$ sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease                  
Hit:3 http://deb.debian.org/debian bookworm-proposed-updates InRelease         
Hit:4 http://deb.debian.org/debian-security bookworm-security InRelease        
Hit:5 http://deb.debian.org/debian bookworm-backports InRelease                
Hit:6 http://download.opensuse.org/repositories/science:/EtherLab/Debian_12 ./ InRelease
Hit:7 http://buildbot2.highlab.com/debian bookworm InRelease                   
Hit:8 https://www.linuxcnc.org bookworm InRelease                              
Get:9 https://gnipsel.com/mesact/apt-repo stable InRelease [2608 B]
Err:9 https://gnipsel.com/mesact/apt-repo stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6F8DFB65A82CD322
Reading package lists... Done
W: Target Packages (master-uspace/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/linuxcnc-uspace.list:1
W: Target Translations (master-uspace/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/linuxcnc-uspace.list:1
W: Target Packages (2.9-uspace/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/linuxcnc-uspace.list:1
W: Target Translations (2.9-uspace/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/linuxcnc-uspace.list:1
W: Skipping acquire of configured file 'master-uspace/binary-arm64/Packages' as repository 'http://buildbot2.highlab.com/debian bookworm InRelease' does not seem to provide it (sources.list entry misspelt?)
W: Skipping acquire of configured file '2.9-uspace/binary-arm64/Packages' as repository 'http://buildbot2.highlab.com/debian bookworm InRelease' does not seem to provide it (sources.list entry misspelt?)
W: GPG error: https://gnipsel.com/mesact/apt-repo stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6F8DFB65A82CD322
E: The repository 'https://gnipsel.com/mesact/apt-repo stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Target Packages (master-uspace/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/linuxcnc-uspace.list:1
W: Target Translations (master-uspace/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/linuxcnc-uspace.list:1
W: Target Packages (2.9-uspace/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/linuxcnc-uspace.list:1
W: Target Translations (2.9-uspace/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/linuxcnc-uspace.list:1
cnc@raspberrypi:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  • jochen91
  • jochen91
14 Apr 2025 07:47

Planning to Retrofit a Mazak Integrex200Y Mill-Turn Machine

Category: Advanced Configuration

This is the Error Message i got from my config:

LINUXCNC - 2.9.4
Machine configuration directory is '/home/mazak/linuxcnc/configs/sim.axis.vismach.5axis.table-rotary-tilting'
Machine configuration file is 'xyzbc-trt.ini'
check_config: Unchecked: [KINS]KINEMATICS=xyzcb_tdr_kins
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ././xyzbc-trt_cmds.hal
motmod: dlopen: /usr/lib/linuxcnc/modules/motmod.so: undefined symbol: kinematicsSwitch
././xyzbc-trt_cmds.hal:38: waitpid failed /usr/bin/rtapi_app motmod
././xyzbc-trt_cmds.hal:38: /usr/bin/rtapi_app exited without becoming ready
././xyzbc-trt_cmds.hal:38: insmod for motmod failed, returned -1
Shutting down and cleaning up LinuxCNC...
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/mazak/linuxcnc_debug.txt
and
/home/mazak/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal


Additionally i created another bare bone config with step conf and just replaced the KINEMATICS Name in the .ini file with my kinematic file. (It starts up with a 5 axis demo kinematics file, just not with mine) I assume there is something wrong in my kinematics ?

LINUXCNC - 2.9.4
Machine configuration directory is '/home/mazak/linuxcnc/configs/my-mill'
Machine configuration file is 'my-mill.ini'
check_config: Unchecked: [KINS]KINEMATICS=xyzbc_MAZAK_kins
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./my-mill.hal
*** xyzbc_MAZAK_kins.comp setup ok
Found file(REL): ./custom.hal
rtapi_app: caught signal 11 - dumping core
USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
note: MAXV max: 25.000 units/sec 1500.000 units/min
note: LJOG max: 25.000 units/sec 1500.000 units/min
note: LJOG default: 2.500 units/sec 150.000 units/min
note: AJOG max: 360.000 units/sec 21600.000 units/min
note: AJOG default: 36.000 units/sec 2160.000 units/min
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
Waiting for component 'inihal' to become ready....waiting for s.joints<0>, s.kinematics_type<0>
.......USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
......waiting for s.joints<0>, s.kinematics_type<0>
..............USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
...........A configuration error is preventing LinuxCNC from starting.
More information may be available when running from a terminal.
.Shutting down and cleaning up LinuxCNC...
........USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
..................
<commandline>:0: milltask exited without becoming ready
Waited 3 seconds for master. giving up.
Note: Using POSIX realtime
sim_axis_hardware: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX realtime
stepgen: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX realtime
sim_parport: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX realtime
motmod: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX realtime
xyzbc_MAZAK_kins: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX realtime
homemod: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX realtime
tpmod: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
<commandline>:0: unloadrt failed
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/mazak/linuxcnc_debug.txt
and
/home/mazak/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
  • tommylight
  • tommylight's Avatar
14 Apr 2025 07:43
Replied by tommylight on topic Problem with THC

Problem with THC

Category: Plasmac

Use halscope to do a plot of encoder.0.velocity pin during a pierce, might be interference, although as you are getting 55 and 75V readings it also seems not right, and this might be due to scaling and/or due to interference.
What divider ratio is Mesa THCAD set to? Usually 1/32.
If this is a new machine, disable auto volts, disable void lock and velocity lock, well disable everything automated until you get the machine working correctly, only then enable the automation.
  • tommylight
  • tommylight's Avatar
14 Apr 2025 07:38
Replied by tommylight on topic Retrofitting my Fadal VMC15 to LinuxCNC w/MESA

Retrofitting my Fadal VMC15 to LinuxCNC w/MESA

Category: Milling Machines

What type of control do the drives/VFD take?
What encoders/resolvers are on the motors?
If they do turn out to be analog +-10V ones, a Mesa 7i97T should do just fine, and if you do need more I/O you can add a 7i84 with 32 inputs and 16 outputs.
Here are some topic to give you an idea of what is involved:
forum.linuxcnc.org/30-cnc-machines/31792...-sbz-130-01-retrofit
forum.linuxcnc.org/30-cnc-machines/33529-hurco-bmc-20p-retrofit
forum.linuxcnc.org/show-your-stuff/34986...nd-proma-thc?start=0
And detailed info on wiring and tuning
forum.linuxcnc.org/10-advanced-configura...to-example-mesa-7i77
  • tommylight
  • tommylight's Avatar
14 Apr 2025 07:29
Replied by tommylight on topic 10.5 x 25 cnc plasma table retrofit

10.5 x 25 cnc plasma table retrofit

Category: Computers and Hardware

Those motors do not seem to have encoders at all, so will not do for CNC control as you found out and i am late to point out. :)
You can try adding encoders as the lid is easy to open, but i fear it might be way to much work to attach them due to short shaft and limited space.
Might be possible using those magnetic encoders as they are simply glued to the shaft, so only drilling a hole for it and for the electronic on the lid, but i never used them so i have no idea how good and reliable they are.
  • Soccer Kid
  • Soccer Kid's Avatar
14 Apr 2025 07:09
Replied by Soccer Kid on topic Switching HAL pin in subroutine (macro)

Switching HAL pin in subroutine (macro)

Category: O Codes (subroutines) and NGCGUI

You should use the M100 to call python programs to do this, see the following example.......linuxcnc.org/docs/stable/html/gcode/m-code.html#mcode:m100-m199.
  • mariusl
  • mariusl's Avatar
14 Apr 2025 06:53 - 14 Apr 2025 06:55
Problem with THC was created by mariusl

Problem with THC

Category: Plasmac

Hi,
I have a machine that has a Hypertherm 105 Sync source on and I am having issues getting the THC to work correctly.
I had to adjust the THC_delay to 5 seconds before I could get a stable voltage reading for Autovolts. The torch will go down to the cut height but starts moving upwards before the THC_delay has timed out. The cut voltage seems to settle at 55V but the torch moves up until it reaches 75V and stays there.
The strange thing is it will cut the first cut correct and then misbehaves after that.
Any ideas where to fiddle?
  • Aciera
  • Aciera's Avatar
14 Apr 2025 06:48
Replied by Aciera on topic CNC doesn't work with new update

CNC doesn't work with new update

Category: General LinuxCNC Questions

As the debug message indicates, line 6 in your 'Slabber.hal' expects a value for the keyword 'AXES' in the [TRAJ] section of your ini file.
  • Aciera
  • Aciera's Avatar
14 Apr 2025 06:45

Planning to Retrofit a Mazak Integrex200Y Mill-Turn Machine

Category: Advanced Configuration

Not sure, halcompile output looks ok. Starting your config from a terminal may give more debug information.
$ linuxcnc
Displaying 15541 - 15555 out of 18511 results.
Time to create page: 0.376 seconds
Powered by Kunena Forum