|
Hello there,
in my NC-Code i am using WHILE cycles. Finally they work, after i found some workarounds.
For example, i do calculations inside the WHILE cycle like:
N10 G01 X[#600+#601*#602]
N15 #601= #601+1
so #601 is like a counter variable.
The problem is, that block N15 is already processed during movement of block N10. Probably, due to the look ahead function.
To solve this, i added multiple G04P0 commands
N10 G01 X[#600+#601*#602]
N11 G04P0
N12 G04P0
N13 G04P0
N14 G04P0
N15 G04P0
N16 #601= #601+1
Now, the code works fine. But it is still a hacky workaround. I would like to know, if there is a command to stop the look ahead function.
For siemens controls this command would be
N10 G01 X[#600+#601*#602]
N11 STOPRE
N15 #601= #601+1
Additionally, it would be really nice to know, which #variables are free to use and not reserved for internal functions.
Thanks a lot.
Best Regards
Philipp
|
|