Expantion port logic output
-
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 -
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) -
@bearer Hi, I'm using Duet 2 WiFi with firmware 3.1.1
-
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.)
-
@bearer Thank you very much. I will try it once the ongoing prints are done.
-
As you are using RRF 3.1 you will need to use two commands:
- 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.
- A M42 command that refers to the GPIO pin:
M42 P0 S1
-
@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 S0My 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