Digital Dream Technology support

Title: Using M101 and M102 commands [Print This Page]

Author: Nikolay81    Time: 2018-10-3 18:30
Title: Using M101 and M102 commands
Please, tell me why you need the commands M101 and M102.
It is known that they are associated with probing, but what they do is incomprehensible.
What is their syntax?
Author: ytliu    Time: 2018-10-3 18:58
The M101 command will start monitoring the probe signal during the machining process. If the probe signal appears in the subsequent movement, the motion will stop.At this point, you can get the coordinate information through the macro variable.

M102 turns off the monitoring of the probe signal.
Author: Nikolay81    Time: 2018-10-3 19:41
Last edited by Nikolay81 In 2018-10-3 20:22 Editor
ytliu Posted at 2018-10-3 18:58
The M101 command will start monitoring the probe signal during the machining process. If the probe s ...

Many thanks.
This command interrupts the execution of the program when a signal appears to be probing. You can not resume the program from the same place.
That is, it is similar to pressing the STOP button. But the spindle does not stop.
I do not understand how this can be used.
It seems to me that it would be more logical for the M101 to interrupt not the execution of the program but the execution of the frame.
That is, when a signal appears, DDCSV simply moves to next line (frame). Then, using this command, you can write your own program of probing.Also, when a signal is detected, the command M102 should automatically be executed or a pause in the signal detection should be made.
In the beginning, the next frame will be also interrupted, due to the fact that the contacts remain closed. It is necessary to create conditions for the command of the next line to withdraw the instrument.
Please implement this in future firmware. Then this function will be useful and people will use it.

When there is time, please give an example of how you can find out the coordinates through macro variable.


Author: 71taa    Time: 2018-10-19 14:24
I'll join to the request of the M101/M102 sample of coordinates manipulation.
It's useful in case of custom T.nc with auto-probing of manually changed tool length using the probe placed in fixed coordinates.

Tried by myself, the probing works but there is no sample in slib.nc of how to manipulate variables to define compensation/coordinate system shift (or what is used during the standard probing behind the scenes).
Author: Nikolay81    Time: 2018-10-19 17:36
This is already decided in the latest firmware.

probe instructions
M101 or M103 is used to turn on the probe func. After turning on, in the subsequent motion, if the probe signal is found, the motion will stop. M101 differs from M103 in that the effective level of the probe signal is different.
M102 is used to turn off the probe func.
M101 or M103 must appear in pairs with M102.
E.g:
M101
G91G01Z-100F_
M102
G04P0; synchronization, where P must be 0
M103
G91G01Z100F_
M102
G04P0; synchronization, where P must be 0
G90G92Z_

First, M101 turns on the forward probe func, then the Z axis moves down 100mm at the set speed. In this process, if the level of the probe signal changes from '1' to '0', the motion stops, then M102 turns off the probe func, and Synchronize.
Next, M103 turns on the reverse probe func, and the Z axis moves up 100mm at the set speed. In this process, if the level of the probe signal changes from '0' to '1', the motion stops, and then M102 turns off the probe func. And synchronize.
Finally, execute G90G92Z_, set the Z coordinate of the current position to the set value.


Author: dmal2002    Time: 2018-10-30 16:56
I have G-code:
N0110 M101
N0120 G91G01Z-50F1000 (stops at this place, after touching the probe)
N0130 M102
N0140 G04P0
N0150 M103
N0160 G91G01Z10F1000
N0170 M102
what am I doing wrong?
Author: Nikolay81    Time: 2018-10-30 21:47
Some command can not stand first.
It is necessary so:
N0100 G04P0
N0110 M101
N0120 G91G01Z-50F1500
N0130 M102
N0140 G04P0
N0150 M103
N0160 G91G01Z10F5
N0170 M102
Author: dmal2002    Time: 2018-10-30 22:06
Last edited by dmal2002 In 2018-10-30 22:24 Editor

N0010 (Filename: Круг50.tap)
N0020 (Post processor: LinuxCNC plasma.scpost)
N0030 (Date: 23.10.2018)
N0040 G21 (Units: Metric)
N0050 G40 G90
N0070 (Part: Круг50)
N0080 (Operation: Со смещением наружу, 0, T2: Толщина 2)
N0090 G00 Z5.0000
N0100 G00 X20 Y20
N0110 G04P0
N0120 M101
N0130 G91G01Z-50F500
N0140 M102
N0150 G04P0
N0160 M103
N0170 G91G01Z100F500
N0180 M102
N0190 G04P0
N0200 G90G92Z5.00
N0210 M30
unfortunately the same thing. does not work.I use G54 system. Manual probing work. I'm test Mode 1 and Mode 2.

Author: Nikolay81    Time: 2018-10-30 22:23
У меня работает. Может, стоит установить последнюю прошивку? В старых прошивках это не работало.
И скорость подъёма, надо ставить очень низкую. 5мм/мин - в самый раз. Это увеличивает точность, но не увеличивает время.
Author: dmal2002    Time: 2018-10-30 22:25
Last edited by dmal2002 In 2018-10-30 22:31 Editor

Прошивки, как я понимаю прошивать путем подключения флешки с папкой Install в момент загрузки? Если так, то у меня стоит от октября, которую вы предложили с переводом. Неделю уже калдую, просто замучился, перебрал все возможные постпроцессоры и варианты G-кодов. У меня плазменная резка, по этому точность не очень важна, там так или иначе высота горелки стабилизируеться по напряжению дуги, в таких установка гораздо важнее скорость. Сейчас так происходит: станок подъезжает к точке, опускает горелку до касания металла и все, дальше ничего не делает. Если исключить макрос М103 и заставить его ехать домой, то едет в машинный 0.
Author: Nikolay81    Time: 2018-10-30 22:27
Какой номер прошивки (см. на экране)?
Выполняется ли у тебя код:
N0100 G04P0
N0110 M101
N0120 G91G01Z-50F1500
N0130 M102
N0140 G04P0
N0150 M103
N0160 G91G01Z10F5
N0170 M102
Author: dmal2002    Time: 2018-10-30 22:34
Ver:2018-10-09-101NOR
Author: dmal2002    Time: 2018-10-30 22:37
Nikolay81 Posted at 2018-10-30 22:27
Какой номер прошивки (см. на экране)?
Выполняется ли у т ...

Не работает... Подъезжает, тыкается и замирает.
Author: Nikolay81    Time: 2018-10-30 22:40
dmal2002 Posted at 2018-10-30 22:34
Ver:2018-10-09-101NOR

Попробуй вот эту прошивку.
Код, который я написал, у тебя работает, или нет?

install.rar

497.48 KB, Down times: 1757


Author: dmal2002    Time: 2018-10-30 23:01
Да, ОГРОМНОЕ СПАСИБО!!! На этой прошивке все корректно работает. Нужно еще сказать об этом  Ytliu, что бы он актуализировал, так как за несколько дней нахождения на форуме скачал море прошивок, в итоге рабочей оказалась только предложенная вами.

Author: JPoepsel    Time: 2018-10-31 15:20
Come on, boys: at least put a Google translated version below your posting!
Author: Nikolay81    Time: 2018-10-31 18:27
General sense: the M101-M103 commands work only on the latest firmware. Chrome has a translation feature. It was with the help of it that I understood what you wrote :-) And nothing bad happened to me because of this :-) Try to use this function - you will like it.




Welcome Digital Dream Technology support (http://bbs.ddcnc.com/) Powered by Discuz! X3