mesa_modbus.adoc - missing .00 in function name#3819
mesa_modbus.adoc - missing .00 in function name#3819andypugh merged 1 commit intoLinuxCNC:masterfrom
Conversation
addf my_file servo-thread is not working but addf my_file servo-thread works
|
You may be right. However, you should not be using the mesa_modbus driver anymore. You should move to There is a new driver that is much more capable. See https://linuxcnc.org/docs/stable/html/man/man9/hm2_modbus.9.html and https://linuxcnc.org/docs/stable/html/man/man1/mesambccc.1.html for docs on the new driver. |
|
This information should be listed here: Is Mesa Modbus unreliable? Has HM2_MODBUS manual page with example configuration like Mesa Modbus? |
You are right, it should have been made clear in the old docs that the old driver has been superseded (for about 10 months now).
The old driver is not very capable with respect to how data is represented to/from the modbus device. The hm2_modbus driver uses a mapping from modbus data to hal pins with proper data sizes, data types and translations (as specified in the mbccs). The new driver is also capable of device initialization and gives you full control over timing of the individual commands.
Manual (man) page hm2_modbus.9 and mesambccc.1as in the links previously provided. There are example in configs in
The problem is that the driver has no control over from where it (linuxcnc) was started. So, the "present working directory" (PWD) may change between program starts and results in relative file paths not being found. To prevent that, use absolute paths. If you have files with identical names in multiple places, then you even risk opening the wrong file is you have relative paths. |
|
It may be better to take a look at the adoc sources and let github do the adoc formatting. It looks like the homepage's docs are not properly formatted. https://github.com/LinuxCNC/linuxcnc/blob/master/docs/src/man/man1/mesambccc.1.adoc |
You are right, but as a systems engineer, I never trust relative paths unless I control everything. |
The homepage docs are properly formatted according to the (old) asciidoc-py. But Github seems to use the (state of the art) asciidoctor syntax. |
|
Yes, mesa_modbus has been superseded, but it still works (as well as it ever did). The docs should be correct. |

addf my_file servo-thread
is not working
but
addf my_file.00 servo-thread
works
I found it here:
