How to use input port of the Expansion for the Endstops (3.5.2)
-
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:
- 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?
- 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 S120I am sharing a simplified block diagram, configuration files, and results from executing M98 P"config.g" here:
https://github.com/crono2250/mounter_duet3_configThe 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.2thank you
Ryosuke -
@Ryosuke-Saito i would suggest you're configuring it wrong.
On the 6HC, all you should have in the config isM954 A1
Everything else for the configuration should be in the 6XD config -
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. -
@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 -
@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!