Advanced Search

Search Results (Searched for: )

  • bobwolf
  • bobwolf
10 Jun 2025 20:21
Another "arduino io panel" was created by bobwolf

Another "arduino io panel"

Category: Show Your Stuff

Hello everyone
I was inspired to make an interface to manage a generic operator panel (not for real time operation). I saw that there are already many; mine would be a little simpler and above all easily expandable.
the first idea, which I tried on a breadboard, was to use physical pins (parallel port, mesa, etc etc) controlled by hal with an ad hoc program and with a sort of multiplexer to be able to multiply them almost at will. in theory I could reach 256 inputs and 256 outputs. even too many, but these are its potential.
then I said: let's try to put a jog wheel in the system, and there the problems came; with my system I lost too many steps and had dead times. unusable.
I began to understand if with arduino I would have had more chances of success, and always in theory, since I'm waiting for the components to do the experiments, I should have good results.

prototype features:
128 maximum inputs
128 maximum outputs
3 inputs for rotary encoders
3 inputs for potentiometers
communication with hal via arduino usb
data update time 10/20ms (50/100Hz)
for an operator panel 50/100ms would also be fine but doing the math I should be fine with the shorter times.

what could be useful to insert in this system? the first thing that came to mind would be analog outputs to drive pointer instruments or digital displays that accept 0-5v voltages, to be used to display parameters such as spindle speed, feeds, or anything else that comes to mind.

could it be a good system to develop?

ciao
Roberto
  • PCW
  • PCW's Avatar
10 Jun 2025 19:42

LinuxCNC will not start... report file crated

Category: General LinuxCNC Questions

The error is is right here:

hm2_eth: ERROR : can't connect: Network is unreachable

Follow tommylights advice in the other thread...
 
  • deltafox24
  • deltafox24
10 Jun 2025 18:44
Replied by deltafox24 on topic SANGE elec IO

SANGE elec IO

Category: EtherCAT

thanks for the tip, i got the lcec_configgen file
   <slave idx="4" type="generic" vid="0xee000002" pid="0x00010205" name="D5">
      <!--SG-ELC-ADIO-DI16-DO16-PNP(Digital 16-Input/16-Output)-->
      <syncManager idx="0" dir="out">
        <pdo idx="1a00">
          <!--Output Group 0-->
          <pdoEntry idx="3101" subIdx="01" bitLen="8" halPin="output-00-07-" halType="BLANK"/>
        </pdo>
      </syncManager>
      <syncManager idx="1" dir="out">
        <pdo idx="1a01">
          <!--Output Group 1-->
          <pdoEntry idx="3101" subIdx="02" bitLen="8" halPin="output-08-15-" halType="BLANK"/>
        </pdo>
      </syncManager>
      <syncManager idx="2" dir="in">
        <pdo idx="1600">
          <!--Input Group 0-->
          <pdoEntry idx="3001" subIdx="01" bitLen="8" halPin="input-00-07-" halType="BLANK"/>
        </pdo>
        <pdo idx="1601">
          <!--Input Group 1-->
          <pdoEntry idx="3001" subIdx="02" bitLen="8" halPin="input-08-15-" halType="BLANK"/>
        </pdo>
      </syncManager>
    </slave>

Based on it, I modified my XML file in this way
  <!-- IO -->
