Skip to content
  1. Aug 21, 2022
  2. Jul 26, 2022
    • luz paz's avatar
      hal: fix various typos · e71761b2
      luz paz authored
      Found via `codespell -q 3 -S *.po,*.pot,*.ts,./.git/logs,./share,./docs/man/es,./configs/attic,*_fr.*,*_es.*,README_es -L ans,ba,bulle,componentes,doubleclick,dout,dum,fo,halp,ihs,inout,parm,parms,ro,ser,te,ue,wille,wonte`
      e71761b2
  3. May 01, 2022
    • Sebastian Kuzminsky's avatar
      Merge remote-tracking branch 'origin/2.8' into master-merge · a286342b
      Sebastian Kuzminsky authored
      * origin/2.8:
        docs: make an index.html page for the PDF docs
        cosmetic fix to a configure error message
        Update for new version of Rpi400
        Update for new version of Rpi400
        docs: changed url in halshow doc
        docs: created mb2hal doc based on sample ini file
        mb2hal: added pins to manpage
        docs: fixed link
        docs: include mb2hal ini file in docs
        mb2hal: updated and fixed sample configuration
        gmoccapy: sensitize save button after 'save as'
        gmoccapy: fix detection of file change
        Update ini-config.txt
        Update ini-config.txt
        Add files via upload
        correcting submakefile for 2.8
        update
        missing in documentation for INI RS274 section
        Change EDITOR = geany. Restore more generous dirhold and dirsetup timing.
        Updated the gantry example with what I gather from the forum is best practice. 1) Reduce from 4(XYZA) to 3(XYZY) coordinate. 2) Use negative HOME_SEQUENCE values for synchronous homing of the dual Y joints. 3) Rename signals such as adir, astep to y2dir, ystep.
        full update xhc-whb04b-6 for 2.8
      a286342b
  4. Mar 20, 2022
  5. Feb 27, 2022
  6. Dec 13, 2021
  7. Nov 20, 2021
  8. Nov 11, 2021
    • luz paz's avatar
      Fix typos in src/hal · dfc2344b
      luz paz authored
      Found via `codespell -q 3 -S *.po,*.ts,./share,./docs/man/es,./configs/attic,*_fr.*,*_es.* -L ans,ba,bulle,componentes,doubleclick,dout,dum,fo,halp,ihs,inout,parm,parms,ser,te,ue,wille,wont`
      dfc2344b
  9. Jan 23, 2021
    • Hans Unzner's avatar
      mb2hal: added debuglevel 'DBGMAX' · eff76a1e
      Hans Unzner authored
      Setting DEBUG=3 on transactions produces a lot of useless debug information what makes it impossible to read the data bytes. That is now moved to DEBUG=4.
      eff76a1e
  10. Jan 17, 2021
  11. Jan 08, 2021
  12. Dec 31, 2020
  13. Apr 21, 2020
  14. Apr 18, 2020
  15. Jun 03, 2019
    • Sebastian Kuzminsky's avatar
      Merge remote-tracking branch 'origin/2.7' into 2.8 · c5f484c1
      Sebastian Kuzminsky authored
      * origin/2.7:
        fix some compiler warnings in libnml
        debian buster packaging: use correct package names for python imaging debs
        let debian/configure specify python-imaging and python-imaging-tk package names
        debian/configure: Debian-testing will become Debian-10
        packaging: don't depend on python-gnome2
        remove unused program halgui
        hy_gy_vfd: fix modbus byte timeout
        mb2hal: add support for libmodbus 3.1.2 and newer
      c5f484c1
    • Sebastian Kuzminsky's avatar
      mb2hal: add support for libmodbus 3.1.2 and newer · 14c9f0df
      Sebastian Kuzminsky authored
      This commit makes mb2hal build with both libmodbus < 3.1.2 (Debian
      Stretch and older) and libmodbus >= 3.1.2 (Debian Buster).
      14c9f0df
  16. Aug 21, 2018
    • Lars Bensmann's avatar
      mb2hal: call modbus_flush() on transaction error · 0828f36f
      Lars Bensmann authored
      When a communication error happens and a transaction is just partially
      read the modbus link can get out of sync. The next transaction gets the
      unconsumed data from the transaction before and so on and the link does
      not recover form this. modbus_flush() prevents this behaviour.
      0828f36f
  17. Aug 19, 2018
  18. Jan 22, 2018
    • Sebastian Kuzminsky's avatar
      Merge remote-tracking branch 'origin/2.7' · b620e895
      Sebastian Kuzminsky authored
      Conflicts:
      	docs/man/man1/halstreamer.1
      	lib/python/gladevcp/combi_dro.py
      	src/emc/motion/command.c
      	src/emc/task/emccanon.cc
      	src/emc/usr_intf/emcrsh.cc
      	src/emc/usr_intf/gmoccapy/getiniinfo.py
      	src/hal/components/biquad.comp
      	src/hal/components/orient.comp
      	src/hal/components/streamer.c
      b620e895
  19. Jan 21, 2018
  20. Sep 15, 2017
  21. Jul 01, 2017
  22. Aug 20, 2016
  23. Jul 04, 2016
  24. Jul 27, 2014
  25. Sep 06, 2013
    • Jeff Epler's avatar
      mb2hal: compute timeouts with integer math · d226fd5c
      Jeff Epler authored
      The prior code uses questionable casts to do what can be done with
      modulo integer math.
      
      The new code does not give *exactly* the same timeout, because the
      calculation
          (int)(float)(this_mb_tx->mb_response_timeout_ms / 1000.0)
      is subject to rounding errors, while
          timeout.tv_sec  = this_mb_tx->mb_response_timeout_ms / 1000;
      is not.  For example for a response timeout of 2001ms, the old code
      would actually give a timeout of 2.000999 seconds, while the new code
      gives the correct result of 2.001000 seconds.  The new code begins
      giving "radically" different (but again more correct) values around
      65536 seconds due to the loss of precision in float arithmetic
      (65536.000f == 65536.001f when you have a 24-bit mantissa)
      
      Tested by cut&paste of old and new code into a test harness:
      
      struct timeval fold(long arg)
      {
          struct timeval timeout;
          timeout.tv_sec  = (int)(float)(arg / 1000.0);  //int part of the float
          timeout.tv_usec = ((float)(arg / 1000.0) - timeout.tv_sec) * 1000000;
          return timeout;
      }
      
      struct timeval fnew(long arg)
      {
          struct timeval timeout;
          timeout.tv_sec  = arg / 1000;
          timeout.tv_usec = (arg % 1000) * 1000;
          return timeout;
      }
      
      void check(long timeout) {
          struct timeval ta = fold(timeout);
          struct timeval tb = fnew(timeout);
      
          double a = ta.tv_sec + ta.tv_usec * 1e-6;
          double b = tb.tv_sec + tb.tv_usec * 1e-6;
          if(fabs(a - b) > .001) {
          // if(ta.tv_sec != tb.tv_sec || ta.tv_usec != tb.tv_usec) {
              printf("fail tv_sec %lu: %lu.%06lu != %lu.%06lu\n", timeout,
                  (long) ta.tv_sec, (long) ta.tv_usec,
                  (long) tb.tv_sec, (long) tb.tv_usec);
          }
      }
      
      int main() {
          long i;
          for(i=0; i<1000*1000*1000; i += 500) {
              check(i);
              check(i+1);
              check(i+499);
          }
      }
      d226fd5c
  26. Jun 05, 2013
    • Sebastian Kuzminsky's avatar
      configure: require libmodbus3 · c2c5c067
      Sebastian Kuzminsky authored
      By default, configure will now look for libmodbus (installed from a
      separate deb, provided by Ubuntu for Precise and by the linuxcnc.org
      debian archive for Hardy and Lucid) and error out if it can't be found.
      
      The user can disable this check (and disable compilation of all drivers
      that use libmodbus) by configuring with "--without-libmodbus".
      c2c5c067
  27. Mar 27, 2013
  28. Nov 13, 2012
    • Victor Rocco's avatar
      mb2hal: added functionallity, including arduino example. · c4e41765
      Victor Rocco authored
      
      
      - Arduino example added.
        Tested with Arduino Mega 2560 R3 using Modbusino over USB at 115200 bps.
      - New parameters in config file.
        HAL_MODULE_NAME, MB_RESPONSE_TIMEOUT_MS and MB_BYTE_TIMEOUT_MS.
      - New HAL pin "num_errors" for each transaction. num_errors = 0 if last
        transaction OK, else the count of failed transactions.
      - Fix a bug, OPTIONAL's parameters may be 0 instead of default value if
        not specified in 1st transaction.
      
      Signed-off-by: default avatarMichael Haberler <git@mah.priv.at>
      c4e41765
    • Victor Rocco's avatar
      mb2hal: now using libmodbus3, added improvements. · 7bea47a3
      Victor Rocco authored
      
      
      - Mb2hal now uses libmodbus3 instead of the old libmodbus file
        located in src/hal/user_comps/modbus.c used by gs2_vfd.c
        # Also fix a TIMEOUT bug (due to this unpatched old libmodbus file).
      - Better INI file documentation (HOW-TO).
      - Better Submakefile.
      - Source code cleaned and reordered.
        # Now is posible to add new functionallity.
      
      See LogBook.txt for more information.
      
      Signed-off-by: default avatarMichael Haberler <git@mah.priv.at>
      7bea47a3
  29. Nov 01, 2012
  30. Oct 27, 2012
  31. Oct 24, 2012