Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Duet3 6XD input error problems with Clearpath SDSK

    Scheduled Pinned Locked Moved
    General Discussion
    2
    7
    182
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • FS-TOOLSundefined
      FS-TOOLS
      last edited by

      Hello everyone, I have the following issue. My large-scale 3D printer is equipped with ball screw spindles and ClearPath SDSK motors on all axes, enabling me to achieve high processing speeds. On the Y-axis, there are two motors controlling individual spindles that run synchronously. In case of an error, I need to trigger an error state. I've managed to do this, but an error is also detected when I first move to the home position. Once the axes are in the home position and the event is cleared, I can move the axes to different positions and induce an error through the mechanics. This induced error is properly recognized at the error input, triggering the event. Now, I could create an error macro that activates during this event. The issue is that this macro also executes when I first move to the home position. I believe the problem lies in the state change of the servo motor output during the initial enable command, resulting in an error. How can I handle this problem?

      Best regards

      Fabian

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @FS-TOOLS
        last edited by

        @FS-TOOLS what you could do is have a global variable that you flag as true at the start of the homing sequence and then change it to false once finished homing.
        Then your error macro could ignore the error if that global variable is true

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        FS-TOOLSundefined 1 Reply Last reply Reply Quote 0
        • FS-TOOLSundefined
          FS-TOOLS @jay_s_uk
          last edited by

          @jay_s_uk Hello jay_s_uk,

          this is my homeall.g

          f36a3c0b-3623-4f83-9080-3a011311e59a-image.png

          How should this command look like?

          Best regards

          Fabian

          jay_s_ukundefined FS-TOOLSundefined 2 Replies Last reply Reply Quote 0
          • jay_s_ukundefined
            jay_s_uk @FS-TOOLS
            last edited by jay_s_uk

            @FS-TOOLS something like

            if !exists(global.homing)		; checks for the existence of global.homing
            	global homing= true		; if it doesn't exist, set the value to true
            else
            	set global.homing = true    ; if it does exist, set the value to true
            

            at the very beginning
            and

            set global.homing = false
            

            at the very end

            then you can you can check its state in the error file
            e.g.

            if !global.homing
                 error stuff
            

            this is worth a read https://docs.duet3d.com/en/User_manual/Reference/Gcode_meta_commands

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

            1 Reply Last reply Reply Quote 0
            • FS-TOOLSundefined
              FS-TOOLS @FS-TOOLS
              last edited by

              @FS-TOOLS Thank`s a lot.

              But is there no way, that the error message doesn`t appers or be indicated at the first homing action?

              jay_s_ukundefined 1 Reply Last reply Reply Quote 0
              • jay_s_ukundefined
                jay_s_uk @FS-TOOLS
                last edited by

                @FS-TOOLS that comes from the drivers I guess so would be outside the control of RRF

                Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                FS-TOOLSundefined 1 Reply Last reply Reply Quote 1
                • FS-TOOLSundefined
                  FS-TOOLS @jay_s_uk
                  last edited by

                  @jay_s_uk Thank`s for your support!!!!!!!!!!!!!!!

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA