I found the error:
Code:
[HAL]
# The run script first uses halcmd to execute any HALFILE
# files, and then to execute any individual HALCMD commands.
#
# list of hal config files to run through halcmd
#+ files are executed in the order in which they appear
#HALFILE = core_stepper.hal
#HALFILE = xylotex_pinout.hal
HALFILE = mb2hal.ini
HALFILE = mb2hal.ini
This is the wrong location for the MB2HAL INI file.
As mentioned in the docs (
linuxcnc.org/docs/html/drivers/mb2hal.html#_usage
)
the MB2HAL INI file need to be passed as argument like this
Code:
loadusr -W mb2hal config=mb2hal.ini
(inside a HAL file
)