> hm2/hm2_7i90.0: invalid token in config string: "{num_encoders=4"

>> It looks almost as if the loadrt hostmot2 line has "grown" some
>> spurious brackets

This error report could be caused by:
   a) malformed loadrt line in the hal file (not posted)
or
   b) complex loadrt string parameters mishandled by twopass proccessing.

The latter case (b)) is addressed in the master branch (2.8~pre)
by a provision to exclude individual hal files from twopass
processing.

Document Ref:
http://linuxcnc.org/docs/devel/html/hal/twopass.html#_exluding_hal_files

To avoid errors from a problematic fpga loadrt line,
place the loadrt line in a separate hal file that
uses the magic comment "#NOTWOPASS" to exclude
twopass processing for that file alone.  Example:
  $ cat excludeme.hal
  #NOTWOPASS
  loadrt hm2_... ...

And use appropriate ini entries:
  [HAL]
  TWOPASS = verbose
  HALFILE = excludeme.hal
  HALFILE = one.hal
  HALFILE = two.hal
  ...

NOTE: The addf commands for the loaded module should be located
in a file that *is* handled by twopass processing in order to ensure 
the desired order of module execution.


The implementing commit is available in the master branch after
March of2018.
Ref: https://github.com/LinuxCNC/linuxcnc/commit/a7ca8053a

The provided sim config (configs/sim/axis/twopass/twopass.ini)
demonstrates using the halfile configs/sim/axis/twopass/twopass_excluded.hal)
-- 
Dewey Garrett


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to