Кремень FMZ Реклама
Kremen FMHM Реклама

Плоттер на GRBL + arduino nano + cnc shield v4 + servo (sg-90) Следующий вопрос)

sergeyvoronkov
Идет загрузка
Загрузка
24.02.2019
2471
7
Вопросы и ответы
Спасибо всем, кто помог с предыдущим вопросом. Помогло)

А теперь 'едем дальше'.

При попытке сделать 'autohome', испльзуя команду G28, плоттер едет, но при замыкании концевика он тупо останавливается и плата 'начинает тупить' (ком-порт не отвечает). Как необходимо настраивать прошивку или какие команды использовать, чтобы оно заработало?

Прикрепляю кусок файла прошивки GRBL 0.9j config.h :

// Define the homing cycle patterns with bitmasks. The homing cycle first performs a search mode

// to quickly engage the limit switches, followed by a slower locate mode, and finished by a short

// pull-off motion to disengage the limit switches. The following HOMING_CYCLE_x defines are executed

// in order starting with suffix 0 and completes the homing routine for the specified-axes only. If

// an axis is omitted from the defines, it will not home, nor will the system update its position.

// Meaning that this allows for users with non-standard cartesian machines, such as a lathe (x then z,

// with no y), to configure the homing cycle behavior to their needs.

// NOTE: The homing cycle is designed to allow sharing of limit pins, if the axes are not in the same

// cycle, but this requires some pin settings changes in cpu_map.h file. For example, the default homing

// cycle can share the Z limit pin with either X or Y limit pins, since they are on different cycles.

// By sharing a pin, this frees up a precious IO pin for other purposes. In theory, all axes limit pins

// may be reduced to one pin, if all axes are homed with seperate cycles, or vice versa, all three axes

// on separate pin, but homed in one cycle. Also, it should be noted that the function of hard limits

// will not be affected by pin sharing.

// NOTE: Defaults are set for a traditional 3-axis CNC machine. Z-axis first to clear, followed by X & Y.

#define HOMING_CYCLE_0 (1<
#define HOMING_CYCLE_1 ((1<
//#define HOMING_CYCLE_0 ((1<
// #define HOMING_CYCLE_2 // OPTIONAL: Uncomment and add axes mask to enable
Ответы на вопросы