<slave idx="4" type="generic" vid="EE000002" pid="00010205" configPdos="true">
  <dcConf assignActivate="0000" sync0Cycle="0" sync0Shift="0"/>

 
  <syncManager idx="0" dir="out">
    <pdo idx="1a00">
      <pdoEntry idx="3101" subIdx="1" bitLen="8" halType="complex">
        <complexEntry bitLen="1" halPin="out-00" halType="bit"/>
        <complexEntry bitLen="1" halPin="out-01" halType="bit"/>
        <complexEntry bitLen="1" halPin="out-02" halType="bit"/>
        <complexEntry bitLen="1" halPin="out-03" halType="bit"/>
        <complexEntry bitLen="1" halPin="out-04" halType="bit"/>
        <complexEntry bitLen="1" halPin="out-05" halType="bit"/>
        <complexEntry bitLen="1" halPin="out-06" halType="bit"/>
        <complexEntry bitLen="1" halPin="out-07" halType="bit"/>
      </pdoEntry>
    </pdo>
  </syncManager>

 
  <syncManager idx="1" dir="out">
    <pdo idx="1a01">
      <pdoEntry idx="3101" subIdx="2" bitLen="8" halType="complex">
        <complexEntry bitLen="1" halPin="out-08" halType="bit"/>
        <complexEntry bitLen="1" halPin="out-09" halType="bit"/>
        <complexEntry bitLen="1" halPin="out-10" halType="bit"/>
        <complexEntry bitLen="1" halPin="out-11" halType="bit"/>
        <complexEntry bitLen="1" halPin="out-12" halType="bit"/>
        <complexEntry bitLen="1" halPin="out-13" halType="bit"/>
        <complexEntry bitLen="1" halPin="out-14" halType="bit"/>
        <complexEntry bitLen="1" halPin="out-15" halType="bit"/>
      </pdoEntry>
    </pdo>
  </syncManager>

 
  <syncManager idx="2" dir="in">
    <pdo idx="1600">
      <pdoEntry idx="3001" subIdx="1" bitLen="8" halType="complex">
        <complexEntry bitLen="1" halPin="in-00" halType="bit"/>
        <complexEntry bitLen="1" halPin="in-01" halType="bit"/>
        <complexEntry bitLen="1" halPin="in-02" halType="bit"/>
        <complexEntry bitLen="1" halPin="in-03" halType="bit"/>
        <complexEntry bitLen="1" halPin="in-04" halType="bit"/>
        <complexEntry bitLen="1" halPin="in-05" halType="bit"/>
        <complexEntry bitLen="1" halPin="in-06" halType="bit"/>
        <complexEntry bitLen="1" halPin="in-07" halType="bit"/>
      </pdoEntry>
    </pdo>
    <pdo idx="1601">
      <pdoEntry idx="3001" subIdx="2" bitLen="8" halType="complex">
        <complexEntry bitLen="1" halPin="in-08" halType="bit"/>
        <complexEntry bitLen="1" halPin="in-09" halType="bit"/>
        <complexEntry bitLen="1" halPin="in-10" halType="bit"/>
        <complexEntry bitLen="1" halPin="in-11" halType="bit"/>
        <complexEntry bitLen="1" halPin="in-12" halType="bit"/>
        <complexEntry bitLen="1" halPin="in-13" halType="bit"/>
        <complexEntry bitLen="1" halPin="in-14" halType="bit"/>
        <complexEntry bitLen="1" halPin="in-15" halType="bit"/>
      </pdoEntry>
    </pdo>
  </syncManager>
</slave>

but still after using the IO module, I get an error when lifting the zed axis.


 
  • jlfauvel
  • jlfauvel's Avatar
10 Jun 2025 18:11
Replied by jlfauvel on topic LinuxCNC ne démarre pas... message d'erreur

LinuxCNC ne démarre pas... message d'erreur

Category: Français

... i change the .txt file to .doc simply to be able insert the attachment to the forum.
But yes, I will try to fix the networking.
  • jlfauvel
  • jlfauvel's Avatar
10 Jun 2025 18:07

LinuxCNC will not start... report file crated

Category: General LinuxCNC Questions

Hi... I am a new Linux user and Linux CNC won't start.
Linux CNC terminated with an error.
A ''geak'' installed Linux for my old CNC machine (''PRECIX'' - canadian built - 2020).
He uptaded my controller and installed Linux and Linux CNC on a Windows DELL Optiplex 7020, everything to run Linux and my CNC.
For health reasons, I did not run the computer for 3 years (however, it was running well before), but now, after a couple of seconds, LinuxCNC will not start and a report file is created.
Linux starts but it is Linux CNC that bugs.
   OS : Linux Mint 19.3 Tricia
   Kernel : Linux 4.9.0-13-rt-amd64
