Using M101 and M102 commands - On 2 Page - DDCSV2.1 - Standalone CNC Motion Controller - Digital Dream Technology support
Author: Nikolay81
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 | All floors 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

15

Threads

139

Posts

517

Credits

Senior Member

Rank: 4

Credits
517
Sofa
 Author| Posted at 2018-10-3 19:41:27 | All floors
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

15

Threads

139

Posts

517

Credits

Senior Member

Rank: 4

Credits
517
Bench
 Author| Posted at 2018-10-19 17:36:31 | All floors
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

15

Threads

139

Posts

517

Credits

Senior Member

Rank: 4

Credits
517
Floor
 Author| Posted at 2018-10-30 21:47:12 | All floors
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

15

Threads

139

Posts

517

Credits

Senior Member

Rank: 4

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

Use props Report

15

Threads

139

Posts

517

Credits

Senior Member

Rank: 4

Credits
517
6#
 Author| Posted at 2018-10-30 22:27:45 | All floors
Какой номер прошивки (см. на экране)?
Выполняется ли у тебя код:
N0100 G04P0
N0110 M101
N0120 G91G01Z-50F1500
N0130 M102
N0140 G04P0
N0150 M103
N0160 G91G01Z10F5
N0170 M102
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 22:40:49 | All floors

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

install.rar

497.48 KB, Down times: 635

Reply Support Opposition

Use props Report

15

Threads

139

Posts

517

Credits

Senior Member

Rank: 4

Credits
517
8#
 Author| Posted at 2018-10-31 18:27:04 | All floors
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.
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