CNC Grande Dimension - LinuxCNC/CAM

@thomas.

Hier matin j’ai commencé à regarder si la procédure de correction du Z en fonction de la planéïté du plateau sur linuxcnc est utilisable.

J’ai commencé à créer une machine dans linuxcnc chez moi pour pouvoir tester.

J’ai eu plusieurs modules à charger mais la je bloque un peu car il me dit que le module « linuxcnc » est manquant. J’ai un peu peur de mettre la grouille sur mon pc en chargeant ce module (je ne suis qu’un béotien en linux).

alors voici ce que j’ai fait.

J’ai considéré que le module était quel que part sur mon Pc car linuxcnc fonctionne et meme tres bien.

voici le message d’erreur:

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
  File "compensation.py", line 27, in <module>
    import linuxcnc
ModuleNotFoundError: No module named 'linuxcnc'
./leveling.hal:215: waitpid failed python compensation
./leveling.hal:215: python exited without becoming ready
1990
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

J’ai donc cherché ou était ce module

pierre@CNC-I5:  whereis linuxcnc
linuxcnc: /usr/bin/linuxcnc /usr/lib/linuxcnc /etc/linuxcnc /usr/include/linuxcnc /usr/share/linuxcnc /usr/share/man/man1/linuxcnc.1.gz

suivi de

$ sudo find / -name linuxcnc -print
/home/pierre/linuxcnc
/home/pierre/linuxcnc/ctbenergy-linuxcnc/share/linuxcnc
/etc/linuxcnc
/usr/share/doc/linuxcnc
/usr/share/linuxcnc
/usr/include/linuxcnc
/usr/lib/linuxcnc
/usr/lib/tcltk/linuxcnc
/usr/bin/linuxcnc

Hier j’ai vu que rajouter dans le PYTHONPATH toutes ces directories ne changeait rien sauf : /usr/lib/tcltk/linuxcnc

pierre@CNC-I5:  export PYTHONPATH=$PYTHONPATH:/usr/lib/tcltk/linuxcnc

Ca va un peu plus loin mais ca plante tout de meme et la s’arretent mes competences en Linux. Je suppose qu’il faut effectivement charger le module linuxcnc mais je ne le trouve pas.

pierre@CNC-I5:~$ linuxcnc
LINUXCNC - 2.8.2-11-g6a3d0a434
Machine configuration directory is '/home/pierre/linuxcnc/configs/leveling'
Machine configuration file is 'leveling.ini'
Starting LinuxCNC...
Found file(REL): ./leveling.hal
Note: Using POSIX realtime
config string '0xd100 0xe010 out'
Traceback (most recent call last):
  File "/usr/bin/hal_manualtoolchange", line 7, in <module>
    import linuxcnc, hal
ImportError: dynamic module does not define init function (initlinuxcnc)
./leveling.hal:207: waitpid failed hal_manualtoolchange hal_manualtoolchange
./leveling.hal:207: hal_manualtoolchange exited without becoming ready
Shutting down and cleaning up LinuxCNC...
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/pierre/linuxcnc_debug.txt
and
    /home/pierre/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
pierre@CNC-I5:~$ cat /home/pierre/linuxcnc_debug.txt
2483
Stopping realtime threads
Unloading hal components
pierre@CNC-I5:~$ cat /home/pierre/linuxcnc_print.txt
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
INIFILE=/home/pierre/linuxcnc/configs/leveling/leveling.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z X Z
KINEMATICS=trivkins coordinates=XYZXZ  kinstype=BOTH
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

sudo dmesg (fin seulement )

[    8.213906] tpm_tis 00:08: 1.2 TPM (device-id 0xB, rev-id 16)
[    8.265846] fujitsu_laptop: ACPI: Fujitsu FUJ02E3 [FEXT]
[    8.266243] ACPI: \_SB_.PCI0.LPCB.FEXT: BTNI: [0x0]
[    8.278069] input: Fujitsu FUJ02E3 as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/FUJ02E3:00/input/input5
[    8.291627] fujitsu_laptop: driver 0.6.0 successfully loaded
[    8.292464] parport_pc 00:04: reported by Plug and Play ACPI
[    8.296555] parport0: PC-style at 0x378, irq 5 [PCSPP,EPP]
[    8.490383] PCI parallel port detected: 1415:c110, I/O at 0xe010(0xe000), IRQ 17
[    8.495956] parport1: PC-style at 0xe010 (0xe000), irq 17 [PCSPP,TRISTATE,EPP]
[    8.588597] input: PC Speaker as /devices/platform/pcspkr/input/input6
[    8.644769] RAPL PMU: API unit is 2^-32 Joules, 4 fixed counters, 655360 ms ovfl timer
[    8.644770] RAPL PMU: hw unit of domain pp0-core 2^-14 Joules
[    8.644771] RAPL PMU: hw unit of domain package 2^-14 Joules
[    8.644771] RAPL PMU: hw unit of domain dram 2^-14 Joules
[    8.644771] RAPL PMU: hw unit of domain pp1-gpu 2^-14 Joules
[    8.646627] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    8.661066] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    8.661952] usbcore: registered new interface driver usbserial_generic
[    8.664399] usbserial: USB Serial support registered for generic
[    8.683888] usbcore: registered new interface driver cp210x
[    8.685562] usbserial: USB Serial support registered for cp210x
[    8.686117] cp210x 2-7:1.0: cp210x converter detected
[    8.697388] PCI parallel port detected: 1c00:3050, I/O at 0xd100(0x0), IRQ 18
[    8.698392] usb 2-7: cp210x converter now attached to ttyUSB0
[    8.702140] parport2: PC-style at 0xd100, irq 18 [PCSPP,TRISTATE]
[    8.983985] ppdev: user-space parallel port driver
[    9.074026] Adding 998396k swap on /dev/sda5.  Priority:-2 extents:1 across:998396k SSFS
[    9.082424] intel_rapl: Found RAPL domain package
[    9.082425] intel_rapl: Found RAPL domain core
[    9.082426] intel_rapl: Found RAPL domain uncore
[    9.082427] intel_rapl: Found RAPL domain dram
[    9.082429] intel_rapl: RAPL package 0 domain package locked by BIOS
[    9.082432] intel_rapl: RAPL package 0 domain dram locked by BIOS
[    9.772533] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[    9.993034] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[   10.019968] broken atomic modeset userspace detected, disabling atomic
[   13.027042] e1000e: enp0s25 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
[   13.027076] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s25: link becomes ready
[ 1656.854723] perf: interrupt took too long (2503 > 2500), lowering kernel.perf_event_max_sample_rate to 79750
[ 3413.233134] perf: interrupt took too long (3130 > 3128), lowering ke