I am building a Duet 3 6HC and 3HC expansion board SBC system to mount a Laser Welding head on. (I have been laser welding for 23 years and 3D printing with Duet for about 4 years now, I thought its about time to get them married for some automation.
Anyway, I have successfully built the machine, and configured the 6HC. It homes and drives the X,Y, and Dual Independent Z Axis as expected. I have also incorporated a Joystick that is connected to 4 of the inputs on the 6HC and when the joystick is moved, it calls individual triggers to execute Gcode moves for manual recording of moves for playback later (the playback is yet to be tested with M28 and M29).
Where I am getting hung up is calling the trigger from an input on the 3HC expansion board. I have a button wired to the IO2 pins on the 3HC and it lights up correctly, but I can't call the trigger correctly.
I have a connection between the 6HC and 3HC confirmed with M122 and allocated to be #1 on the can bus addressing.
Does anyone have an example of the config lines for M950 and M574 to call a trigger from the Expansion board?
Here is what I have in config.g (my triggers are in the /sys/directory and J5 to J6 all work correctly. Just not the one to the Expansion board.
;Triggers
M950 J5 C"io5.in" ;set the input on io5 for the trigger Joystick
M950 J7 C"io7.in" ;set the input on io7 for the trigger Joystick
M950 J8 C"io8.in" ;set the input on io8 for the trigger Joystick
M950 J6 C"io6.in" ;set the input on io6 for the trigger Joystick
M950 J9 C"1.io2.in" ;set the inpout for expansion board 1 (3HC) pin 2 to input for green button
M581 P5 S0 T5 R0 ;define trigger to Trigger 5 for io5
M581 P6 S0 T6 R0 ;define trigger to Trigger 6 for io6
M581 P7 S0 T7 R0 ;define trigger to Trigger 7 for io7
M581 P8 S0 T8 R0 ;define trigger to Trigger 8 for io8
M581 P9 S0 T9 R0 ;define trigger to Expansion pin 2 to trigger 9