newbee question

More
24 Oct 2022 20:12 #254956 by Vorms
newbee question was created by Vorms
Sorry for my question, I am very new in linuxCNC. I start to modify an config example.
LinuxCnc is not happy with my config.
Here is the log of linixcnc:
Debug file information:
./mb2hal.ini:11: Empty variable name.
24355
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

As I understant it is an error on line 11 on the mb2hal.ini file ?
Here is the portion of the file:#This .INI file is also the HELP, MANUAL and HOW-TO file for mb2hal.

#Load the modbus HAL userspace module as the examples below,
#change to match your own HAL_MODULE_NAME and .ini file name
#Using HAL_MODULE_NAME=mb2hal or nothing (default): loadusr -W mb2hal config=config_file.ini
#Using HAL_MODULE_NAME=mymodule: loadusr -Wn mymodule mb2hal config=config_file.ini

# ++++++++++++++++++++++++
# Common section
# ++++++++++++++++++++++++
[MB2HAL_INIT]
#OPTIONAL: Debug level of init and INI file parsing.
# 0 = silent.
# 1 = error messages (default).
# 2 = OK confirmation messages.
# 3 = debugging messages.
# 4 = maximum debugging messages (only in transactions).
INIT_DEBUG=3

#OPTIONAL: HAL module (component) name. Defaults to "mb2hal".
HAL_MODULE_NAME=mb2hal

#OPTIONAL: Insert a delay of "FLOAT seconds" between transactions in order
#to not to have a lot of logging and facilitate the debugging.
#Useful when using DEBUG=3 (NOT INIT_DEBUG=3)
#It affects ALL transactions.
#Use "0.0" for normal activity.
SLOWDOWN=0.0



Line 11 is exact this: [MB2HAL_INIT]
What is wrong on this line ?

Many thanks for your help.
Regards

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 01:00 #254978 by JPL
Replied by JPL on topic newbee question
This would be much easier if you attach your file, (Click 'Go to editor' then you will see the 'attachment' button)

Also, I'm not sure about this but could someone confirm that line numbers does NOT include empty lines and commented out lines ???

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 01:24 #254979 by PCW
Replied by PCW on topic newbee question
The line is just the number of lines, regardless of content,
so the line with the error easily findable in almost any editor.
The following user(s) said Thank You: JPL

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 01:56 #254982 by JPL
Replied by JPL on topic newbee question
Ok, thanks PCW. Then I guess best is to wait to see the content of the file.

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 12:42 #255027 by Vorms
Replied by Vorms on topic newbee question
Hello,
Many thanks for your response.
You will find my configs file in attachment.
Many thanks for helping me !

Best regards
Attachments:

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 13:39 #255030 by Vorms
Replied by Vorms on topic newbee question
Files are in attachment.
Many thanks for helping me.
Regrds
Attachments:

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 14:05 #255034 by HansU
Replied by HansU on topic newbee question
Maybe it's a hidden special character in this line.
Try to re-type this line.
I have also seen such a wrong char in line 63
"SERIAL_BAUD=115200  "

Furthermore in your main INI file this doesn't looks correct even though it might not fail here.
[DISPLAY]
DISPLAY = :axis 

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 14:27 #255037 by Vorms
Replied by Vorms on topic newbee question
Many thanks for your help. I corrected both file but he problem is still persistent.
Looking at the error log, is that means the error is in file mb2hal.in line 11 ?

Thanks a lot helping me!
Attachments:

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 15:21 #255039 by andypugh
Replied by andypugh on topic newbee question
Oddly, the error shown seems to be from halcmd:
github.com/LinuxCNC/linuxcnc/blob/2.8/sr.../utils/halcmd.c#L816

What is the "loadusr mb2hal...." line in your main HAL file?

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 15:40 #255040 by Vorms
Replied by Vorms on topic newbee question
Hello, thanks for your reply.
Sorry, I didn't find loadusr mb2hal line. In wich file did you fond this reference ? Sorry for my question ?
Are you telling about the line:
HAL_MODULE_NAME=mb2hal ?
That is for the modbus module.
Many thanks to helping me
Regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.081 seconds
Powered by Kunena Forum