Here is the report, and i think it is at the line #29 that things are starting to get worse...
Somebody can help? (remember, I am not a geak with Linux)
See the files attached (report and .hal file)ou read below...
Print file information:____________________________________ 
1 RUN_IN_PLACE=NO
2 LINUXCNC_DIR=
3 LINUXCNC_BIN_DIR=/usr/bin
4 LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
5 LINUXCNC_ SCRIPT_DIR=
6 LINUXCNC_RTLIB_DIR=/usr/lib/Linuxcnc/modules
7 LINUXCNC_CONFIG_DIR=
8 LINUXCNC_LANG DIR=/usr/lib/tcltk/linuxcnc/msgs
9 INIVAR=inivar
10 HALCMD=halcmd
11 LINUXCNC_EMCSH=/usr/bin/wish8.6
12 LINUXCNC - 2.8.2-8-ga17ba27b8
13 Machine configuration directory is '/home/jlfauvel/linuxcnc/configs/PRECIX'
14 Machine configuration file is 'PRECIX.ini'
15 INIFILE=/home/jlfauvel/linuxcnc/configs/PRECIX/PRECIX. ini
16 VERSION=1.1
17 PARAMETER_ FILE=linuxcnc.var
18 TASK=milltask
19 HALUI=halui
20 DISPLAY=axis
21 COORDINATES=XYZ
22 KINEMATICS=trivkins coordinates=XYZ
23 Starting LinuxCNC...
24 Starting LinuxCNC server program: linuxcncsvr
25 Loading Real Time OS, RTAPI, and HAL_LIB modules
26 Starting LinuxCNC 10 program: io
27 Starting HAL User Interface program: halui
28 Found file(REL): ./PRECIX.hal
29 Shutting down and cleaning up LinuxCNC.…
30 Running HAL shutdown script
31 hm2: Loading Mesa HostMot2 driver version 0.15
32 hm2_eth: loading Mesa AnyI0 HostMot2 ethernet driver version 0.2
33 hm2_eth: ERROR : can't connect: Network is unreachable
34 hm² : unloading
35 Renoving HAL_LIB, RTAPI, and Real Time 0S modules
36 Removing NML shared memory segments  Debug file information: 
37 Note: Using POSIX realtime
38 hm2_eth: rtapi_app_main: Network is unreachable (-101)
39 ./PRECIX.hal:9: waitpid failed /usr/bin/rtapi_app hm2_eth
40 ./PRECIX.hal.9: /usr/bin/rtapi_ app exited without becoming ready
41 ./PRECIX.hal.9: insmod for hm2_eth failed, returned -1
42 2162
43 Stopping realtime threads
44 Unloading hal components
  

File Attachment:

File Name: 2025-06-09...6-10.doc
File Size:15 KB
 
  

File Attachment:

File Name: PRECIX.hal
File Size:11 KB

File Attachment:

File Name: 2025-06-09...6-10.doc
File Size:15 KB

File Attachment:

File Name: PRECIX.hal
File Size:11 KB
  • tommylight
  • tommylight's Avatar
10 Jun 2025 18:00 - 10 Jun 2025 18:02
Replied by tommylight on topic LinuxCNC ne démarre pas... message d'erreur

LinuxCNC ne démarre pas... message d'erreur

Category: Français

Remove the .DOC file, attach the full file as a normal .txt using a simple text editor.
Do not use Office suits.
-
All office files can contain macro viruses, avoid using them unless strictly necessary.

Edit:
In the mean time fix the networking
forum.linuxcnc.org/27-driver-boards/3559...ethernet-mesa-boards
  • jlfauvel
  • jlfauvel's Avatar
10 Jun 2025 17:36 - 10 Jun 2025 17:42

LinuxCNC ne démarre pas... message d'erreur

Category: Français

