On Thu, 6 Feb 2020 at 19:05, John Dammeyer <[email protected]> wrote:

> If someone submitted that page to a magazine as an article on how to use 
> MB2HAL do you think an editor would publish it as is?

Not a chance. It is certainly one of the worst manual pages.

> #Using HAL_MODULE_NAME=mb2hal or nothing (default): loadusr -W mb2hal 
> config=config_file.ini

> Is the loadusr command entered in the HAL file, the INI file or entered on 
> the command line.  Should LinuxCNC be running if it's entered on the command 
> line?

It should be in the HAL file (but only the section after the colon).
But, actually, it would work at the command-line too, if LinuxCNC was
running. but then it would need to be
halcmd loadusr ....
(though if you use halcmd -kf to join a running HAL session, then you
can omit the "halcmd" and also benefit from tab-completion of commands
and pin names.
This is all documented, but it would take me a while to find it all,
and I know where to look and, more importantly, that it exists to look
for)

> If the example config file named mb2hal.ini?  I see loadrt commands in the 
> .hal file for my parallel port implementation.  I don't see any load files of 
> type ini.

It's a bit unusual in that mb2hal consumes an INI file, but it is not
the same INI file as defines the LinuxCNC machine config.

loadusr -> load a user-space HAL component
-W -> wait for it to declare that loading has completed before
continuing with the HAL
config=config_file.ini -> configure the Modbus link according to the
definitions in the config_file.ini file.

I have never used mb2hal, so don't really feel qualified to improve
the docs for the module.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to