mycnc:macro_language
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mycnc:macro_language [2018/10/22 10:43] – pupalaiser | mycnc:macro_language [2022/03/29 16:15] (current) – 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 76: | Line 81: | ||
G10 L80 P7391 Q0 (Homing Flag) | G10 L80 P7391 Q0 (Homing Flag) | ||
</ | </ | ||
+ | // | ||
+ | Quick note: in system macros (especially in which coordinates are reassigned and/or reset), G0 positioning codes must be used.// | ||
+ | |||
==== Repeat Test ==== | ==== Repeat Test ==== | ||
Line 98: | Line 106: | ||
if [ #10 LT 100 ] 20 (Repeat 100 times) | if [ #10 LT 100 ] 20 (Repeat 100 times) | ||
</ | </ | ||
- | |||
mycnc/macro_language.txt · Last modified: 2022/03/29 16:15 by ivan