Duet2 WiFi Firmware on Raise 3d E2 ?
-
Can I calculate the steps?
-
@Proschi78 said in Duet2 WiFi Firmware on Raise 3d E2 ?:
Can I calculate the steps?
-
M92 X1280.00 Y1280.00 Z4000.00 E420.00:420.00 ; set steps per mm @256
M92 X1280=1280/4=320 ? @16
-
256 / 16 = 16
1280 / 16 = 80 -
Now I have one more problem. When I go z home the printer moves to the upper limit switch and the pin of the Z probe remains extended
-
Post your homeall.g
Also, you don't have any steps per mm or microstepping set for the U axis.
M92 X1280.00 Y1280.00 Z4000.00 E420.00:420.00 ; set steps per mm
-
@Phaedrux It works now, many thanks for your help. Now I just have to get the Idex to work properly. Single extruder and dual function, only the mirtor mode and duplicate mode not yet
-
As expected, the Idex setup did not work;)
Here are my settings
; Configuration file for Duet WiFi (firmware version 2.00) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.2.2 on Mon Jan 25 2021 18:31:38 GMT+0100 (Mitteleuropäische Normalzeit) M575 P1 S1 B57600 M552 S1 ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"My Printer" ; set printer name ; Network ; Drives M569 P0 S0 M569 P1 S1 M569 P2 S0 M569 P3 S1 M569 P4 S1 M569 P5 S0 ; physical drive 4 goes forwards M584 X0 Y1 Z2 E3:4 U5 ; set drive mapping M350 X128 Y128 U128 Z128 E128:128 I1 ; configure microstepping without interpolation M92 X640 Y640 U640 Z6400 E2150:2150 ; set steps per mm M566 X480 Y300 U480 Z24 E300:300 ; set maximum instantaneous speed changes (mm/min) M203 X9000 U9000 Y9000 Z720 E3000:3000 ; set maximum speeds (mm/min) M201 X1000 U1000 Y500 Z100 E3000:3000 ; set accelerations (mm/s^2) M906 X900 U900 Y900 Z900 E800:800 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits M204 P800 T1500 M208 X-3 Y0 Z0 U35 S1 ; set axis minima M208 X327 Y240 Z240 U355 S0 ; set axis maxima ; Endstops M574 X1 Y1 U2 S1 M574 Z2 S1 ; set active high endstops ; Z-Probe M558 X100 P5 H7 F100 T9000 R2 I1 ; set Z probe type to unmodulated and the dive height + speeds G31 P2 X15 Y18 Z0.515 ; set Z probe trigger value, offset and trigger height M557 X15:335 Y18:245 S80:50 ; define mesh grid ; Heaters M305 P0 T100000 B3950 C0 R4700 ; set thermistor + ADC parameters for heater 0 M143 H0 S120 ; set temperature limit for heater 0 to 120C M305 P1 T100000 B4725 C200433 R4700 ; set thermistor + ADC parameters for heater 1 M143 H1 S320 ; set temperature limit for heater 1 to 320C M305 P2 T100000 B4725 C200433 R4700 ; set thermistor + ADC parameters for heater 2 M143 H2 S320 ; set temperature limit for heater 2 to 320C ; Fans M106 P0 S0 I0 F500 H-1 ; set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off M106 P1 S0 I0 F500 H-1 ; set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned off M106 P2 S0 I0 F500 H-1 ; set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off ; Tools M563 P0 D0 H1 ; define tool 0 G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C M563 P1 D1 H2 X3 ; define tool 1 G10 P1 U0 Y0 Z0 ; set tool 1 axis offsets G10 P1 R0 S0 ; set initial tool 1 active and standby temperatures to 0C M563 P2 D0:1 H1:2 X0:3 M567 P2 E1.0:1.0 G10 P2 X0 U0 Y0 Z0 G10 P2 R0 S0 M591 D0 C6 P1 S1 M591 D1 C7 P1 S1 ;Idex Setup M563 P0 D0 H1 S"X" ; define tool X M563 P1 D1 H2 X3 F2 S"U" ; define tool U M563 P2 D0:1 H1:2 X0:3 F0:2 S"XU" ; define tool X+U copy mode G10 P2 X50 Y0 U-50 S0 R0 ; set tool offsets and temperatures M567 P2 E1:1 ; set mix ratio 100% on both extruders M555 P6 M501 T0 ; Custom settings are not defined
-
@Proschi78 said in Duet2 WiFi Firmware on Raise 3d E2 ?:
M305 P1 T100000 B4725 C200433 R4700 ; set thermistor + ADC parameters for heater 1
M305 P2 T100000 B4725 C200433 R4700 ; set thermistor + ADC parameters for heater 2you still have not fixed your thermistor setting C200433 is incorrect
-
@Veti But it only works with these settings
-
what thermistor do you have?
-
-
-
@Proschi78
thats not whats in the picture. can you post a link to the thermistors data sheet? -
thermocouple max31855
-
-
@Proschi78 said in Duet2 WiFi Firmware on Raise 3d E2 ?:
thermocouple
that is normally configured like this
M305 P1 X100 ; configure thermocouple for heater 1but if they connected a thermocouple directly to the adc that is something different
-
It all runs through an extruder board
-
-
Now i have the Pinout
#ifndef PINS_DUETNG_H__ #define PINS_DUETNG_H__ # define FIRMWARE_NAME "RepRapFirmware for Duet 2 WiFi/Ethernet" # define DEFAULT_BOARD_TYPE BoardType::DuetWiFi_10 constexpr size_t NumFirmwareUpdateModules = 4; // 3 modules, plus one for manual upload to WiFi module (module 2 is now unused) # define IAP_FIRMWARE_FILE "Duet2CombinedFirmware.bin" #define IAP_UPDATE_FILE "iap4e.bin" // using the same IAP file for both Duet WiFi and Duet Ethernet # define WIFI_FIRMWARE_FILE "DuetWiFiServer.bin" // Features definition #define HAS_LWIP_NETWORKING 0 # define HAS_WIFI_NETWORKING 1 # define HAS_W5500_NETWORKING 1 #define HAS_CPU_TEMP_SENSOR 1 #define HAS_HIGH_SPEED_SD 1 #define SUPPORT_TMC2660 1 #define TMC2660_USES_USART 1 #define HAS_VOLTAGE_MONITOR 1 #define HAS_VREF_MONITOR 0 #define ACTIVE_LOW_HEAT_ON 1 #define SUPPORT_INKJET 0 // set nonzero to support inkjet control #define SUPPORT_ROLAND 0 // set nonzero to support Roland mill #define SUPPORT_SCANNER 1 // set zero to disable support for FreeLSS scanners #define SUPPORT_LASER 1 // support laser cutters and engravers using G1 S parameter #define SUPPORT_IOBITS 1 // set to support P parameter in G0/G1 commands #define SUPPORT_DHT_SENSOR 1 // set nonzero to support DHT temperature/humidity sensors #define SUPPORT_WORKPLACE_COORDINATES 1 // set nonzero to support G10 L2 and G53..59 #define SUPPORT_OBJECT_MODEL 1 #define USE_CACHE 1 // set nonzero to enable the cache // The physical capabilities of the machine constexpr size_t NumDirectDrivers = 12; // The maximum number of drives supported directly by the electronics constexpr size_t MaxTotalDrivers = NumDirectDrivers; // The maximum number of drives including CAN expansion constexpr size_t MaxSmartDrivers = 10; // The maximum number of smart drivers constexpr size_t NumEndstops = 12; // The number of inputs we have for endstops, filament sensors etc. constexpr size_t NumHeaters = 7; // Raise for 7 and origin 8 The number of heaters in the machine; 0 is the heated bed even if there isn't one constexpr size_t NumExtraHeaterProtections = 8; // The number of extra heater protection instances constexpr size_t NumThermistorInputs = 8; constexpr size_t MinAxes = 3; // The minimum and default number of axes constexpr size_t MaxAxes = 9; // The maximum number of movement axes in the machine, usually just X, Y and Z, <= DRIVES constexpr size_t MaxExtruders = NumDirectDrivers - MinAxes; // The maximum number of extruders constexpr size_t MaxDriversPerAxis = 5; // The maximum number of stepper drivers assigned to one axis constexpr size_t NUM_SERIAL_CHANNELS = 2; // The number of serial IO channels not counting the WiFi serial connection (USB and one auxiliary UART) #define SERIAL_MAIN_DEVICE SerialUSB #define SERIAL_AUX_DEVICE Serial #define SERIAL_WIFI_DEVICE Serial1 constexpr Pin UsbVBusPin = 54; // Pin used to monitor VBUS on USB port #define I2C_IFACE Wire // Which TWI interface we use #define I2C_IRQn WIRE_ISR_ID // The interrupt number it uses constexpr Pin DueXnExpansionStart = 200; // Pin numbers 200-215 are on the I/O expander constexpr Pin AdditionalIoExpansionStart = 220; // Pin numbers 220-235 are on the additional I/O expander // The numbers of entries in each array must correspond with the values of DRIVES, AXES, or HEATERS. Set values to NoPin to flag unavailability. // DRIVES constexpr Pin GlobalTmc2660EnablePin = 38; // The pin that drives ENN of all TMC2660 drivers on production boards (on pre-production boards they are grounded) constexpr Pin ENABLE_PINS[NumDirectDrivers] = { 78, 41, 42, 49, 57, 87, 88, 89, 90, 31, 82, 60 }; constexpr Pin STEP_PINS[NumDirectDrivers] = { 70, 71, 72, 69, 68, 66, 65, 64, 67, 91, 84, 85 }; constexpr Pin DIRECTION_PINS[NumDirectDrivers] = { 75, 76, 77, 01, 73, 92, 86, 80, 81, 32, 83, 25 }; // Pin assignments etc. using USART1 in SPI mode Usart * const USART_TMC2660 = USART1; constexpr uint32_t ID_TMC2660_SPI = ID_USART1; constexpr IRQn TMC2660_SPI_IRQn = USART1_IRQn; # define TMC2660_SPI_Handler USART1_Handler constexpr Pin TMC2660MosiPin = 22; // PA13 constexpr Pin TMC2660MisoPin = 21; // PA22 constexpr Pin TMC2660SclkPin = 23; // PA23 constexpr Pin DueX_SG = 96; // DueX stallguard detect pin = PE0 (was E2_STOP) constexpr Pin DueX_INT = 17; // DueX interrupt pin = PA17 (was E6_STOP) // Endstops // RepRapFirmware only has a single endstop per axis. // Gcode defines if it is a max ("high end") or min ("low end") endstop and sets if it is active HIGH or LOW. constexpr Pin END_STOP_PINS[NumEndstops] = { 46, 02, 93, 74, 48, 96, 97, 98, 99, 17, 39, 8 }; constexpr Pin DUEX_END_STOP_PINS[5] = { 200, 203, 202, 201, 213 }; // these replace endstops 5-9 if a DueX is present // HEATERS constexpr Pin TEMP_SENSE_PINS[NumThermistorInputs] = { 45, 47, 44, 61, 62, 63, 59, 18 }; // Thermistor pin numbers constexpr Pin HEAT_ON_PINS[NumHeaters] = { 19, 20, 16, 35, 37, 40, 43};//, 15 }; // Heater pin numbers (heater 7 pin TBC) // Default thermistor parameters constexpr float BED_R25 = 100000.0; constexpr float BED_BETA = 3988.0; constexpr float BED_SHC = 0.0; constexpr float EXT_R25 = 100000.0; constexpr float EXT_BETA = 4388.0; constexpr float EXT_SHC = 0.0; // Thermistor series resistor value in Ohms constexpr float THERMISTOR_SERIES_RS = 4700.0; // Number of SPI temperature sensors to support #if SUPPORT_ROLAND // chrishamm's pin assignments constexpr size_t MaxSpiTempSensors = 2; // Digital pins the 31855s have their select lines tied to constexpr Pin SpiTempSensorCsPins[MaxSpiTempSensors] = { 56, 27 }; #else constexpr size_t MaxSpiTempSensors = 8; // Digital pins the 31855s have their select lines tied to constexpr Pin SpiTempSensorCsPins[MaxSpiTempSensors] = { 28, 50, 51, 52, 24, 97, 98, 99 }; // SPI0_CS1, SPI0_CS2, CS3, CS4, CS5, CS6, CS7, CS8 #endif // Pin that controls the ATX power on/off constexpr Pin ATX_POWER_PIN = 15; constexpr Pin E6_EN_PIN =31;//15;// 31; //LED constexpr Pin E6_STEP_PIN =91;//15;// 31; //POWER 12 // NEW DEFINE PIN OUT constexpr Pin E6_DIR_PIN =32; // PRO2 transfer // // Analogue pin numbers constexpr Pin Z_PROBE_PIN = 33; // AFE1_AD4/PC1 Z probe analog input constexpr Pin PowerMonitorVinDetectPin = 36; // AFE1_AD7/PC4 Vin monitor constexpr Pin PowerMonitor5vDetectPin = 29; // AFE1_AD1/PB3 5V regulator input monitor constexpr float PowerMonitorVoltageRange = 11.0 * 3.3; // We use an 11:1 voltage divider constexpr Pin VssaSensePin = 103; // Digital pin number to turn the IR LED on (high) or off (low), also controls the DIAG LED constexpr Pin Z_PROBE_MOD_PIN = 34; constexpr Pin DiagPin = Z_PROBE_MOD_PIN; constexpr Pin Heater7 = 15; // Cooling fans constexpr size_t NUM_FANS = 9; constexpr Pin COOLING_FAN_PINS[NUM_FANS] = { 58, 55, 00, 212, 207, 206, 205, 204, 215 };//raise switched 55 58 constexpr size_t NumTachos = 1; constexpr Pin TachoPins[NumTachos] = { 102 }; // PB6 on expansion connector // SD cards constexpr size_t NumSdCards = 2; constexpr Pin SdCardDetectPins[NumSdCards] = {53, NoPin}; constexpr Pin SdWriteProtectPins[NumSdCards] = {NoPin, NoPin}; constexpr Pin SdSpiCSPins[1] = {56}; constexpr uint32_t ExpectedSdCardSpeed = 20000000; #if SUPPORT_INKJET // Inkjet control pins constexpr Pin INKJET_SERIAL_OUT = xx; // Serial bitpattern into the shift register constexpr Pin INKJET_SHIFT_CLOCK = xx; // Shift the register constexpr Pin INKJET_STORAGE_CLOCK = xx; // Put the pattern in the output register constexpr Pin INKJET_OUTPUT_ENABLE = xx; // Make the output visible constexpr Pin INKJET_CLEAR = xx; // Clear the register to 0 #endif #if SUPPORT_ROLAND // Roland mill constexpr Pin ROLAND_CTS_PIN = xx; // Expansion pin 11, PA12_TXD1 constexpr Pin ROLAND_RTS_PIN = xx; // Expansion pin 12, PA13_RXD1 #endif // M42 and M208 commands now use logical pin numbers, not firmware pin numbers. // This is the mapping from logical pins 60+ to firmware pin numbers constexpr Pin SpecialPinMap[] = { 24, 97, 98, 99, // We allow CS5-CS8 to be used because few users need >4 thermocouples or RTDs 7, // SW_ENC on CONN_SD Z_PROBE_MOD_PIN }; constexpr Pin DueX5GpioPinMap[] = { 211, 210, 209, 208 }; // Pins 100-103 map to GPIO 1-4 on DueX5 // We also allow pins 120-135 to be used if there is an additional SX1509B expander constexpr int HighestLogicalPin = 135; // highest logical pin number on this electronics // SAM4E Flash locations (may be expanded in the future) constexpr uint32_t IAP_FLASH_START = 0x00470000; constexpr uint32_t IAP_FLASH_END = 0x0047FFFF; // we allow a full 64K on the SAM4 // Duet pin numbers to control the WiFi interface on the Duet WiFi constexpr Pin EspResetPin = 100; // Low on this in holds the WiFi module in reset (ESP_RESET) constexpr Pin EspEnablePin = 101; // High to enable the WiFi module, low to power it down (ESP_CH_PD) constexpr Pin EspDataReadyPin = 95; // Input from the WiFi module indicating that it wants to transfer data (ESP GPIO0) constexpr Pin SamTfrReadyPin = 94; // Output from the SAM to the WiFi module indicating we can accept a data transfer (ESP GPIO4 via 7474) constexpr Pin SamCsPin = 11; // SPI NPCS pin, input from WiFi module // Duet pin numbers to control the W5500 interface on the Duet Ethernet constexpr Pin W5500ResetPin = 100; // Low on this in holds the W5500 module in reset (ESP_RESET) constexpr Pin W5500InterruptPin = 95; // W5500 interrupt output, active low constexpr Pin W5500ModuleSensePin = 5; // URXD1, tied to ground on the Ethernet module constexpr Pin W5500SsPin = 11; // SPI NPCS pin, input from W5500 module // Timer allocation (no network timer on DuetNG) // TC0 channel 0 is used for FAN2 // TC0 channel 1 is currently unused (may use it for a heater or a fan) // TC0 channel 2 is available for us to use #define STEP_TC (TC0) #define STEP_TC_CHAN (2) #define STEP_TC_IRQN TC2_IRQn #define STEP_TC_HANDLER TC2_Handler #define STEP_TC_ID ID_TC2 #endif #endif