Search found 4 matches

by Frak89
07 May 2014 03:12
Forum: DOS Batch Forum
Topic: Variable replacement
Replies: 7
Views: 5883

Re: Variable replacement

Aacini wrote:Antonio

penpen wrote:penpen


Thank you very much for both! :D
Now the code is fully functional as I expected..
;)
by Frak89
06 May 2014 09:35
Forum: DOS Batch Forum
Topic: Variable replacement
Replies: 7
Views: 5883

Re: Variable replacement

penpen Yes, but I don't want to have "G1" and "E" or "F", just only X, Y and Z. Store the numbers following by the letter of the variable and put into the robtarget Pn:=[[X,Y,Z],...; And I want to have Z1 -- store Z1 X1 Y1 -- store them, create robtarget P1 and store v...
by Frak89
06 May 2014 08:43
Forum: DOS Batch Forum
Topic: Variable replacement
Replies: 7
Views: 5883

Re: Variable replacement

(...) G1 Z5 F5000 ; lift nozzle (...) I want to delete or avoid the lines with ";" and replace in sequence the values for each X, Y and Z like this: I'm not sure what you want to do, as for example the fourth line contains a Z value ("Z5"), too. Do you want to process only lines...
by Frak89
06 May 2014 07:27
Forum: DOS Batch Forum
Topic: Variable replacement
Replies: 7
Views: 5883

Variable replacement

Hello, I am trying to create a script which read from a file for example composition.gcode and I want to extract values that starts with X, Y and Z. For example in this file there is a structure like this: G21 ; set units to millimeters M104 S200 ; set temperature G28 ; home all axes G1 Z5 F5000 ; l...