StepperOnline A6 Servo
- vizavadsky
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
08 Feb 2025 02:19 #320952
by vizavadsky
Replied by vizavadsky on topic StepperOnline A6 Servo
I'm new here and have same servo so decide to try your setup files. I was not able to achieve success with your files like MWalz did.
Maybe you can help me? Here is my output:
Print file information:
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
LINUXCNC - 2.9.3
Machine configuration directory is '/home/cnc/linuxcnc/configs/v2xt'
Machine configuration file is 'EtherCat_2025-01-13.ini'
INIFILE=/home/cnc/linuxcnc/configs/v2xt/EtherCat_2025-01-13.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X
KINEMATICS=trivkins coordinates=X kinstype=BOTH
Starting LinuxCNC...
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
emc/iotask/ioControl.cc 786: can't load tool table.
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./Basic.hal
Starting TASK program: milltask
Starting DISPLAY program: axis
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
task: 126 cycles, min=0.000004, max=0.013546, avg=0.008413, 0 latency excursions (> 10x expected cycle time of 0.010000s)
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
note: MAXV max: 250.000 units/sec 15000.000 units/min
note: LJOG max: 250.000 units/sec 15000.000 units/min
note: LJOG default: 5.000 units/sec 300.000 units/min
note: jog_order='X'
note: jog_invert=set()
Could not open command file 'custom_postgui.hal'
Could not open command file 'shutdown.hal'
101766
101796
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Maybe you can help me? Here is my output:
Print file information:
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
LINUXCNC - 2.9.3
Machine configuration directory is '/home/cnc/linuxcnc/configs/v2xt'
Machine configuration file is 'EtherCat_2025-01-13.ini'
INIFILE=/home/cnc/linuxcnc/configs/v2xt/EtherCat_2025-01-13.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X
KINEMATICS=trivkins coordinates=X kinstype=BOTH
Starting LinuxCNC...
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
emc/iotask/ioControl.cc 786: can't load tool table.
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./Basic.hal
Starting TASK program: milltask
Starting DISPLAY program: axis
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
task: 126 cycles, min=0.000004, max=0.013546, avg=0.008413, 0 latency excursions (> 10x expected cycle time of 0.010000s)
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
note: MAXV max: 250.000 units/sec 15000.000 units/min
note: LJOG max: 250.000 units/sec 15000.000 units/min
note: LJOG default: 5.000 units/sec 300.000 units/min
note: jog_order='X'
note: jog_invert=set()
Could not open command file 'custom_postgui.hal'
Could not open command file 'shutdown.hal'
101766
101796
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19695
- Thank you received: 6651
08 Feb 2025 12:04 #320989
by tommylight
Replied by tommylight on topic StepperOnline A6 Servo
Edit the ini file and omit those two lines then try again, usually they are not used.Could not open command file 'custom_postgui.hal'
Could not open command file 'shutdown.hal'
The following user(s) said Thank You: vizavadsky
Please Log in or Create an account to join the conversation.
- vizavadsky
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
08 Feb 2025 23:53 #321030
by vizavadsky
Replied by vizavadsky on topic StepperOnline A6 Servo
Thank you. I made onother step towards spinning this motor because of that for sure!
I thing I got my XML wrong now.
Slaves:
cnc@raspberrypi:~/dev/hal-cia402$ ethercat slaves
0 0:0 PREOP + EK1100 EtherCAT-Koppler (2A E-Bus)
1 0:1 PREOP + EL1008 8K. Dig. Eingang 24V, 3ms
2 0:2 PREOP + EL2008 8K. Dig. Ausgang 24V, 0.5A
3 0:3 PREOP + AS715N_sAxis_V0.10
XML I got from MWalz but I changed slave idx from 0 to 3
I'm not sure but it is looks like logical thing to me.
<masters>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="1">
<slave idx="3" type="generic" vid="00400000" pid="00000715" configPdos="true" name="A6">
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="25000"/>
<watchdog divider="2498" intervals="1000"/>
<syncManager idx="2" dir="out">
<pdo idx="1600">
<pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="control-word" halType="u32"/>
<pdoEntry idx="607A" subIdx="00" bitLen="32" halPin="target-position" halType="s32"/>
<pdoEntry idx="60B8" subIdx="00" bitLen="16" halPin="touch-probe-function" halType="u32"/>
</pdo>
</syncManager>
<syncManager idx="3" dir="in">
<pdo idx="1A00">
<pdoEntry idx="6041" subIdx="00" bitLen="16" halPin="status-word" halType="u32"/>
<pdoEntry idx="6064" subIdx="00" bitLen="32" halPin="pos-actual" halType="s32"/>
<pdoEntry idx="60BA" subIdx="00" bitLen="32" halPin="touch-probe-1" halType="s32"/>
<pdoEntry idx="60BC" subIdx="00" bitLen="32" halPin="touch-probe-2" halType="s32"/>
<pdoEntry idx="60B9" subIdx="00" bitLen="16" halPin="touch-probe-status" halType="s32"/>
<pdoEntry idx="603F" subIdx="00" bitLen="16" halPin="fault-code" halType="s32"/>
<pdoEntry idx="60FD" subIdx="00" bitLen="32" halPin="DI-status" halType="u32"/>
<pdoEntry idx="60F4" subIdx="00" bitLen="32" halPin="follow-error" halType="s32"/>
</pdo>
</syncManager>
</slave>
</master>
</masters>
And I got this report
Print file information:
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
LINUXCNC - 2.9.3
Machine configuration directory is '/home/cnc/linuxcnc/configs/v2xt'
Machine configuration file is 'EtherCat_2025-01-13.ini'
INIFILE=/home/cnc/linuxcnc/configs/v2xt/EtherCat_2025-01-13.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X
KINEMATICS=trivkins coordinates=X kinstype=BOTH
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./Basic.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
HAL: ERROR: duplicate component name 'lcec_conf'
lcec_conf: ERROR: hal_init failed
./Basic.hal:6: waitpid failed lcec_conf lcec_conf
./Basic.hal:6: lcec_conf exited without becoming ready
6928
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Should I change something in Basic.hal or this is my XML wrong?
Will appreciate any help guys.
I thing I got my XML wrong now.
Slaves:
cnc@raspberrypi:~/dev/hal-cia402$ ethercat slaves
0 0:0 PREOP + EK1100 EtherCAT-Koppler (2A E-Bus)
1 0:1 PREOP + EL1008 8K. Dig. Eingang 24V, 3ms
2 0:2 PREOP + EL2008 8K. Dig. Ausgang 24V, 0.5A
3 0:3 PREOP + AS715N_sAxis_V0.10
XML I got from MWalz but I changed slave idx from 0 to 3
I'm not sure but it is looks like logical thing to me.
<masters>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="1">
<slave idx="3" type="generic" vid="00400000" pid="00000715" configPdos="true" name="A6">
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="25000"/>
<watchdog divider="2498" intervals="1000"/>
<syncManager idx="2" dir="out">
<pdo idx="1600">
<pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="control-word" halType="u32"/>
<pdoEntry idx="607A" subIdx="00" bitLen="32" halPin="target-position" halType="s32"/>
<pdoEntry idx="60B8" subIdx="00" bitLen="16" halPin="touch-probe-function" halType="u32"/>
</pdo>
</syncManager>
<syncManager idx="3" dir="in">
<pdo idx="1A00">
<pdoEntry idx="6041" subIdx="00" bitLen="16" halPin="status-word" halType="u32"/>
<pdoEntry idx="6064" subIdx="00" bitLen="32" halPin="pos-actual" halType="s32"/>
<pdoEntry idx="60BA" subIdx="00" bitLen="32" halPin="touch-probe-1" halType="s32"/>
<pdoEntry idx="60BC" subIdx="00" bitLen="32" halPin="touch-probe-2" halType="s32"/>
<pdoEntry idx="60B9" subIdx="00" bitLen="16" halPin="touch-probe-status" halType="s32"/>
<pdoEntry idx="603F" subIdx="00" bitLen="16" halPin="fault-code" halType="s32"/>
<pdoEntry idx="60FD" subIdx="00" bitLen="32" halPin="DI-status" halType="u32"/>
<pdoEntry idx="60F4" subIdx="00" bitLen="32" halPin="follow-error" halType="s32"/>
</pdo>
</syncManager>
</slave>
</master>
</masters>
And I got this report
Print file information:
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
LINUXCNC - 2.9.3
Machine configuration directory is '/home/cnc/linuxcnc/configs/v2xt'
Machine configuration file is 'EtherCat_2025-01-13.ini'
INIFILE=/home/cnc/linuxcnc/configs/v2xt/EtherCat_2025-01-13.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X
KINEMATICS=trivkins coordinates=X kinstype=BOTH
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./Basic.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
HAL: ERROR: duplicate component name 'lcec_conf'
lcec_conf: ERROR: hal_init failed
./Basic.hal:6: waitpid failed lcec_conf lcec_conf
./Basic.hal:6: lcec_conf exited without becoming ready
6928
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Should I change something in Basic.hal or this is my XML wrong?
Will appreciate any help guys.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19695
- Thank you received: 6651
09 Feb 2025 00:10 #321034
by tommylight
Replied by tommylight on topic StepperOnline A6 Servo
Delete or omit (by adding # in front of it) the line trying to load lcec twice.HAL: ERROR: duplicate component name 'lcec_conf'
lcec_conf: ERROR: hal_init failed
./Basic.hal:6: waitpid failed lcec_conf lcec_conf
./Basic.hal:6: lcec_conf exited without becoming ready
6928
Please Log in or Create an account to join the conversation.
- vizavadsky
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
09 Feb 2025 02:23 - 09 Feb 2025 02:51 #321038
by vizavadsky
Replied by vizavadsky on topic StepperOnline A6 Servo
Thanks again! Now I can start LinuxCNC and motor start to make sound on start. Also Encoder shows position in DRO tab. Looks like I have communication with the servo motor now. When I trying to Jog or turn motor shaft I got Error: joint 0 following error. Same thing as
bananun
described at the end of page one of this thread but his solution doesn't work for me. Now I'm not sure is this is Servo related error or I still need to do tweaking LinuxCNC settings. I seriously underestimate complexity of this project

Last edit: 09 Feb 2025 02:51 by vizavadsky.
Please Log in or Create an account to join the conversation.
- bananun
- Offline
- New Member
-
Less
More
- Posts: 14
- Thank you received: 0
11 Feb 2025 20:24 #321273
by bananun
Try to increase the ferror and min_ferror a lot, like 1000 for each, if that works then bring it down to a reasonable level
Replied by bananun on topic StepperOnline A6 Servo
Thanks again! Now I can start LinuxCNC and motor start to make sound on start. Also Encoder shows position in DRO tab. Looks like I have communication with the servo motor now. When I trying to Jog or turn motor shaft I got Error: joint 0 following error. Same thing as bananun described at the end of page one of this thread but his solution doesn't work for me. Now I'm not sure is this is Servo related error or I still need to do tweaking LinuxCNC settings. I seriously underestimate complexity of this project
![]()
Try to increase the ferror and min_ferror a lot, like 1000 for each, if that works then bring it down to a reasonable level
Please Log in or Create an account to join the conversation.
- vizavadsky
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
12 Feb 2025 02:39 - 12 Feb 2025 02:42 #321305
by vizavadsky
Replied by vizavadsky on topic StepperOnline A6 Servo
Thank you for advice. Changes those numbers made some difference for sure. And now when I spinning motor shaft I don't get instant error. But motor have no holding torque at all. And also when I trying to move axis from interface there is no reaction. Did you do any setting adjustments with servo? Any tuning? Maybe I missed something from the manual.
p.s. I can jog motor from servo keys so I doubt this is wiring or hardware issue.
p.s. I can jog motor from servo keys so I doubt this is wiring or hardware issue.
Last edit: 12 Feb 2025 02:42 by vizavadsky.
Please Log in or Create an account to join the conversation.
- Millimetergott
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 1
12 Feb 2025 16:34 #321353
by Millimetergott
Replied by Millimetergott on topic StepperOnline A6 Servo
Guten Abend, ich habe die INI, HAL und XML configrutaion in meine neue maschine kopiert, ist momentan nur ein Motor angeschlossen um diese zu testen. Leider bekomme ich folgende Fehlermeldung. Welche eintsellung muss ich zusätzlich an den Endstufen vornhemen ?
Gruß Tom
Gruß Tom
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19695
- Thank you received: 6651
12 Feb 2025 17:12 #321356
by tommylight
Replied by tommylight on topic StepperOnline A6 Servo
Da fehlt ein ganze "paragraf ???" oben die Joint 0
[AXIS_X]
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 30.0
MIN_LIMIT = -0.001
MAX_LIMIT = 24.0
[AXIS_X]
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 30.0
MIN_LIMIT = -0.001
MAX_LIMIT = 24.0
Please Log in or Create an account to join the conversation.
- Millimetergott
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 1
12 Feb 2025 19:01 #321369
by Millimetergott
Replied by Millimetergott on topic StepperOnline A6 Servo
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.179 seconds