Digital Dream Technology support

Title: Postprocessor for SheetCam [Print This Page]

Author: Nikolay81    Time: 2018-7-24 20:02
Title: Postprocessor for SheetCam
Last edited by Nikolay81 In 2018-8-2 02:44 Editor

Updated 01,08,2018
I post the postprocessors for SheetCam.
It is suitable for a three-axis milling cutter with manual tool change.
One with drilling cycle G83, the other with drilling cycle G73.

If you select the cycle G83, the value of the setting "peck retract" is not taken into account.

I thank, dear Ytliu. Without him, it would be impossible.

Works only on the firmware that is attached to the message.
For its operation it is necessary to set the values of the parameters #82 = 1; #89 = 2
Soon there will be postprocessors for the SolidCam and PowerMill.


5.rar

492.7 KB, Down times: 2267


Author: ytliu    Time: 2018-7-24 20:37
The current position coordinates of the workpiece coordinate system can be set by G92. The usage is as follows:
1. G90G92Z0, set the current workpiece coordinate system Z-axis position to 0;
2. G90G92X5Y3Z-2 sets the current workpiece coordinate system XYZ position to (5, 3, -2);
3. G91G92X5 If the X workpiece coordinate is 3 before executing this instruction, set the X workpiece coordinate to 3+5=8.
Author: ytliu    Time: 2018-7-24 20:44
After starting the machining or suspending the machining in the DDCSV system, the machine will first be moved to safe height (workpiece coordinate system) by safez.nc, and then the subsequent instructions will continue to be executed. If you don't need this action, you can install a safez.nc file with empty content into the system.
Author: Nikolay81    Time: 2018-7-24 21:23
ytliu Posted at 2018-7-24 20:37
The current position coordinates of the workpiece coordinate system can be set by G92. The usage is  ...

I'm writing G90G92X0Y0Z0.
The z axis, first rises to the height #82 and then all the axes are reset.
If you execute the command several times, the z-axis will rise 1 mm each time.
How to reset the axis without lifting the z axis?
Author: Nikolay81    Time: 2018-7-24 21:33
Last edited by Nikolay81 In 2018-7-24 21:35 Editor
ytliu Posted at 2018-7-24 20:44
After starting the machining or suspending the machining in the DDCSV system, the machine will first ...

I deleted the contents of the safez.nc file
But still with the M0 command, the z-axis rises to the height # 89.
She ceased to descend to # 82. And this is good.
But how can we prevent it from rising when M0?
Author: ytliu    Time: 2018-7-24 21:36
Nikolay81 Posted at 2018-7-24 21:23
I'm writing G90G92X0Y0Z0.
The z axis, first rises to the height #82 and then all the axes are rese ...

Create a safez.nc file, do not write anything inside, install this file into the system, in addition, set the #89 parameter to 0, then you are trying
Author: ytliu    Time: 2018-7-24 21:39
Nikolay81 Posted at 2018-7-24 21:33
I deleted the contents of the safez.nc file
But still with the M0 command, the z-axis rises to the  ...

set the #89 parameter to 0
Author: Nikolay81    Time: 2018-7-25 03:35
ytliu Posted at 2018-7-24 21:39
set the #89 parameter to 0

:-))
I myself already figured out that you can do so.
But need to press the PAUSE button to raise the z-axis to # 89. And at a pause from the G-code did not raise.
Can make a separate pause command without moving the z axis, for example M210?
Author: ytliu    Time: 2018-7-25 09:23
Nikolay81 Posted at 2018-7-25 03:35
:-))
I myself already figured out that you can do so.
But need to press the PAUSE button to raise  ...

Increase M110 pause command support, use M110 pause, buzzer will be called 1.5s, pause.nc will not be called when paused, safez.nc will not be called before recovery, and the recovery position is the current coordinate position, instead of pause Coordinate position

install(2018-07-25-96).zip

575.09 KB, Down times: 1715


Author: Nikolay81    Time: 2018-7-25 18:45
ytliu Posted at 2018-7-25 09:23
Increase M110 pause command support, use M110 pause, buzzer will be called 1.5s, pause.nc will not ...

Many thanks to Ytliu!
The M110 command is working. Now, almost everything is perfect.
There are 3 wishes:
-Commands like G90G92X0Y0Z0 still do not work correctly. He should not lift the z-axis before all the axes are reset. Try this command yourself.

