Digital Dream Technology support

Title: Programming in NC-Code [Print This Page]

Author: Philipp    Time: 2020-2-3 17:56
Title: Programming in NC-Code
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

Author: enjoy_cnc    Time: 2020-2-4 12:26
Hello there

Sorry, I will update the macro programming content as soon as possible。

Please follow the manuals at the following links:


http://bbs.ddcnc.com/forum.php?mod=viewthread&tid=262&extra=page%3D1

  2. Macro Programming Introduction


Author: enjoy_cnc    Time: 2020-2-4 22:26
Hello there
# 600 # 601 # 602 belongs to the parameter macro address (# 500- # 999)

# 500- # 999: Correspond to parameter values 0-499 respectively;

# 600: 100 X manual high speed
# 601: 101 Y manual high speed
# 602: 102 Z Manual High Speed


Author: Philipp    Time: 2020-2-6 06:00
Now i got it. Thanks a lot!
Author: Philipp    Time: 2020-2-24 16:26
Hi,

the program works fine now. An optimization would still be an editing function of the program on the controller. Currently, to edit the program you always have to go to the PC. Is this planned for the future? Alternatively it would be very helpful if you could only edit the user variables e.g. #0-49 in the configuration menu.

Greetings
Philipp
Author: enjoy_cnc    Time: 2020-2-24 20:36
Last edited by enjoy_cnc In 2020-2-24 20:40 Editor

Hello there
  DM500 / M150 currently does not support editing functions. The system with editing functions is M630. This controller can provide perfect professional CNC operation.
     M630 application video is as follows:

https://www.youtube.com/watch?v=kubmnDwayNw   
https://www.youtube.com/watch?v=t95v3CkMY30

     The variables in # 50- # 499 # 1000- # 1999 can be customized by users except the system occupation.







Welcome Digital Dream Technology support (http://bbs.ddcnc.com/) Powered by Discuz! X3