mycnc:macro_language
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
mycnc:macro_language [2018/10/22 10:42] – pupalaiser | mycnc:macro_language [2022/03/29 16:14] – ivan | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Macro Language ===== | ===== Macro Language ===== | ||
+ | |||
+ | A video recap of this manual is available on our YouTube channel: | ||
+ | |||
+ | {{youtube> | ||
* **#** - All variables in Macro language started from **#** symbol and have number (address) in range 0...16000. However variables address higher than 1000 are considered as System Global Variables. It's possible to read an write to Global Variables but User should understand this may change system behavior. Variables in range 1...999 are User space variables. This variables are not changer by CNC control, modifying this variables does not affect system work | * **#** - All variables in Macro language started from **#** symbol and have number (address) in range 0...16000. However variables address higher than 1000 are considered as System Global Variables. It's possible to read an write to Global Variables but User should understand this may change system behavior. Variables in range 1...999 are User space variables. This variables are not changer by CNC control, modifying this variables does not affect system work | ||
Line 8: | Line 12: | ||
* ***** multiplication | * ***** multiplication | ||
* **/ | * **/ | ||
- | * **%** modulo | + | * **REM** modulus operator - remainder |
+ | * **MOD** | ||
* __Logic operators__ | * __Logic operators__ | ||
* **GT** - greater than | * **GT** - greater than | ||
Line 59: | Line 64: | ||
</ | </ | ||
- | === M140 - Homing for X coordinat === | + | ==== M140 - Homing for X coordinat |
<code C M140.plc> | <code C M140.plc> | ||
Line 98: | Line 103: | ||
if [ #10 LT 100 ] 20 (Repeat 100 times) | if [ #10 LT 100 ] 20 (Repeat 100 times) | ||
</ | </ | ||
- | + | // | |
+ | Quick note: in system macros (especially in which coordinates are reassigned and/or reset), G0 positioning codes must be used.// | ||
mycnc/macro_language.txt · Last modified: 2022/03/29 16:15 by ivan