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

Expantion port logic output

Scheduled Pinned Locked Moved
General Discussion
3
7
305
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
    printthatthing
    last edited by 27 Aug 2020, 18:03

    Hi, how can I trigger CS5 pin or any availble pin?
    I have tried M42 CS5 S1 but it give me an error.
    I add a P in front M42 PCS5 S1 no error but the CS5 pin remains on 3V

    1 Reply Last reply Reply Quote 0
    • ?
      A Former User
      last edited by 27 Aug 2020, 18:38

      which version of reprap firmware are you using?
      which duet board are you using (likely duet 2 ethernet or duet 2 wifi?)

      (run M115 to verify firmware version)

      1 Reply Last reply Reply Quote 0
      • undefined
        printthatthing
        last edited by 27 Aug 2020, 18:47

        @bearer Hi, I'm using Duet 2 WiFi with firmware 3.1.1

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by A Former User 27 Aug 2020, 18:48

          try P"spi.cs5"

          ref https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_Pin_names_for_Duet_2_WiFi_Ethernet

          (edit> also see https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_M42 on the same page to include M950 in adittion to M42.)

          undefined 1 Reply Last reply 27 Aug 2020, 18:52 Reply Quote 0
          • undefined
            printthatthing @A Former User
            last edited by 27 Aug 2020, 18:52

            @bearer Thank you very much. I will try it once the ongoing prints are done.

            1 Reply Last reply Reply Quote 0
            • undefined
              dc42 administrators
              last edited by 27 Aug 2020, 19:36

              As you are using RRF 3.1 you will need to use two commands:

              1. A M950 command to assign a GpOut port to CS5:

              M950 P0 C"spi.cs5"

              assuming you haven't already assigned GpOut 0. You need only send this once.

              1. A M42 command that refers to the GPIO pin:

              M42 P0 S1

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              undefined 1 Reply Last reply 29 Aug 2020, 06:08 Reply Quote 0
              • undefined
                printthatthing @dc42
                last edited by 29 Aug 2020, 06:08

                @dc42 said in Expantion port logic output:

                M950 P0 C"spi.cs5"

                Thank you, I got it to work now:)
                P5 was the next free so my config file now have these lines to start logic 0
                M950 P5 C"spi.cs5"
                M42 P5 S0

                My layer change script in Simplyfy3d as below.
                G1 X395 Y200 F15000
                G4 S0
                G4 P500
                M42 P5 S1
                G4 P200
                M42 P5 S0
                G4 P500

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