-We would like to split the pause without moving the z-axis and the sound signal. It would be nice if the buzzer command had a playing time (like the M300 S5000)
The command of a sound signal is necessary in many cases. This will appeal to many people
-After the M0 command, I wrote the name of the instrument in parentheses so that the operator knew which tool to put (M0 (toolname)).
But the command M110 has 2 more symbols than M0. And now you can not display such long tool names on the screen as before.
Is it possible to reduce this command to two or even one character? For example BA or B0 or C1.




For my company, it is very important that you improve the software of this NC controller.
We are ready to help you in every possible way. Please give an answer to my personal message.


Author: ytliu    Time: 2018-7-26 07:37
Last edited by ytliu In 2018-7-26 08:35 Editor
Nikolay81 Posted at 2018-7-25 18:45
Many thanks to Ytliu!
The M110 command is working. Now, almost everything is perfect.
There are 3  ...

Hi,Nikolay81!
1. When the DDCSV system starts machining or resumes machining, it will first execute safez.nc to move the Z axis to the safe height (#82 definition). If you do not need this action, you can clear the contents of safez.nc;
2. In the new installation package, when the code line containing () is executed, the contents of the parentheses are extracted for display without displaying the entire line;
3. The buzzer control command must have a corresponding output port, and the current DDCSV has no redundant output for buzzer control;

install(2018-07-25-96).zip

576.01 KB, Down times: 1255


Author: Nikolay81    Time: 2018-7-28 06:02
ytliu Posted at 2018-7-26 07:37
Hi,Nikolay81!
1. When the DDCSV system starts machining or resumes machining, it will first execute ...

Ytliu, many thanks! This is what you need. Now the name of the instrument is displayed really comfortably. Very good solution.
Two problems remain:-If the command M110 is executed from the G-code - everything is fine. The z axis does not move. If the M110 is inserted into the T.nc - everything is bad. The z axis moves and can rest against the limit.
-Commands like G90G92X0Y0 should set new axes coordinates. The axes must not move. Otherwise it does not make sense. But with G92, the z-axis still rises, and then
new coordinates are set. If you delete the contents of SafeZ.nc - all is well. But the pause stops working correctly when you click on the "PAUSE" button.
If you defeat these 2 problems, everything will be perfect. What do you think, can this be solved?


Author: ytliu    Time: 2018-7-28 06:39
Nikolay81 Posted at 2018-7-28 06:02
Ytliu, many thanks! This is what you need. Now the name of the instrument is displayed really comf ...

Please upload the /mnt/nand1-1/setting file and processing files (including T.nc) in your controller.This will help me analyze the problem.
Author: Nikolay81    Time: 2018-7-28 20:47
Last edited by Nikolay81 In 2018-7-28 20:49 Editor
ytliu Posted at 2018-7-28 06:39
Please upload the /mnt/nand1-1/setting file and processing files (including T.nc) in your controll ...

To reproduce the problem, you need:
-plit the z-axis to the machine coordinates 0mm
-run the program test1.tap

After the controller writes the name of the tool, move the z-axis down, closer to the table and zero all axes.
Then press start.
Sometimes, the problem does not manifest itself for the first time.
The program has 2 tool changers.
On the second tool change, the problem will definitely appear.

When the controller writes a second time about changing the tool, again move the z-axis closer to the table (as if pointing the workpiece zero) and zero all axes.

Sometimes, instead of the name of the tool, he writes "syntax checking".
But I still can not find the conditions under which this problem always appears.

The problem with the command G90G92X0Y0 disappeared. He no longer raises the z-axis.
I do not know why it happened. Yesterday he raised, today does not raise.
Maybe because I once again to flash it. But the firmware was the same as yesterday.

test.rar

486.1 KB, Down times: 1475


Author: ytliu    Time: 2018-7-29 07:07
Nikolay81 Posted at 2018-7-28 20:47
To reproduce the problem, you need:
-plit the z-axis to the machine coordinates 0mm
-run the progra ...

It is not the Z-axis motion caused by G92. After starting the machining, the safez.nc will be executed first. If the current Z axis is below the safe altitude, safez.nc will raise Z to a safe altitude. Otherwise, the Z axis does not move. This should be the reason for "Yesterday he raised, today does not raise." In the attachment, I have emptied the contents of safez.nc.

install.zip

569.55 KB, Down times: 1495


Author: Nikolay81    Time: 2018-7-29 20:51
ytliu Posted at 2018-7-29 07:07
It is not the Z-axis motion caused by G92. After starting the machining, the safez.nc will be exec ...

Thank you, Ytliu. Now, at last the tool change and pause work correctly.
G92 and M110 do not lift the z-axis. Pause by pressing the "pause" button, raises the z-axis.
When you make new firmware, please check the correctness of the test1.tap program with the module T.nc.
And it happens that one bug is removed, and 2 new bugs are added :-)

