Hi All,
Just wondering if this Is dead or will there be an update to 1.1h?
评论 (4)
#2 – fra589 于 2021-07-07
Hi all,
grbl-Mega-5X,direct fork of grbl-Mega is still active and maintained.
Last version from may, 10 is 1.1t.
@++;
#3 – marlboro 于 2021-07-07
@fra589 Thank you for the heads up! That is exactly the kind of advice I was looking to find.
#4 – ccwtruck 于 2024-06-14
> Hi all,
>
> grbl-Mega-5X,direct fork of grbl-Mega is still active and maintained. Last version from may, 10 is 1.1t.
>
> @++;
My trouble, @fra589 , is that you wrote it exclusively for the RAMPS board. I am not using RAMPS at all; I am using a Mega 2560 R3 in my rebuild/ upgrade of my CNC plasma table — therefore, it is useless to me even though it offers features that I need.
My table was a regular 3-axis table, running GRBL-Mega. I have added a 2nd Y-axis which must be cloned with the 1st Y-axis and both Y-axis’s must home together while auto-squaring. I also use a torch height controller of my own design that is fed from GRBL’s Z-axis using an interrupt to intercept step/ direction signals from GRBL and either pass them through to the stepper driver unaltered or send its own pulses to the stepper driver while receiving the ARC OK signal from the plasma cutter.
I am using external DMA860S drivers for X, Y, & Y2 axises & an external DM556 driver for Z-axis — so I cannot use the RAMPS board at all. Would you possibly be willing & able to add a #define CPUMAP2560INITIAL section to the cpumap.h file with the following #defines that match my build?
/*
cpu_map.h - CPU and pin mapping configuration file
Part of Grbl
Copyright (c) 2012-2016 Sungeun K. Jeon for Gnea Research LLC
Grbl is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Grbl is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Grbl. If not, see
*/
/* The cpu_map.h files serve as a central pin mapping selection file for different
processor types or alternative pin layouts. This version of Grbl supports only the
Arduino Mega2560. */
#ifndef cpumaph
#define cpumaph
#ifdef CPUMAP2560_INITIAL // (Arduino Mega 2560) Working @EliteEng
// Serial port interrupt vectors
#define SERIALRX USART0RX_vect
#define SERIALUDRE USART0UDRE_vect
// Define step pulse output pins. NOTE: All step bit pins must be on the same port.
#define STEP_DDR DDRA
#define STEP_PORT PORTA
#define STEP_PIN PINA
#define XSTEPBIT 2 // MEGA2560 Digital Pin 24
#define YSTEPBIT 3 // MEGA2560 Digital Pin 25
#define ZSTEPBIT 4 // MEGA2560 Digital Pin 26 -- Connected to THC Pin 2
#define ASTEPBIT 5 // MEGA2560 Digital Pin 27
#define BSTEPBIT 6 // MEGA2560 Digital Pin 28
#define CSTEPBIT 7 // MEGA2560 Digital Pin 29
#define STEPMASK ((1<
// Define step direction output pins. NOTE: All direction pins must be on the same port.
#define DIRECTION_DDR DDRC
#define DIRECTION_PORT PORTC
#define DIRECTION_PIN PINC
#define XDIRECTIONBIT 7 // MEGA2560 Digital Pin 30
#define YDIRECTIONBIT 6 // MEGA2560 Digital Pin 31
#define ZDIRECTIONBIT 5 // MEGA2560 Digital Pin 32 -- Connected to THC Pin 7
#define ADIRECTIONBIT 4 // MEGA2560 Digital Pin 33
#define BDIRECTIONBIT 3 // MEGA2560 Digital Pin 34
#define CDIRECTIONBIT 2 // MEGA2560 Digital Pin 35
#define DIRECTIONMASK ((1<
// Define stepper driver enable/disable output pin.
#define STEPPERSDISABLEDDR DDRB
#define STEPPERSDISABLEPORT PORTB
#define STEPPERSDISABLEBIT 7 // MEGA2560 Digital Pin 13
#define STEPPERSDISABLEMASK (1<
// Define homing/hard limit switch input pins and limit interrupt vectors.
// NOTE: All limit bit pins must be on the same port
#define LIMIT_DDR DDRB
#define LIMIT_PORT PORTB
#define LIMIT_PIN PINB
#define XLIMITBIT 4 // MEGA2560 Digital Pin 10
#define YLIMITBIT 5 // MEGA2560 Digital Pin 11
#define ZLIMITBIT 6 // MEGA2560 Digital Pin 12
#define ALIMITBIT 0 // MEGA2560 Digital Pin 53
#define BLIMITBIT 1 // MEGA2560 Digital Pin 52
#define CLIMITBIT 2 // MEGA2560 Digital Pin 51
#define LIMIT_INT PCIE0 // Pin change interrupt enable pin
#define LIMITINTvect PCINT0_vect
#define LIMIT_PCMSK PCMSK0 // Pin change interrupt register
#define LIMITMASK ((1<
// Define spindle enable and spindle direction output pins.
#define SPINDLEENABLEDDR DDRH
#define SPINDLEENABLEPORT PORTH
#define SPINDLEENABLEBIT 3 // MEGA2560 Digital Pin 6
#define SPINDLEDIRECTIONDDR DDRE
#define SPINDLEDIRECTIONPORT PORTE
#define SPINDLEDIRECTIONBIT 3 // MEGA2560 Digital Pin 5
// Define flood and mist coolant enable output pins.
#define COOLANTFLOODDDR DDRH
#define COOLANTFLOODPORT PORTH
#define COOLANTFLOODBIT 5 // MEGA2560 Digital Pin 8
#define COOLANTMISTDDR DDRH
#define COOLANTMISTPORT PORTH
#define COOLANTMISTBIT 6 // MEGA2560 Digital Pin 9
// Define user-control CONTROLs (cycle start, reset, feed hold) input pins.
// NOTE: All CONTROLs pins must be on the same port and not on a port with other input pins (limits).
#define CONTROL_DDR DDRK
#define CONTROL_PIN PINK
#define CONTROL_PORT PORTK
#define CONTROLRESETBIT 0 // MEGA2560 Analog Pin 8
#define CONTROLFEEDHOLD_BIT 1 // MEGA2560 Analog Pin 9
#define CONTROLCYCLESTART_BIT 2 // MEGA2560 Analog Pin 10
#define CONTROLSAFETYDOOR_BIT 3 // MEGA2560 Analog Pin 11
#define CONTROL_INT PCIE2 // Pin change interrupt enable pin
#define CONTROLINTvect PCINT2_vect
#define CONTROL_PCMSK PCMSK2 // Pin change interrupt register
#define CONTROLMASK ((1<
// Define probe switch input pin.
#define PROBE_DDR DDRK
#define PROBE_PIN PINK
#define PROBE_PORT PORTK
#define PROBE_BIT 7 // MEGA2560 Analog Pin 15
#define PROBEMASK (1<
// Advanced Configuration Below You should not need to touch these variables
// Set Timer up to use TIMER4B which is attached to Digital Pin 7
#define SPINDLEPWMMAX_VALUE 1024.0 // Translates to about 1.9 kHz PWM frequency at 1/8 prescaler
#ifndef SPINDLEPWMMIN_VALUE
#define SPINDLEPWMMIN_VALUE 1 // Must be greater than zero.
#endif
#define SPINDLEPWMOFF_VALUE 0
#define SPINDLEPWMRANGE (SPINDLEPWMMAXVALUE-SPINDLEPWMMINVALUE)
#define SPINDLETCCRAREGISTER TCCR4A
#define SPINDLETCCRBREGISTER TCCR4B
#define SPINDLEOCRREGISTER OCR4B
#define SPINDLECOMBBIT COM4B1
// 1/8 Prescaler, 16-bit Fast PWM mode
#define SPINDLETCCRAINIT_MASK ((1<
#define SPINDLEOCRATOPVALUE 0x0400 // PWM counter reset value. Should be the same as PWMMAX_VALUE in hex.
// Define spindle output pins.
#define SPINDLEPWMDDR DDRH
#define SPINDLEPWMPORT PORTH
#define SPINDLEPWMBIT 4 // MEGA2560 Digital Pin 7
#endif
/*
#ifdef CPUMAPCUSTOM_PROC
// For a custom pin map or different processor, copy and edit one of the available cpu
// map files and modify it to your needs. Make sure the defined name is also changed in
// the config.h file.
#endif
*/
#endif
#1 – marlboro 于 2021-07-06
This must be dead given the lack of responses, but let’s bump it just in case.