User Tools

Site Tools


wiki:en:ppedit

Differences

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

Link to this comparison view

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]
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:
  
-<​parameter> ​ *()+''​%%<​parameter> ​ *()%%''​
  
 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,​ a variable or an integer between the < and > signs. These will be created in the same way as a parameter of the post processor. See example below! Instead of the name of a parameter we can write a calculation,​ a variable or an integer between the < and > signs. These will be created in the same way as a parameter of the post processor. See example below!
  
-''<​10>​ \\ +''​%%<​10> ​%%'' ​\\ 
-<​5+toolnr>​ \\ +''​%%<​5+toolnr> ​%%'' ​\\ 
-<V1> \\ +''​%%<​V1> ​%%'' ​\\ 
-<​V1+toolnr>​ ''​ \\+''​%%<​V1+toolnr> ​%%''​ \\
  
 ==== Example ==== ==== Example ====
Line 477: Line 477:
  
 Before: \\ Before: \\
-''​M104 Set new X-pos              : &​V1<​ystopa>​("​ X#​x"​)''​+''​%%M104 Set new X-pos              : &​V1<​ystopa>​("​ X#x")%%''​
  
 After: \\ After: \\
-''​M104 Set new X-pos              : &​V1<​ystopa*2>​("​ X#​x"​)''​+''​%%M104 Set new X-pos              : &​V1<​ystopa*2>​("​ X#x")%%''​
  
 //- 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: \\
-''​M104 Set new X-pos              : &​V1<​xstopa>​("​ X#x") \\ +''​%%M104 Set new X-pos              : &​V1<​xstopa>​("​ X#​x"​) ​%%'' ​\\ 
-M105 Set new Y-pos              : &​V2<​ystopa>​("​ Y#x") \\ +''​%%M105 Set new Y-pos              : &​V2<​ystopa>​("​ Y#​x"​) ​%%'' ​\\ 
-M106 Set new Z-pos              : &​V3<​zstopa>​("​ Z#x") ''​ \\+''​%%M106 Set new Z-pos              : &​V3<​zstopa>​("​ Z#​x"​) ​%%''​ \\
  
 After: \\ After: \\
-''​M104 Set new X-pos             : &​V1<​xstopa>​("​ X#​d0#​x"​) \\ +''​%%M104 Set new X-pos             : &​V1<​xstopa>​("​ X#​d0#​x"​) ​%%'' ​\\ 
-M105 Set new Y-pos             : &​V2<​ystopa>​("​ Y#​d0#​x"​) \\ +''​%%M105 Set new Y-pos             : &​V2<​ystopa>​("​ Y#​d0#​x"​) ​%%'' ​\\ 
-M106 Set new Z-pos             : &​V3<​zstopa>​("​ Z#​d0#​x"​) ''​ \\+''​%%M106 Set new Z-pos             : &​V3<​zstopa>​("​ Z#​d0#​x"​) ​%%''​ \\
  
 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:
  
-''​M6 Clockwise arc < than 180° \\ +''​%%M6 Clockwise arc < than 180° %%'' ​\\ 
-: M108 M103 " G02" M104 M105 <​xcenti>"​ I#x" <​ycenti>​\ ​   " J#x" M101 M109''​+''​%%: M108 M103 " G02" M104 M105 <​xcenti>"​ I#x" <​ycenti>​\ ​   " J#x" M101 M109 %%''​
  
-''​M7 Clockwise arc > than 180°:​ M6''​ \\+''​%%M7 Clockwise arc > than 180°: M6%%''​ \\
  
-''​M8 C.Clockwise arc < than 180° \\ +''​%%M8 C.Clockwise arc < than 180° %%'' ​\\ 
-: M108 M103 " G03" M104 M105 <​xcenti>"​ I#x" <​ycenti>​\ ​   " J#x" M101 M109 ''​\\+''​%%: M108 M103 " G03" M104 M105 <​xcenti>"​ I#x" <​ycenti>​\ ​   " J#x" M101 M109 %%''​\\
  
-''​M9 C.Clockwise arc > than 180°: M8 ''​+''​%%M9 C.Clockwise arc > than 180°:​ M8 ​%%''​
  
 To look like this: To look like this:
wiki/en/ppedit.txt · Last modified: 2019/10/11 13:33 by admin