---- Dewey Garrett <dgarr...@panix.com> wrote: > > > The line in 7i92_AM882_hack.hal was: > > loadrt [HOSTMOT2](DRIVER) config=[HOSTMOT2](CONFIG) > > For this case you can omit parentheses: > loadrt [HOSTMOT2]DRIVER config=[HOSTMOT2]CONFIG
OK I made the loadrt as above, it loads ok without TWOPASS, but when I added TWOPASS, I get: twopass: Error in file ./7i92_AM882_hack.hal: can't read "::HOSTMOT2((BOARD)": no such element in array twopass: Error in file ./xhc-hb04_hack.hal: can't read "::HOSTMOT2((BOARD)": no such element in array So my next thought is I also needed to remove the parenthesis in the references, changing setp hm2_[HOSTMOT2](BOARD).0.watchdog.timeout_ns 25000000 net estop_hardswitch hm2_[HOSTMOT2](BOARD).0.gpio.030.in_not => and2.6.in0 into this: setp hm2_[HOSTMOT2]BOARD.0.watchdog.timeout_ns 25000000 net estop_hardswitch hm2_[HOSTMOT2]BOARD.0.gpio.030.in_not => and2.6.in0 But it won't parse with TWOPASS= on: can't read "::HOSTMOT2(BOARD.0.watchdog.timeout_ns)": no such element in array can't read "::HOSTMOT2(BOARD.0.gpio.030.in_not)": no such element in array Without TWOPASS, I see to have broken parsing anyhow: Ini variable '[HOSTMOT2]BOARD.0.watchdog.timeout_ns' not found. ? Is there a harder bug here regarding parsing the parenthesis? It seems to require them in the references, but TWOPASS chokes when trying to parse them. Danny > > Though I find little documentation, halcmd (halcmd.c) supports > interpretation of ini variables in two formats: > [SECTION]VAR<whitespace> > [SECTION](VAR)<any char> > > The form using parentheses is needed in some cases to resolve > parsing ambiguities. > > The twopass processing has not supported the form using parentheses. > > I will address this omission with a future patch update for 2.7 but your > case can probably be handled using the form without parentheses. > > > -- > Dewey Garrett > > > ------------------------------------------------------------------------------ > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users