Salut... je suis un nouvel utilisateur qui ne réussit pas à faire démarrer LinuxCNC sur l'ordi.
Je sius peu familier avec Linux.
Un ''geak'' des CNC a installé Linux pour ma veille machine CNC (''PRECIX'' - fabrication canadienne - 2020).
Il a remis mon vieux contrôleur en marche et configuré un nouvel ordi remis à neuf (DELL Optiplex 7020 avec tout ce qui faut pour bien rouler Linux).
Pour des raisons de santé, je n'ai pas démarré l'ordi pendant 3 ans (ça fonctionnait alors), et maintenant, après quelques secondes, l'application génère un rapport avec message d'erreur.
Linux démarre correctement mais LinuxCNC fait des siennes.
OS : Linux Mint 19.3 Tricia
Kernel : Linux 4.9.0-13-rt-amd64
Le rapport d'erreur est le suivant......et je pense que c'est à la ligne 29 que ça se corse.
Quelqu'un peut m'aider?
Voir fichier .doc joint et/ou texte ci-dessous...
Print file information:____________________________________ 
1 RUN_IN_PLACE=NO
2 LINUXCNC_DIR=
3 LINUXCNC_BIN_DIR=/usr/bin
4 LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
5 LINUXCNC_ SCRIPT_DIR=
6 LINUXCNC_RTLIB_DIR=/usr/lib/Linuxcnc/modules
7 LINUXCNC_CONFIG_DIR=
8 LINUXCNC_LANG DIR=/usr/lib/tcltk/linuxcnc/msgs
9 INIVAR=inivar
10 HALCMD=halcmd
11 LINUXCNC_EMCSH=/usr/bin/wish8.6
12 LINUXCNC - 2.8.2-8-ga17ba27b8
13 Machine configuration directory is '/home/jlfauvel/linuxcnc/configs/PRECIX'
14 Machine configuration file is 'PRECIX.ini'
15 INIFILE=/home/jlfauvel/linuxcnc/configs/PRECIX/PRECIX. ini
16 VERSION=1.1
17 PARAMETER_ FILE=linuxcnc.var
18 TASK=milltask
19 HALUI=halui
20 DISPLAY=axis
21 COORDINATES=XYZ
22 KINEMATICS=trivkins coordinates=XYZ
23 Starting LinuxCNC...
24 Starting LinuxCNC server program: linuxcncsvr
25 Loading Real Time OS, RTAPI, and HAL_LIB modules
26 Starting LinuxCNC 10 program: io
27 Starting HAL User Interface program: halui
28 Found file(REL): ./PRECIX.hal
29 Shutting down and cleaning up LinuxCNC.…
30 Running HAL shutdown script
31 hm2: Loading Mesa HostMot2 driver version 0.15
32 hm2_eth: loading Mesa AnyI0 HostMot2 ethernet driver version 0.2
33 hm2_eth: ERROR : can't connect: Network is unreachable
34 hm² : unloading
35 Renoving HAL_LIB, RTAPI, and Real Time 0S modules
36 Removing NML shared memory segments  Debug file information: 
37 Note: Using POSIX realtime
38 hm2_eth: rtapi_app_main: Network is unreachable (-101)
39 ./PRECIX.hal:9: waitpid failed /usr/bin/rtapi_app hm2_eth
40 ./PRECIX.hal.9: /usr/bin/rtapi_ app exited without becoming ready
41 ./PRECIX.hal.9: insmod for hm2_eth failed, returned -1
42 2162
43 Stopping realtime threads
44 Unloading hal components
 

File Attachment:

File Name: 2025-06-09...port.doc
File Size:15 KB
  • Kieran
  • Kieran
10 Jun 2025 17:03
Replied by Kieran on topic weird behavior: homing X messes up Y

weird behavior: homing X messes up Y

Category: EtherCAT

ok I guess I need to do more reading on how the PDO works. the servo manual lists other PDOs that aren't listed in the 1600 and 1A00 registers, such as 606C(speed feedback). how would one use these other PDOs? I guess I dont see what fixed PDOs actually do.
Displaying 15256 - 15263 out of 15263 results.
Time to create page: 0.313 seconds
Powered by Kunena Forum