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

Duet3 6XD input error problems with Clearpath SDSK

Scheduled Pinned Locked Moved
General Discussion
2
7
168
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.
  • undefined
    FS-TOOLS
    last edited by 10 Jan 2024, 12:45

    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

    undefined 1 Reply Last reply 10 Jan 2024, 12:49 Reply Quote 0
    • undefined
      jay_s_uk @FS-TOOLS
      last edited by 10 Jan 2024, 12:49

      @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

      undefined 1 Reply Last reply 10 Jan 2024, 12:59 Reply Quote 0
      • undefined
        FS-TOOLS @jay_s_uk
        last edited by 10 Jan 2024, 12:59

        @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

        undefined undefined 2 Replies Last reply 10 Jan 2024, 13:03 Reply Quote 0
        • undefined
          jay_s_uk @FS-TOOLS
          last edited by jay_s_uk 1 Oct 2024, 13:04 10 Jan 2024, 13:03

          @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
          • undefined
            FS-TOOLS @FS-TOOLS
            last edited by 10 Jan 2024, 13:11

            @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?

            undefined 1 Reply Last reply 10 Jan 2024, 13:17 Reply Quote 0
            • undefined
              jay_s_uk @FS-TOOLS
              last edited by 10 Jan 2024, 13:17

              @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

              undefined 1 Reply Last reply 10 Jan 2024, 13:19 Reply Quote 1
              • undefined
                FS-TOOLS @jay_s_uk
                last edited by 10 Jan 2024, 13:19

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

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