Using M101 and M102 commands - DDCSV2.1 - Standalone CNC Motion Controller - Digital Dream Technology support
12Next
Return to List Add thread
View: 19335|Reply: 16
Print Previous Topic Next Topic

Using M101 and M102 commands

[Copy Link]

15

Threads

139

Posts

517

Credits

Senior Member

Rank: 4

Credits
517
Jump to the specified floor
Landlord
Posted at 2018-10-3 18:30:08 | Only Author Replies reward |Descending browser |Read mode
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?
Reply

Use props Report

8

Threads

333

Posts

1040

Credits

Super Moderator

Rank: 8Rank: 8

Credits
1040
Sofa
Posted at 2018-10-3 18:58:45 | Only Author
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.
Reply Support Opposition

Use props Report

15

Threads

139

Posts

517

Credits

Senior Member

Rank: 4

Credits
517
Bench
 Author| Posted at 2018-10-3 19:41:27 | Only Author
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.

Reply Support Opposition

Use props Report

2

Threads

25

Posts

408

Credits

Intermediate Member

Rank: 3Rank: 3

Credits
408
Floor
Posted at 2018-10-19 14:24:58 | Only Author
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).
Reply Support Opposition

Use props Report

15

Threads

139

Posts

517

Credits

Senior Member

Rank: 4

Credits
517
5#
 Author| Posted at 2018-10-19 17:36:31 | Only Author
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.

Reply Support Opposition

Use props Report

0

Threads

8

Posts

46

Credits

Newbie Member

Rank: 1

Credits
46
6#
Posted at 2018-10-30 16:56:34 | Only Author
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?
Reply Support Opposition

Use props Report

15

Threads

139

Posts

517

Credits

Senior Member

Rank: 4

Credits
517
7#
 Author| Posted at 2018-10-30 21:47:12 | Only Author
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
Reply Support Opposition

Use props Report

0

Threads

8

Posts

46

Credits

Newbie Member

Rank: 1

Credits
46
8#
Posted at 2018-10-30 22:06:47 | Only Author
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.
Reply Support Opposition

Use props Report

15

Threads

139

Posts

517

Credits

Senior Member

Rank: 4

Credits
517
9#
 Author| Posted at 2018-10-30 22:23:05 | Only Author
У меня работает. Может, стоит установить последнюю прошивку? В старых прошивках это не работало.
И скорость подъёма, надо ставить очень низкую. 5мм/мин - в самый раз. Это увеличивает точность, но не увеличивает время.
Reply Support Opposition

Use props Report

0

Threads

8

Posts

46

Credits

Newbie Member

Rank: 1

Credits
46
10#
Posted at 2018-10-30 22:25:54 | Only Author
Last edited by dmal2002 In 2018-10-30 22:31 Editor

Прошивки, как я понимаю прошивать путем подключения флешки с папкой Install в момент загрузки? Если так, то у меня стоит от октября, которую вы предложили с переводом. Неделю уже калдую, просто замучился, перебрал все возможные постпроцессоры и варианты G-кодов. У меня плазменная резка, по этому точность не очень важна, там так или иначе высота горелки стабилизируеться по напряжению дуги, в таких установка гораздо важнее скорость. Сейчас так происходит: станок подъезжает к точке, опускает горелку до касания металла и все, дальше ничего не делает. Если исключить макрос М103 и заставить его ехать домой, то едет в машинный 0.
Reply Support Opposition

Use props Report

You need to log in before you can reply Login | Register now

This forum Credits Rules

Shenzhen Digital Dream Numerical Technology Co., Ltd. support
Adress:507,A Building,Leibo Industry Zone,No. 22 Jinxiu East Road,Kengzi Street,Pingshan district,Shenzhen City,P.R. of China
Phone:13244704799
E-mail:info@ddcnc.com

TEL

0755-87654321

Wchat

Website designed by DigitalDream Technology Support
Quick Reply Back to top Back to list