New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
cawoodm opened this issue
Aug 19, 2017
· 6 comments
Closed
Constant Error 22 since updating
#255
cawoodm opened this issue
Aug 19, 2017
· 6 comments
Comments
Just updated to Grbl 1.1 and keep getting error 22 with G01.
Once I manually do a G01 with F it works from then on… and then the same issue starts with G02.
So what is up? Does GRBL 1.1 really have no default feed rate? How would I set it once without doing G01?
What sender are you using
…
On Aug 19, 2017 9:24 AM, «Marc» ***@***.***> wrote:
Just updated to Grbl 1.1 and keep getting error 22 with G01.
Once I manually do a G01 with F it works from then on… and then the same
issue starts with G02.
So what is up? Does GRBL 1.1 really have no default feed rate? How would I
set it once without doing G01?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#255>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQlzDNKaRe7F6D7PV5HadY5ZrS35yDPxks5sZtQVgaJpZM4O8UYP>
.
1.1 no longer has a default Feed Rate. Set one in your gcode file, or better yet use a post that does this for you.
A line at top of file with just F is enough
You can also just set a feed rate in a startup block $N=.
ex: $N1=Fxxxx, where xxxx = your desired feed rate.
This way works when you want to jog with no file loaded upon startup.
EDIT: This way works at each startup. No need to load a file to jog.
Grbl Controller 3.6.1
It doesn’t allow any preamble so it’s a bit of a pain but I’ve had more success with it than UGS or Chrome’s gcode-sender.
You forgot to include the «F» — F180
-
rover_scans
- Новичок
- Сообщения: 4
- Зарегистрирован: 26 июн 2017, 11:11
- Репутация: 0
-
Контактная информация:
вопросы от новичка в CNC
Добрый день.
Дошли у меня руки до самодельного ЧПУ.
Пока что в наличии есть ардуино с прошитым в него GRBL1.1, драйверы моторов и сами моторы (28Byj для начала).
Решил сначала «поиграться» с электронной частью и столкнулся с проблемой error22.
G-code сгенерировал CNC_Assist-version-2.
Candle выдает те же ошибки.
Что я делаю не так?
- Вложения
-
-
selenur
- Почётный участник
- Сообщения: 4579
- Зарегистрирован: 21 авг 2013, 19:44
- Репутация: 1614
- Настоящее имя: Сергей
- Откуда: Новый Уренгой
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
selenur » 26 июн 2017, 12:52
Вот тут есть описание ошибок: https://github.com/gnea/grbl/wiki/Grbl-v1.1-Interface
В твоем случае ошибка переводится так: Скорость подачи еще не была установлена.
Что означает отсутствует G-команда «F»
Первые строки программы должны содержать примерно такой набор команд
G0 F500, или G1 F500 -что означает включить режим холостого хода, или рабочей скорости, а скорость движения составит 500 мм/мин.
-
rover_scans
- Новичок
- Сообщения: 4
- Зарегистрирован: 26 июн 2017, 11:11
- Репутация: 0
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
rover_scans » 26 июн 2017, 17:19
Отлично, подключил моторчик на одну из осей, обнаружил 2 проблемы:
1. я так понял, что режим «быстрая подача», то есть когда фреза подводится к месту начала работы или перемещается между этими местами. Скорость вращения слишком большая и в итоге 28byj-48 с такой скоростью не справляется и просто подвисает. Такая же история была при тестовом прогоне, но я вручную установил в G-коде G0 F100 и G1 F100 — это исправило скорость прохода. Само же перемещение вроде соответствует ожиданиям.
2. При подключении через А4988 мотор ощутимо греется и в холостом режиме потребляет при 12v аж полампера (мотор переделан под простой биполярник). Подключал по схеме из вложения. Предполагаю, что это из-за «удержания» шпинделя в определенной позиции. Как вылечить?
- Вложения
-
-
Kiriller
- Мастер
- Сообщения: 984
- Зарегистрирован: 09 янв 2017, 20:21
- Репутация: 124
- Настоящее имя: Кирилл
- Откуда: Жуковский, М.О.
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
Kiriller » 26 июн 2017, 19:39
Максимаььная скорость (г0) настраивается. читайте про конфигурацию grbl- там не сложно. но настроить придется не только скорость.
Моторы греются- это вроде как нормально. Считается, что если рука терпит, то нормально. Кроме того, нужно на жрайверах настроить ток- будут греться меньше.
-
Mamont
- Мастер
- Сообщения: 1721
- Зарегистрирован: 10 дек 2015, 12:21
- Репутация: 325
- Настоящее имя: Виталий
- Откуда: РБ Минск
-
Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
Mamont » 26 июн 2017, 19:41
1. в настройках GRBL указываешь максимальную скорость перемещения по каждой координате
($110 $111 $112 для XYZ). уменьшаешь
2 ток. по даташиту какой максимальный ток на данный мотор? на плате стоит переменный резистор, он задает границу отсечки тока.
-
Kiriller
- Мастер
- Сообщения: 984
- Зарегистрирован: 09 янв 2017, 20:21
- Репутация: 124
- Настоящее имя: Кирилл
- Откуда: Жуковский, М.О.
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
Kiriller » 26 июн 2017, 20:01
Mamont писал(а):1. в настройках GRBL указываешь максимальную скорость перемещения по каждой координате
($110 $111 $112 для XYZ).
Да? И даже количество шагов на миллиметр настраивать не надо!?
Не вводите человека в заблуждение. Пусть почитает, а что не понятно спросит. Тогда будет толк. А так- путанница одна.
Повторяю- в целом там все просто. Но настроить надо не только 3 параметра!
-
rover_scans
- Новичок
- Сообщения: 4
- Зарегистрирован: 26 июн 2017, 11:11
- Репутация: 0
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
rover_scans » 27 июн 2017, 19:18
Спасибо, настроил на одной оси максимальную скорость, микрошаги/мм. Подкрутил резистор, ограничив ток удержания оси.
Вроде все работает как и ожидаемо.
Теперь буду потихоньку собирать станину не из «опилок и желудей», а из чего-то более прочного
-
rex
- Кандидат
- Сообщения: 66
- Зарегистрирован: 12 сен 2016, 20:15
- Репутация: 0
- Настоящее имя: Сергей
- Откуда: Челябинск
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
rex » 14 июл 2017, 12:51
Приветствую всех! Построил свой станок, оси X и Y — зубчатая рейка, ось Z на ШВП. Выставляю в Маче Step per в соответствии с математическими расчётами, проверяю сколько см проходит ось X, в итоге проходит больше чем наметил. Делаю калибровку оси в маче, говорю проехать 100 мм — ось едет, после этого мач предлагает другое значение (отличное от того, что получалось в ходе математических расчётов). Принимаю значение предложенное мачем — в итоге ось проходит заданные мною 100 мм т.е. как надо. Тоже самое с осью Y. При этом ось Z (ШВП) движется правильно т.е. значение step per выставленное мною в соответствии с математическими расчётами совпадает с тем значением которое предлагает мач в «калибровке осей».
Собственно вопрос — почему значения Step per математические не совпадают у меня с теми, что выставляет мач ???
Последний раз редактировалось rex 14 июл 2017, 16:52, всего редактировалось 2 раза.
-
FL@gMan
- Почётный участник
- Сообщения: 115
- Зарегистрирован: 25 янв 2017, 16:15
- Репутация: 18
- Настоящее имя: Дмитрий
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
FL@gMan » 14 июл 2017, 13:07
Посчитал неправильно, не? Или это не такая очевидная вещь??? Вероятно неверные исходные при рассчетах просто использовал относительно реек.
-
Shkryab
- Опытный
- Сообщения: 143
- Зарегистрирован: 15 июн 2017, 21:25
- Репутация: 18
- Настоящее имя: Леонидыч
- Откуда: Страна, которой нет
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
Shkryab » 14 июл 2017, 13:51
rex писал(а):Собственно вопрос — почему значения Step per математические не совпадают у меня с теми, что выставляет мач ???
А сильно не совпадает? В разы или на единицы процентов? Расскажите как считали. Попробуем вместе найти ошибку.
-
rex
- Кандидат
- Сообщения: 66
- Зарегистрирован: 12 сен 2016, 20:15
- Репутация: 0
- Настоящее имя: Сергей
- Откуда: Челябинск
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
rex » 14 июл 2017, 14:05
Рассчитывал как положено:
модуль рейки 1,5
Число зубцов у шестерни на валу двигателя 30
Число полных шагов на оборот 200
Выбранное на драйвере деление шага 1/2
Редукция 1:4
30*1,5*3,1415926535897932384626433832795/4 = 35,342917352885173932704738061894 — мм на один оборот вала двигателя.
Теперь расчет Steps per. Деление шага на драйвере двигателя 1/2, это значит, что для одного оборота вала двигателя будет послано 200 * 2 = 400 импульсов. При 400 импульсов ось станка переместится на расстояние равное 35,342917352885173932704738061894 мм. Дальше нам нужно вычислить количество импульсов на 1мм хода. 400 ÷ 35,342917352885173932704738061894 = 11,317684842090334988009512062046 импульсов.
Значение Steps per =11,317684842090334988009512062046 . Ставлю это значение — ось проезжает на несколько см больше чем надо. Калибрую ось — мач предлагает 17,026……… и т.д. и вот только тогда ось проезжает сколько нужно. Непонятно, откуда такая разница?
Последний раз редактировалось rex 14 июл 2017, 16:41, всего редактировалось 1 раз.
-
FL@gMan
- Почётный участник
- Сообщения: 115
- Зарегистрирован: 25 янв 2017, 16:15
- Репутация: 18
- Настоящее имя: Дмитрий
- Контактная информация:
-
Shkryab
- Опытный
- Сообщения: 143
- Зарегистрирован: 15 июн 2017, 21:25
- Репутация: 18
- Настоящее имя: Леонидыч
- Откуда: Страна, которой нет
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
Shkryab » 14 июл 2017, 15:23
Угу, похоже. Врёт как раз в полтора раза.
Может просто тупо посчитаете количество зубов рейки на 10см?
-
rex
- Кандидат
- Сообщения: 66
- Зарегистрирован: 12 сен 2016, 20:15
- Репутация: 0
- Настоящее имя: Сергей
- Откуда: Челябинск
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
rex » 14 июл 2017, 16:24
Тогда подскажите пожалуйста как замерить модуль рейки 1 у меня или 1,5 ??
Завтра посчитаю, измерю и отпишусь
-
rex
- Кандидат
- Сообщения: 66
- Зарегистрирован: 12 сен 2016, 20:15
- Репутация: 0
- Настоящее имя: Сергей
- Откуда: Челябинск
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
rex » 14 июл 2017, 17:25
Не выдержал)) поехал сейчас и всё замерил — у меня число зубцов у шестерни не 30, а 20!!! Модуль рейки на 1,5 (22 зуба на 10 см, расстояние между вершинками 4,7 мм)
Вот где собака зарыта!!! В итоге, по формуле как раз и выходит, то самое значение которое мач предлагал! Спасибо, что помогли разобраться в какую сторону копать
-
FL@gMan
- Почётный участник
- Сообщения: 115
- Зарегистрирован: 25 янв 2017, 16:15
- Репутация: 18
- Настоящее имя: Дмитрий
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
FL@gMan » 14 июл 2017, 20:03
rex писал(а):Не выдержал)) поехал сейчас и всё замерил
Маладец.
- Вложения
-
- Пользуйтесь дедуктивными методами
-
Taganrog
- Мастер
- Сообщения: 1238
- Зарегистрирован: 15 апр 2015, 16:32
- Репутация: 284
- Настоящее имя: Евгений
- Откуда: Брянск
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
Taganrog » 15 июл 2017, 12:45
Если смотреть на основную фотку по ссылке, подключай так,чтоб вращался против часовой стрелки.
-
rex
- Кандидат
- Сообщения: 66
- Зарегистрирован: 12 сен 2016, 20:15
- Репутация: 0
- Настоящее имя: Сергей
- Откуда: Челябинск
- Контактная информация:
Re: вопросы от новичка в CNC
Сообщение
rex » 15 июл 2017, 16:38
Спасибо, разобрался
Error 0 – STATUS_OK
All Good, This is an error code suggesting that there is NO error
Error 1 – STATUS_EXPECTED_COMMAND_LETTER
Gcodes should start with a Letter, what ever was just sent to GRBL did not
Error 2 – STATUS_BAD_NUMBER_FORMAT
The number part of the Gcode was invalid
Error 3 – STATUS_INVALID_STATEMENT
Usualy a bad GRBL Specific $ instruction
Error 4 – STATUS_NEGATIVE_VALUE
Negative value received for an expected positive value.
Error 5 – STATUS_SETTING_DISABLED
A call to a disabled function was issued – EG you issued $H for homing but your $20 (homing enable) parameter is set to 0 (off)
Error 6 – STATUS_SETTING_STEP_PULSE_MIN
Your $0 (step pulse time) is to short, set it back to its default value, $0=10
Error 7 – STATUS_SETTING_READ_FAIL
Corrupt EEPROM values, you will need to reconfigure all your $ values as they have been reset to default – this time once you have worked them all out, make a copy! This is a rare error.
Error 8 – STATUS_IDLE_ERROR
You have issued a command only allowed when the machine active state is Idle. Example you sent $$ while the Active state was run (job was in progress)
Error 9 – STATUS_SYSTEM_GC_LOCK
machine is locked in error of some sort, and you tried to issue a movement command. Did you forget to $X the machine? Or is it sitting on a Limit Switch?
Error 10 – STATUS_SOFT_LIMIT_ERROR
You will see this if you try to enable soft limits without also enabling homing cycle. Soft limits cannot work unless you first home the machine so it knows where it is!
Error 11 – STATUS_OVERFLOW
GRBL has a max number of charactors it will accept in one command, it received on that was too long – often happens when CAM software puts long comments in file
Error 12 – STATUS_MAX_STEP_RATE_EXCEEDED
You tried to set a Step rate that was too high, look at your $110, $111,$112 values!
Error 13 – STATUS_CHECK_DOOR
You have the safety door funtion turned on and it is showing not closed…close it
Error 14 – STATUS_LINE_LENGTH_EXCEEDED
You should not see this error and if you do you should know what it means!
Error 15 – STATUS_TRAVEL_EXCEEDED
You have got soft limits turned on and configured, and the job your trying to run is larger than you have told grbl that your machine actualy is. Either fix your soft limit values and if they are correct, look at why your cam setup is trying to use more space than you actually have.
Error 16 – STATUS_INVALID_JOG_COMMAND
Jogging command issued was not valid, possibly forgot the =… part
Error 17 – STATUS_SETTING_DISABLED_LASER
Probrably happened when you turned on $32 wthout enableing PWM – We don’t know a lot about this error – email us if you work it out and we can add it to this list
Error 20 – STATUS_GCODE_UNSUPPORTED_COMMAND
Unsupported or invalid g-code command found in block.
Error 21 – STATUS_GCODE_MODAL_GROUP_VIOLATION
Read: http://linuxcnc.org/docs/html/gcode/overview.html#_modal_groups
Error 22 – STATUS_GCODE_UNDEFINED_FEED_RATE
You cannot issue a movement if no feed rate has been set – so issue something like F1000 (feed at 1000mm/min) before sending a movement command. You will likely only see this error when bashing stuff into the command prompt and not when using a gui
Error 23 – STATUS_GCODE_COMMAND_VALUE_NOT_INTEGER
Look into the command you sent, did it include a non integer value?
Error 24 – STATUS_GCODE_AXIS_COMMAND_CONFLICT
Two G-code commands that both require the use of the XYZ axis words were detected in the block.
Error 25 – STATUS_GCODE_WORD_REPEATED
A G-code word was repeated in the block.
Error 26 – STATUS_GCODE_NO_AXIS_WORDS
A G-code command implicitly or explicitly requires XYZ axis words in the block, but none were detected.
Error 27 – STATUS_GCODE_INVALID_LINE_NUMBER
N line number value is not within the valid range of 1 – 9,999,999 – why not turn off line numbers in your CAM software
Error 28 – STATUS_GCODE_VALUE_WORD_MISSING
A G-code command was sent, but is missing some required P or L value words in the line.
Error 29 – STATUS_GCODE_UNSUPPORTED_COORD_SYS
Grbl supports six work coordinate systems G54-G59. G59.1, G59.2, and G59.3 are not supported.
Error 30 – STATUS_GCODE_G53_INVALID_MOTION_MODE
The G53 G-code command requires either a G0 seek or G1 feed motion mode to be active. A different motion was active.
Error 31 – STATUS_GCODE_AXIS_WORDS_EXIST
There are unused axis words in the block and G80 motion mode cancel is active.
Error 32 – STATUS_GCODE_NO_AXIS_WORDS_IN_PLANE
A G2 or G3 arc was commanded but there are no XYZ axis words in the selected plane to trace the arc.
Error 33 – STATUS_GCODE_INVALID_TARGET
The motion command has an invalid target. G2, G3, and G38.2 generates this error, if the arc is impossible to generate or if the probe target is the current position.
Error 34 – STATUS_GCODE_ARC_RADIUS_ERROR
A G2 or G3 arc, traced with the radius definition, had a mathematical error when computing the arc geometry. Try either breaking up the arc into semi-circles or quadrants, or redefine them with the arc offset definition.
Error 35 – STATUS_GCODE_NO_OFFSETS_IN_PLANE
A G2 or G3 arc, traced with the offset definition, is missing the IJK offset word in the selected plane to trace the arc.
Error 36 – STATUS_GCODE_UNUSED_WORDS
There are unused, leftover G-code words that aren’t used by any command in the block.
Error 37 – STATUS_GCODE_G43_DYNAMIC_AXIS_ERROR
The G43.1 dynamic tool length offset command cannot apply an offset to an axis other than its configured axis. The Grbl default axis is the Z-axis.
Error 38 – STATUS_GCODE_MAX_VALUE_EXCEEDED
You sent a number higher than expected, maybe for a tool change you tried to select tool 50000 or something?
ALARM 1 – EXEC_ALARM_HARD_LIMIT
Hard Limit Error, A limit switch was triggered, this always results in the end of your job. The only time a limit switch should be hit is during a homing cycle, at any other time it will stop the system. Either your machine went to far in one direction and hit a switch or you have electrical noise getting into your limit switch wiring. Do not restart your jhob without rehoming or resetting / confirming the machines position, it will unliely be correct still!
ALARM 2 – EXEC_ALARM_SOFT_LIMIT
Soft Limit Error, Either you or a Gcode file tried to send some axis past further than you have suggested it can in your $130, $131 ,$132 parameters
ALARM 3 – EXEC_ALARM_ABORT_CYCLE
The Estop was hit! Same as a hard limit, just a different button – look at details above for Alarm 1
ALARM 4 – EXEC_ALARM_PROBE_FAIL_INITIAL
Grbl was expecting your probe to be in a state other than that it is before starting a probing cycle – ie your tool is already touching the probe or similar
ALARM 5 – EXEC_ALARM_PROBE_FAIL_CONTACT
Z axis was sent down as far as it dared (instructed) and did not hit a switch. Instead of digging to china it assumes you forgot to put an aligator clip on or that something else is wrong and so stops.
ALARM 6 – EXEC_ALARM_HOMING_FAIL_RESET
Reset was issued during a homing cycle, or maybe falsely triggered by electrical noise in your system/environment if your estop button is connected to the Abort pin and not to the reset pin that is
ALARM 7 – EXEC_ALARM_HOMING_FAIL_DOOR
Safety door was opened during a homing cycle, or maybe falsely triggered by electrical noise in your system/environment
ALARM 8 – EXEC_ALARM_HOMING_FAIL_PULLOFF
Grbl tries to pull back of a switch and hit it a second time (slowly) during a homing cycle. Your Homing Pulloff value was not sufficient to enable the axis to move far enough away from the switch. Increase $27 to maybe 3 or 5mm – $27=5.000
ALARM 9 – EXEC_ALARM_HOMING_FAIL_APPROACH
When homing, grbl will not travel further than the values in parameters $130, $131 ,$132 while trying to locate a limit switch. So even if your soft limits are off, make sure these values are correct or larger than your machine. Homing fail. Could not find limit switch within search distance. Defined as 1.5 * max_travel on search and 5 * pulloff on locate phases.”
Hold 0 – Hold complete. Ready to resume
Hold 1 – Hold in-progress. Reset will throw an alarm
Door 0 – Door closed. Ready to resume.
Door 1 – Machine stopped. Door still ajar. Can’t resume until closed.
Door 2 – Door opened. Hold (or parking retract) in-progress. Reset will throw an alarm.
Door 3 – Door closed and resuming. Restoring from park, if applicable. Reset will throw an alarm.
Alex1969
- Регистрация
- 27.03.2019
- Сообщения
- 24
- Реакции
- 10
- Баллы
- 23
- Город
- Минск
- Имя
- Александр
- #1
Здравствуйте. Пока с Китая идет новый лазер, решил освоить данную программу. Но вот незадача, стали появляться ошибки. Описание их найти не могу. Первое, при запуске кода на выполнение выскакивает такое окно как в приложенном файле. После нажатия Ignore, процесс идет нормально. Далее, не пойму что с кнопками управления. Выставляю нулевые позиции кнопками, потом смещаю позицию гравера и при нажатии кнопки «Домой» опять вылазит ошибка — $H < error:5 S1000 < ok. Помогите, пожалуйста разобраться в данном вопросе.
-
kontrol.png
394 KB · Просмотры: 309
Андрей
- Регистрация
- 08.05.2018
- Сообщения
- 8 349
- Реакции
- 7 818
- Баллы
- 350
- Адрес
- Россия
- Веб-сайт
- www.cnc3018.ru
- Город
- Санкт-Петербург
- Станок
- CNC3018
- Плата
- 3.2
- Прошивка
- 1.1f
- #2
Alex1969, скажите, а Вы в чем создаете УП ?
Какой постпроцессор используете?
Alex1969
- Регистрация
- 27.03.2019
- Сообщения
- 24
- Реакции
- 10
- Баллы
- 23
- Город
- Минск
- Имя
- Александр
- #3
Использую Autodesk ArtCAM Premium 2018. Вчера сделал одно изображение, все получилось. И черновая и пробные на одном и том же рисунке 3 чистовых разными фрезами. А сегодня… 3 фрезы сломал. Один раз воспользовался кнопкой Z-probe и не нашел чем аварийно остановить… И после этого станок пытался рыть глубже уровня который я ему указал… Пока не отключил от компьютера. Больше ничем не пользовался. Просто не могу найти какого-либо мануала в одном месте и о том как готовить коды, назначение кнопок программы, настройка ее и ошибки как распознать.
Андрей
- Регистрация
- 08.05.2018
- Сообщения
- 8 349
- Реакции
- 7 818
- Баллы
- 350
- Адрес
- Россия
- Веб-сайт
- www.cnc3018.ru
- Город
- Санкт-Петербург
- Станок
- CNC3018
- Плата
- 3.2
- Прошивка
- 1.1f
- #4
Alex1969, здрасьте!!! Приехали!
У нас в ресурсах полно документации по поводу АртКама
А еще если использовать наш постпроцессор (тоже в ресурсах есть)
То ошибок таких не будет.
Добавьте себе вот этот
ПОСТПРОЦЕССОР >>
Вот Вам ИНСТРУКЦИЯ НА РУССКОМ ЯЗЫКЕ >>
Alex1969
- Регистрация
- 27.03.2019
- Сообщения
- 24
- Реакции
- 10
- Баллы
- 23
- Город
- Минск
- Имя
- Александр
- #5
Спасибо большое. Многое можно узнать пообщавшись с умными людьми. Попробовал так проделать как описано в первой ссылке программа ArtCam выдала ошибку.
Ваши сообщения автоматически объединены: 16.04.2019
Инструкцию я имел в виду к grblControl…
-
Error.png
562.7 KB · Просмотры: 302
Alex1969
- Регистрация
- 27.03.2019
- Сообщения
- 24
- Реакции
- 10
- Баллы
- 23
- Город
- Минск
- Имя
- Александр
- #6
И как теперь быть? Получается данный постпроцессор не принимает ArtCam?
Андрей
- Регистрация
- 08.05.2018
- Сообщения
- 8 349
- Реакции
- 7 818
- Баллы
- 350
- Адрес
- Россия
- Веб-сайт
- www.cnc3018.ru
- Город
- Санкт-Петербург
- Станок
- CNC3018
- Плата
- 3.2
- Прошивка
- 1.1f
- #7
Инструкцию я имел в виду к grblControl…
Простите, но что там инструктировать ? Там две с половиной кнопки.
Ну может как-нибудь кто-то сделает инструкцию, но я смысла большого не вижу.
И как теперь быть? Получается данный постпроцессор не принимает ArtCam?
Вы про какой постпроцессор говорите?
Я не вижу на Вашем скриншоте что там не так
И у нас работает постпроцессор нормально.
Можно пояснить что не работает и главное что делали и чего не делали?
number1
- Регистрация
- 29.12.2018
- Сообщения
- 115
- Реакции
- 163
- Баллы
- 63
- Имя
- CNC 3018 Pro
- Плата
- WP 3.2A
- Прошивка
- Grbl 1.1f
- #8
Alex1969, уважаемый, для начала необходимо разархивировать Custom_mm.zip
Alex1969
- Регистрация
- 27.03.2019
- Сообщения
- 24
- Реакции
- 10
- Баллы
- 23
- Город
- Минск
- Имя
- Александр
- 17.04.2019
- Последнее редактирование: 17.04.2019
- #9
Последнее редактирование: 17.04.2019
Я по ссылке прочел фразу: «У данного файла переименуйте расширение в формат .con и скопируйте его по пути:
Program FilesArtCAM 2012postp»
Так и выполнил. Про разархивацию ни слова. Я думал просто форум не позволяет выкладывать файлы с подобными расширениями. Хорошо, попробую.
Простите, но что там инструктировать ? Там две с половиной кнопки.
Ну может как-нибудь кто-то сделает инструкцию, но я смысла большого не вижу.
Да, но просто у меня они не работают адекватно, кроме обнуления позиции. Не работает, например, кнопка «Домой» и некоторые другие. Я не знаю почему, вот и хотел разобраться.
Ваши сообщения автоматически объединены: 17.04.2019
В общем там нужно заменить фразу «У данного файла переименуйте расширение в формат » в «Распакуйте данный архив и полученный файл…». Все получилось. Спасибо!
Вопрос по кнопкам с изображением человечка, домика, ресет и унлок. Смысл понимаю, но ничего не происходит при их нажатии.
Дым506
- Регистрация
- 16.12.2019
- Сообщения
- 112
- Реакции
- 62
- Баллы
- 48
- Город
- Россия
- 16.12.2019
- Последнее редактирование: 16.12.2019
- #10
Последнее редактирование: 16.12.2019
$H<ERROR:5 тоже такая ошибка
вот , постпроцессор исправит ?
Ваши сообщения автоматически объединены: 16.12.2019
установил постпроцессор не помогло , нажимаю кнопку дом и опять таже ошибка
-
Снимок.PNG
2.7 KB · Просмотры: 136
extrimus
- Регистрация
- 29.03.2019
- Сообщения
- 5 895
- Реакции
- 5 218
- Баллы
- 250
- Возраст
- 56
- Адрес
- Россия
- Город
- Иваново
- Имя
- Андрей
- Плата
- Woodpecker 3.2
- Прошивка
- GBRL 1.1f
- 16.12.2019
- Последнее редактирование: 16.12.2019
- #11
Последнее редактирование: 16.12.2019
$H<ERROR:5 тоже такая ошибка
вот , постпроцессор исправит ?
Ваши сообщения автоматически объединены: 16.12.2019
установил постпроцессор не помогло , нажимаю кнопку дом и опять таже ошибка
Постпроцессор в поиске дома никакой роли не играет. Концевики-то у вас стоят? Параметр $22 активирован?
Дым506
- Регистрация
- 16.12.2019
- Сообщения
- 112
- Реакции
- 62
- Баллы
- 48
- Город
- Россия
- #12
концевиков нет , $22=0 ,
Ваши сообщения автоматически объединены: 16.12.2019
вообще для чего эта кнопка дом , извените конечно я есчо в чпу совсем балбес
extrimus
- Регистрация
- 29.03.2019
- Сообщения
- 5 895
- Реакции
- 5 218
- Баллы
- 250
- Возраст
- 56
- Адрес
- Россия
- Город
- Иваново
- Имя
- Андрей
- Плата
- Woodpecker 3.2
- Прошивка
- GBRL 1.1f
- #13
Ну и что вы тогда хотите? Поиск дома работает только при наличии концевиков.
extrimus
- Регистрация
- 29.03.2019
- Сообщения
- 5 895
- Реакции
- 5 218
- Баллы
- 250
- Возраст
- 56
- Адрес
- Россия
- Город
- Иваново
- Имя
- Андрей
- Плата
- Woodpecker 3.2
- Прошивка
- GBRL 1.1f
- #14
вообще для чего эта кнопка дом , извените конечно я есчо в чпу совсем балбес
Чтоб станок «знал» свои начальные координаты.
Вам бы, прежде чем включать станок, азы для начала изучить: https://cnc3018.ru/ewr-carta/
denbar
- Регистрация
- 29.02.2020
- Сообщения
- 28
- Реакции
- 10
- Баллы
- 23
- Город
- Волгоград
- Имя
- Денис
- #15
Кто подскажет что за ошибка error 1 , а после сразу error 22
Grbl 1.1f
-
geobruce
- Posts: 48
- Joined: Sat May 19, 2018 9:34 am
GRBL post processor, machine stuck error 22: feedrate has not been set [solved]
Hello
I’m quit new to FreeCAD and CNC machining, I managed to design a clamp I’d like to mill. And managed to get a little bit better understanding of the path workbench. The path simulation goes as planned. But when I export the gcode to my shapeoko the GRBL on the shapeoko returns an error on one of the first commands: «Last error: G3X3.0786Y2Z0I1.0191J-0.0595». I tried another grbl sender and this one gives more detailed error it seems error 22 Feedrate has not been set
I’m not sure what’s happening but when I look into the G-Code at a random G3 command it looks like this: G3 X2.0000 Y21.9214 Z0.0000 I-0.0595 J-1.0191 .
I’m not sure why there is a Z0.0000 but I’m not a G-code expert at all.
Is there anyone who knows what’s wrong?
fixed I left the feedrates at 0.00 and that was the problem
thanks in advance
my freecad version:
OS: Ubuntu 18.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14975 (Git)
Build type: Release
Branch: master
Hash: c6745d1b5b0af8284f8dd485046ec570c4ca68e0
Python version: 2.7.15rc1
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
- Attachments
-
- clamp.zip
- freecad file and gcode
- (90.71 KiB) Downloaded 67 times
Last edited by geobruce on Mon Oct 15, 2018 7:35 pm, edited 1 time in total.
-
GeneFC
- Veteran
- Posts: 4232
- Joined: Sat Mar 19, 2016 3:36 pm
- Location: Punta Gorda, FL
Re: GRBL post processor, machine stuck error 22: feedrate has not been set
Post
by GeneFC » Mon Oct 15, 2018 3:02 pm
The preceding command is vital to debugging G2 or G3 commands. The command you cited, G3 X3.0786 Y2 Z0 I1.0191 J-0.0595, looks OK, but only if the arc centers make sense based on the previous location.
I tried your nc file in the Camotics simulator and received multiple errors in arc centers as well as missing feed rates.
The Z0 command should not cause any problems.
There were a gazillion «F0» commands in the nc file. When I changed them to (arbitrary) «F1», the file appeared to simulate OK.
Gene
Welcome to Our Community
Some features disabled for guests. Register Today.
-
Builder
- Joined:
- May 27, 2017
- Messages:
- 12
- Likes Received:
- 0
i am using vcarve to write g code to lead machine and all the sudden
error:22 feed rate shows up how can i fix -
Builder
- Joined:
- May 27, 2017
- Messages:
- 12
- Likes Received:
- 0
I cannot figure out if it is something in Vcarve or in machine driver? It maybe coming from the IOT switch I just added.
-
Staff Member
Moderator
Builder
Resident Builder- Joined:
- Mar 1, 2017
- Messages:
- 11,014
- Likes Received:
- 3,490
Its a g1 move without a feedrate. Nothing to do with IOT.
Post the vectric project, post you used and resultant gcode.
-
Builder
- Joined:
- May 27, 2017
- Messages:
- 12
- Likes Received:
- 0
-
Staff Member
Moderator
Builder
Resident Builder- Joined:
- Mar 1, 2017
- Messages:
- 11,014
- Likes Received:
- 3,490
Error Code just posted similar issue, so might be related to a Vectric update? Also check which version you are on please and report back along with the files
-
Builder
- Joined:
- May 27, 2017
- Messages:
- 12
- Likes Received:
- 0
Might be Just installed new version of software, waiting to hear from Vectric
Thanks -
Moderator
Builder- Joined:
- Nov 1, 2018
- Messages:
- 2,319
- Likes Received:
- 1,150
I tried some simple files using the grbl (mm) (*.gcode) and Openbuilds (mm) post processors and they seem to be working OK. As @Peter Van Der Walt said share your Vectric and g-code files with us and let us know what post processor you are using.
Alex. -
Builder
- Joined:
- May 27, 2017
- Messages:
- 12
- Likes Received:
- 0
Simple house number on lexan
Attached Files:
-
Staff Member
Moderator
Builder
Resident Builder- Joined:
- Mar 1, 2017
- Messages:
- 11,014
- Likes Received:
- 3,490
Refer above please… Which Post are you selecting from the list of posts…
-
Builder
- Joined:
- May 27, 2017
- Messages:
- 12
- Likes Received:
- 0
-
Moderator
Builder- Joined:
- Nov 1, 2018
- Messages:
- 2,319
- Likes Received:
- 1,150
When you upgraded Vectric did you migrate everything from your previous version (especially post processors). I did mine so I can’t check if the upgrade includes the latest version of the Openbuilds post processors.
Alex. -
Staff Member
Moderator
Builder
Resident Builder- Joined:
- Mar 1, 2017
- Messages:
- 11,014
- Likes Received:
- 3,490
Try the mm posts as a test?
-
Builder
- Joined:
- May 27, 2017
- Messages:
- 12
- Likes Received:
- 0
-
Staff Member
Moderator
Builder
Resident Builder- Joined:
- Mar 1, 2017
- Messages:
- 11,014
- Likes Received:
- 3,490
Try the Grbl-mm one, worked for Error Code
The OpenBuilds posts reference the Grbl posts and then make adaptations, so if the Grbl-inch post is broken in latest update, it spills over into ours -
Moderator
Builder- Joined:
- Nov 1, 2018
- Messages:
- 2,319
- Likes Received:
- 1,150
Vectric claim (today) that the latest release fixes the grbl post processors — they don’t mention Openbuilds or Duet versions.
Alex. -
Staff Member
Moderator
Builder
Resident Builder- Joined:
- Mar 1, 2017
- Messages:
- 11,014
- Likes Received:
- 3,490
They won’t, because we «include» the Grbl posts using the POST_BASE option: See OpenBuilds/OpenBuilds-Vectric-Postprocessor and OpenBuilds/OpenBuilds-Vectric-Postprocessor (line 46 in both)
So when they broke the Grbl posts, the others are affected too.Essentially POST_BASE is an inheritance type directive. It would save having multiple copies of what are essentially the same lumps of code. The GRBL based post processors do the same thing. You can add any commands that are specific to your needs after the POST_BASE command — in our case customised the headers, adding a spin-up delay for the spindle after M3
-
Builder
- Joined:
- Dec 4, 2017
- Messages:
- 6
- Likes Received:
- 1
I am VERY inexperienced and having this same problem — Running Lead 1010 on black box w/ Cut2D Desktop and getting Grbl Error: 22 Feed Rate has not been set or is undefined [G1Z=0.500] . IF I understand the above thread, I need to get the fix from Vectric. Is this correct?
-
Moderator
Builder- Joined:
- Nov 1, 2018
- Messages:
- 2,319
- Likes Received:
- 1,150
This issue should be fixed in the latest update from Vectric (10.54)
What post processor are you using? Let us know if it still doesn’t work with the latest update.
Alex. -
Builder
- Joined:
- May 27, 2017
- Messages:
- 12
- Likes Received:
- 0
working with 10 today will try tomorrow
-
Builder
- Joined:
- Mar 4, 2021
- Messages:
- 13
- Likes Received:
- 3
Hate to reopen this but I’m seeing it when running the built in spoil board program.
-
Staff Member
Moderator
Builder
Resident Builder- Joined:
- Mar 1, 2017
- Messages:
- 11,014
- Likes Received:
- 3,490
If you do get the same error, then you forgot to type a number into the feedrate input field of the wizard. Enter all the values then generate Gcode.
-
Builder
- Joined:
- Mar 4, 2021
- Messages:
- 13
- Likes Received:
- 3
Nope, it was in there. Ran for half the job and then halted with that code.
-
Staff Member
Moderator
Builder
Resident Builder- Joined:
- Mar 1, 2017
- Messages:
- 11,014
- Likes Received:
- 3,490
Thanks, including sample files, screenshots and additional details like the «it ran till halfway» would always help avoid situations where we have to make assumtions.
As this tread was about GCODE where the feedrate was missing because of Vectric bugs (so not the same as your issue then) it would be best to have a detailed problem description to work from, just a tip for next time.
If it ran halfway then, including the Serial Log of the run up to the error, along with the file would help us take a look for you
Share This Page
Updated 2 years ago
Error Code |
Error Message |
Error Description |
1 |
Expected Command Letter |
G-code words consist of a letter and a value. Letter was not found. |
2 |
Bad Number Format |
Missing the expected G-code word value or numeric value format is not valid |
3 |
Invalid Statement |
Grbl ‘$’ system command was not recognized or supported. |
4 |
Value < 0 |
Negative value received for an expected positive value. |
5 |
Homing Disabled |
Homing cycle failure. Homing is not enabled via settings. |
7 |
EEPROM Read Fail |
An EEPROM read failed. Auto-restoring affected EEPROM to default values. |
8 |
Not Idle |
Grbl ‘$’ command cannot be used unless Grbl is IDLE. Ensures smooth operation during a job. |
9 |
G-Code Lock |
G-code commands are locked out during alarm or jog state. |
10 |
Homing Not Enabled |
Soft limits cannot be enabled without homing also enabled. |
11 |
Line Overflow |
Max characters per line exceeded. File most likely formatted improperly |
14 |
Line Length Exceeded |
Build info or startup line exceeded EEPROM line length limit. Line not stored. |
15 |
Travel Exceeded |
Jog target exceeds machine travel. Jog command has been ignored. |
17 |
Setting Disabled |
Laser mode requires PWM output. |
20 |
Unsupported Command |
Unsupported or invalid g-code command found in block. This usually means that you used the wrong Post-Processor to make your file, or that some incompatible code within needs to be manually deleted. |
21 |
Modal Group Violation |
More than one g-code command from same modal group found in block. |
22 |
Undefined Feed Rate |
Feed rate has not yet been set or is undefined. |
23-38 |
Invalid G-code |
Error codes 23-38 all give different reasons for a file failing. To look up further, google «GRBL Error Code [Insert Number] for more information. |
How did we do?
ERROR LIST
“error:1” : _(“G-code words consist of a letter and a value. Letter was not found.”),
“error:2” : _(“Numeric value format is not valid or missing an expected value.”),
“error:3” : _(“Grbl ‘$’ system command was not recognized or supported.”),
“error:4” : _(“Negative value received for an expected positive value.”),
“error:5” : _(“Homing cycle is not enabled via settings.”),
“error:6” : _(“Minimum step pulse time must be greater than 3usec”),
“error:7” : _(“EEPROM read failed. Reset and restored to default values.”),
“error:8” : _(“Grbl ‘$’ command cannot be used unless Grbl is IDLE. Ensures smooth operation during a job.”),
“error:9” : _(“G-code locked out during alarm or jog state”),
“error:10” : _(“Soft limits cannot be enabled without homing also enabled.”),
“error:11” : _(“Max characters per line exceeded. Line was not processed and executed.”),
“error:12” : _(“(Compile Option) Grbl ‘$’ setting value exceeds the maximum step rate supported.”),
“error:13” : _(“Safety door detected as opened and door state initiated.”),
“error:14” : _(“(Grbl-Mega Only) Build info or startup line exceeded EEPROM line length limit.”),
“error:15” : _(“Jog target exceeds machine travel. Command ignored.”),
“error:16” : _(“Jog command with no ‘=’ or contains prohibited g-code.”),
“error:20” : _(“Unsupported or invalid g-code command found in block.”),
“error:21” : _(“More than one g-code command from same modal group found in block.”),
“error:22” : _(“Feed rate has not yet been set or is undefined.”),
“error:23” : _(“G-code command in block requires an integer value.”),
“error:24” : _(“Two G-code commands that both require the use of the XYZ axis words were detected in the block.”),
“error:25” : _(“A G-code word was repeated in the block.”),
“error:26” : _(“A G-code command implicitly or explicitly requires XYZ axis words in the block, but none were detected.”),
“error:27” : _(“N line number value is not within the valid range of 1 – 9,999,999.”),
“error:28” : _(“A G-code command was sent, but is missing some required P or L value words in the line.”),
“error:29” : _(“Grbl supports six work coordinate systems G54-G59. G59.1, G59.2, and G59.3 are not supported.”),
“error:30” : _(“The G53 G-code command requires either a G0 seek or G1 feed motion mode to be active. A different motion was active.”),
“error:31” : _(“There are unused axis words in the block and G80 motion mode cancel is active.”),
“error:32” : _(“A G2 or G3 arc was commanded but there are no XYZ axis words in the selected plane to trace the arc.”),
“error:33” : _(“The motion command has an invalid target. G2, G3, and G38.2 generates this error, if the arc is impossible to generate or if the probe target is the current position.”),
“error:34” : _(“A G2 or G3 arc, traced with the radius definition, had a mathematical error when computing the arc geometry. Try either breaking up the arc into semi-circles or quadrants, or redefine them with the arc offset definition.”),
“error:35” : _(“A G2 or G3 arc, traced with the offset definition, is missing the IJK offset word in the selected plane to trace the arc.”),
“error:36” : _(“There are unused, leftover G-code words that aren’t used by any command in the block.”),
“error:37” : _(“The G43.1 dynamic tool length offset command cannot apply an offset to an axis other than its configured axis. The Grbl default axis is the Z-axis.”),
“error:38” : _(“An invalid tool number sent to the parser”),
“ALARM:1” : _(“Hard limit triggered. Machine position is likely lost due to sudden and immediate halt. Re-homing is highly recommended.”),
“ALARM:2” : _(“G-code motion target exceeds machine travel. Machine position safely retained. Alarm may be unlocked.”),
“ALARM:3” : _(“Reset while in motion. Grbl cannot guarantee position. Lost steps are likely. Re-homing is highly recommended.”),
“ALARM:4” : _(“Probe fail. The probe is not in the expected initial state before starting probe cycle, where G38.2 and G38.3 is not triggered and G38.4 and G38.5 is triggered.”),
“ALARM:5” : _(“Probe fail. Probe did not contact the workpiece within the programmed travel for G38.2 and G38.4.”),
“ALARM:6” : _(“Homing fail. Reset during active homing cycle.”),
“ALARM:7” : _(“Homing fail. Safety door was opened during active homing cycle.”),
“ALARM:8” : _(“Homing fail. Cycle failed to clear limit switch when pulling off. Try increasing pull-off setting or check wiring.”),
“ALARM:9” : _(“Homing fail. Could not find limit switch within search distance. Defined as 1.5 * max_travel on search and 5 * pulloff on locate phases.”),
“Hold:0” : _(“Hold complete. Ready to resume.”),
“Hold:1” : _(“Hold in-progress. Reset will throw an alarm.”),
“Door:0” : _(“Door closed. Ready to resume.”),
“Door:1” : _(“Machine stopped. Door still ajar. Can’t resume until closed.”),
“Door:2” : _(“Door opened. Hold (or parking retract) in-progress. Reset will throw an alarm.”),
“Door:3” : _(“Door closed and resuming. Restoring from park, if applicable. Reset will throw an alarm.”),