About the sound signal. Perhaps we do not understand each other because of a bad translation.
I'm talking about that buzzer, which is soldered to the board, inside DDCSV2.2. See the photo.
I can connect the speaker to the M8 / M9 or M10 / M11 outputs. And play the audio signal this way.
But I would like to leave these outputs free.
You could add an audio signal to the M110 command.
Can I make a separate command that will make the internal speaker DDCSV2.2 sound?
Like the M300 on a 3d printer.
Or such a command is not possible, because of the features of the DDCSV2.2 software?

11.jpg (285.18 KB, Down times: 1413)

11.jpg

Test.rar

355 Bytes, Down times: 881


Author: ytliu    Time: 2018-7-29 22:34
Nikolay81 Posted at 2018-7-29 20:51
Thank you, Ytliu. Now, at last the tool change and pause work correctly.
G92 and M110 do not lift  ...

Hi,Nikolay,
Can you provide detailed operation videos? And indicate when the problem occurred.
I understand the operation of the sound signal.
Author: Nikolay81    Time: 2018-7-30 00:59
Probably, again the difficulties of translation.
No problem. You have solved them.
Now everything works as it should. Thanks to your work.

There is another task. In different places of the control program, it is convenient to insert the sound signal command. Which informs the operator about the achievement of certain points of the program. For example, that soon it is necessary to change the instrument. To the operator found out about this in a minute and had time to prepare. And situations in which you need a separate command sound signal can be a lot. In many CNC machines this is realized.

You in fact now carry out my wishes, first of all in order that DDCSV became more convenient for people. And this means that people will buy more of it.
A separate sound signal command will be convenient for many people.

I ask whether it is easy to make such a command on  DDCSV . Which will play the sound, built-in buzzer, a certain duration.
If it is impossible - the question is closed.What you have done is already enough to comfortably use this controller.

Author: ytliu    Time: 2018-7-31 06:15
Nikolay81 Posted at 2018-7-30 00:59
Probably, again the difficulties of translation.
No problem. You have solved them.
Now everything wo ...

ok,I will implement this function.
Author: Nikolay81    Time: 2018-7-31 15:15
ytliu Posted at 2018-7-31 06:15
ok,I will implement this function.

In the process of work, there was a problem with the command M6(toolname).
This command should execute the contents of T.nc and write the name of the tool on the screen.
In small simple programs - everything is fine.
And in large programs, instead of the name of the instrument, the controller often writes "SYNTAX CHECK 5".
The problem is not permanent. In the same program, it can appear once, but the second time it does not manifest itself.
But I found a program in which the problem is always present. It is in the archive attached to the message. File Test2.tap
If in this program the line M6 (toolname) is replaced with the contents of the T.nc file - everything will be fine. That is, the problem is related to the M6 ​​command.
I increased the values ​​of parameters # 2 "Display response during working", and # 396 "Number of line". I wrote M5 before and after M6.
Unfortunately, this did not help.
I ask you to test the Test2.tap program with the T.nc module and solve the problem. If possible.

IMG_20180730_173501[1].jpg (152.59 KB, Down times: 1409)

IMG_20180730_173501[1].jpg

1.rar

489.94 KB, Down times: 1445


Author: ytliu    Time: 2018-7-31 16:17
Nikolay81 Posted at 2018-7-31 15:15
In the process of work, there was a problem with the command M6(toolname).
This command should exe ...

Try it out

motion.zip

569.67 KB, Down times: 1438


Author: Nikolay81    Time: 2018-7-31 17:44
Many thanks.
This solved the problem.




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