Changes for page Макрос для формирования карты высот
Last modified by writer on 2025/07/15 19:27
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,10 +1,10 @@ 1 -{{info}} 2 -**This page didn't translate yet. You can see the original page.** 3 -{{/info}} 1 +For certain tasks (for example, PCB milling) it becomes necessary to scan the surface with subsequent correction of unevenness in Z. 4 4 5 - Дляопределённыхзадач(например,фрезеровкипечатныхплат)возникаетнеобходимость сканирования поверхности с последующей корректировкой неровностей по Z. Карта высот подготавливается с помощью макроса(примерниже),инаоснове этой карты высот модифицируетсяG-код.СформироватьG-кодсготовымикоординатамиможно, например, в программе G-CodeRipper.3 +A height map is prepared using a macro (show example below) and the G-code is modified based on this height map. 6 6 7 -{{code}} 5 +You can generate a G-code with new coordinates, for example, in the G-Code Ripper program. 6 + 7 +{{code language="lua"}} 8 8 function m155() 9 9 local XWidth = 70 10 10 local YWidth = 50 ... ... @@ -14,7 +14,7 @@ 14 14 local StepY = 15 15 15 local Feed = 50 16 16 local TipHeight = 0 17 - local ProbeFilename = "C:\temp\probe.txt" 17 + local ProbeFilename = "C:\\temp\\probe.txt" 18 18 19 19 PushCurrentDistanceMode() 20 20 PushCurrentMotionMode() ... ... @@ -84,4 +84,4 @@ 84 84 end 85 85 {{/code}} 86 86 87 -[[ Скачатьмакрос>>attach:M155.pm]]87 +**[[Download macro>>attach:M155.pm]]**