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

    How to use input port of the Expansion for the Endstops (3.5.2)

    Scheduled Pinned Locked Moved
    Firmware installation
    2
    5
    121
    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.
    • Ryosuke Saitoundefined
      Ryosuke Saito
      last edited by

      Hi
      I have configured hardware with MB6XD and MB6HC connected via CAN as a controller for OpenPnP, but I'm struggling to resolve an error that occurs in the definition of the input port for homing, Could you please give me some advice?

      The error message in the console log of the 6XD is as follows:
      "Error in start-up file macro line 85: Pin 'io0.in' is not free"

      In line 85 of config.g, it is defined as follows. It is assumed that io0.in of MB6HC (CAN ID1) will be used.
      M574 Z1 P"^1.io0.in" S1

      ; Endstops
      M574 X2 P"^io0.in" S1 ; configure X axis endstop ; endstop for high end on X via pin ^io0.in
      M574 Y2 P"^io1.in" S1 ; configure Y axis endstop ; endstop for high end on Y via pin ^io1.in
      M574 Z1 P"^1.io0.in" S1 ; configure Z axis endstop ; endstop for low end on Z0 via pin ^1.io0.in
      ;M574 A0 ; configure A axis endstop
      ;M574 B0 ; configure B axis endstop
      M574 U1 P"^1.io1.in" S1 ; configure U axis endstop ; endstop for high end on Z1 via pin ^1.io1.in
      ;M574 V0 ; configure V axis endstop
      ;M574 W0 ; configure W axis endstop
      

      I have not been able to understand the following points:

      1. The settings for M350, M566, M203, etc., should be defined in the configuration file of the board to which the axis belongs, or in the configuration file of the host board?
      2. Is it possible to use the input ports of the Expansion Board for the endstop port used for homing? If so, what is the specific method for doing this?

      The CAN connection with the 6HC was confirmed to be working by executing the following command from the MB6XD console, and verifying that the servo motor for radio control connected to the MB6HC operates:
      M288 P9 S120

      I am sharing a simplified block diagram, configuration files, and results from executing M98 P"config.g" here:
      BlockDiagram.png
      https://github.com/crono2250/mounter_duet3_config

      The firmware versions for each board are as follows:
      Duet 3 MB6XD: Version 3.5.2
      Duet 3 Expansion MB6HC: Version 3.5.2
      Duet Web Control (DWC): Version 3.5.2

      thank you
      Ryosuke

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @Ryosuke Saito
        last edited by

        @Ryosuke-Saito i would suggest you're configuring it wrong.
        On the 6HC, all you should have in the config is M954 A1
        Everything else for the configuration should be in the 6XD config

        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

        Ryosuke Saitoundefined 1 Reply Last reply Reply Quote 0
        • Ryosuke Saitoundefined
          Ryosuke Saito @jay_s_uk
          last edited by

          Thank you for your suggestion.
          As a result of trial and error to get M288 P9 S120 to work as expected,
          it was necessary to make some settings on the 6HC side.
          I will try setting the 6HC config.g to just M954 A1.

          jay_s_ukundefined 1 Reply Last reply Reply Quote 0
          • jay_s_ukundefined
            jay_s_uk @Ryosuke Saito
            last edited by

            @Ryosuke-Saito good stuff.
            As I say, all config commands should be in the config on the mainboard, which means you only need a small SD card in the mainboard running as an expansion board.
            When a mainboard is setup in expansion mode (which is what M954 is doing), it then announces itself to the "main" mainboard and gets all its configuration requirements sent to it over CAN-FD

            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

            Ryosuke Saitoundefined 1 Reply Last reply Reply Quote 0
            • Ryosuke Saitoundefined
              Ryosuke Saito @jay_s_uk
              last edited by

              @jay_s_uk I moved all the settings that were defined in config.g of MB6HC to MB6XD.
              By checking the operation of out9, I confirmed that the ports of 6HC can be controlled.

              I also resolved the issue with the input port error for the origin sensor, which was something I wanted to ask about on this topic.

              Thank you!

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