This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
wiki:en:ppedit [2019/10/11 13:31] admin [Lists of control codes] |
wiki:en:ppedit [2019/10/11 13:33] (current) admin [REPETITIONS (LOOPS)] |
||
|---|---|---|---|
| Line 279: | Line 279: | ||
| If we want a pair of brackets to be repeated controlled by a parameter we write: | If we want a pair of brackets to be repeated controlled by a parameter we write: | ||
| - | < | + | '' |
| which means that the contents of the brackets will be repeated as many times as the contents of the parameter. | which means that the contents of the brackets will be repeated as many times as the contents of the parameter. | ||
| Line 285: | Line 285: | ||
| Instead of the name of a parameter we can write a calculation, | Instead of the name of a parameter we can write a calculation, | ||
| - | ''< | + | '' |
| - | < | + | '' |
| - | <V1> \\ | + | '' |
| - | < | + | '' |
| ==== Example ==== | ==== Example ==== | ||
| Line 477: | Line 477: | ||
| Before: \\ | Before: \\ | ||
| - | '' | + | '' |
| After: \\ | After: \\ | ||
| - | '' | + | '' |
| //- How do I get a decimal point after all numbers, even integers? My machine requires this otherwise the numbers will be interpreted as thousandths. | //- How do I get a decimal point after all numbers, even integers? My machine requires this otherwise the numbers will be interpreted as thousandths. | ||
| Line 490: | Line 490: | ||
| Before: \\ | Before: \\ | ||
| - | '' | + | '' |
| - | M105 Set new Y-pos : & | + | '' |
| - | M106 Set new Z-pos : & | + | '' |
| After: \\ | After: \\ | ||
| - | '' | + | '' |
| - | M105 Set new Y-pos : & | + | '' |
| - | M106 Set new Z-pos : & | + | '' |
| It could be that coordinate values are written out in several places in the post processor and then you will have to find these and enter the code #d0 there too. | It could be that coordinate values are written out in several places in the post processor and then you will have to find these and enter the code #d0 there too. | ||
| Line 507: | Line 507: | ||
| Change the macros M6-M9 from looking like this: | Change the macros M6-M9 from looking like this: | ||
| - | '' | + | '' |
| - | : M108 M103 " G02" M104 M105 < | + | '' |
| - | '' | + | '' |
| - | '' | + | '' |
| - | : M108 M103 " G03" M104 M105 < | + | '' |
| - | '' | + | '' |
| To look like this: | To look like this: | ||