User Tools

Site Tools


plc:plc_procedure_aliases

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
plc:plc_procedure_aliases [2017/08/18 00:56] – created skirillovplc:plc_procedure_aliases [2017/09/12 17:55] skirillov
Line 1: Line 1:
-==== PLC procedure aliases ====+==== PLC procedure Aliases ====
  
 +Let's suppose we have plasma cutting profile and M procedures for Cutting On (M71) and Cutting Off (M74)- 
 +  * М71 - Cutting On
 +  * М74 - Cutting Off
 +
 +Q: What to do if need to cut g-code file from different CA</postprocessor which uses different codes for Cutting On/Off (М3/М5 for example).
 +
 +We need to run this codes M3/M5 exactly as our current codes М71/М74. There are 2 solutions in this case - bad and good :).
 +  - (**bad**) Add to PLC Builder 2 procedures М3 and М5 and copy content from M71 to M3 (Cutting On) and from M74 to M5 (Cutting Off), then Rebuild All procedures and send to Controller )press 3 buttons on th right side of PLC Builder widget - **Save**, **Rebuild All** and **Send**.  Con of this method: if you need to fix one of procedures (for example **M71**) then you need to do the same fixes in **M3** manually.
 +  - Назначить М3 как "синоним" (Alias) для М71, а М5 как "синоним" (Alias) к М74. Тогда при редактировании и компиляции М71 система myCNC будет автоматически создавать идентичный код для обоих процедур М71 и М3.
 +
 +Ниже показана последовательность действий для создания Alias (синонимов):
 +
 +  - Войти в **PLC builder** (Настройки-Cfg-PLC Компилятор-Встроенное PLC){{mycnc:mycnc-plc-builder-ru--2.png}}
 +  - Выделить (кликнуть) в окне **PLC исходные тексты** строку с Процедурой М71
 +  - В правой части сверху - поле ввода **Синонимы** ввести имя процедуры М3 (если там уже есть другие синонимы, то добавить М3 через разделитель ";" {{mycnc:mycnc-plc-builder-ru--3.png}}
 +  - Выделить (кликнуть) в окне **PLC исходные тексты** любую другую строку и проверить, что в строке с М71 в скобках появилось М3 {{mycnc:mycnc-plc-builder-ru--4.png}}
 +  - Сделать подобное действие с М74 и добавить М5 в синонимы {{mycnc:mycnc-plc-builder-ru--5.png}}
 +  - Нажать последовательно 3 кнопки в правой части экрана - **Build All**, **Сохранить**, **Отослать** {{mycnc:mycnc-plc-builder-ru--6.png}}{{mycnc:mycnc-plc-builder-ru--7.png}}{{mycnc:mycnc-plc-builder-ru--8.png}}
 +
 +Процедуры М3 и М5 готовы к работе!
plc/plc_procedure_aliases.txt · Last modified: 2017/09/12 18:27 by skirillov

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki