Programming in NC-Code - DM500 - Handheld 3-4 Axis CNC Moiton Contr - Digital Dream Technology support
View: 6214|Reply: 5
Print Previous Topic Next Topic

Programming in NC-Code

[Copy Link]

2

Threads

6

Posts

30

Credits

Newbie Member

Rank: 1

Credits
30
Jump to the specified floor
Landlord
Posted at 2020-2-3 17:56:26 | Only Author Replies reward |Descending browser |Read mode
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
Reply

Use props Report

5

Threads

56

Posts

316

Credits

Super Moderator

Rank: 8Rank: 8

Credits
316
QQ
Sofa
Posted at 2020-2-4 12:26:49 | Only Author
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

Reply Support Opposition

Use props Report

5

Threads

56

Posts

316

Credits

Super Moderator

Rank: 8Rank: 8

Credits
316
QQ
Bench
Posted at 2020-2-4 22:26:44 | Only Author
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

Reply Support Opposition

Use props Report

2

Threads

6

Posts

30

Credits

Newbie Member

Rank: 1

Credits
30
Floor
 Author| Posted at 2020-2-6 06:00:24 | Only Author
Now i got it. Thanks a lot!
Reply Support Opposition

Use props Report

2

Threads

6

Posts

30

Credits

Newbie Member

Rank: 1

Credits
30
5#
 Author| Posted at 2020-2-24 16:26:10 | Only Author
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
Reply Support Opposition

Use props Report

5

Threads

56

Posts

316

Credits

Super Moderator

Rank: 8Rank: 8

Credits
316
QQ
6#
Posted at 2020-2-24 20:36:57 | Only Author
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.


Reply Support Opposition

Use props Report

You need to log in before you can reply Login | Register now

This forum Credits Rules

Shenzhen Digital Dream Numerical Technology Co., Ltd. support
Adress:507,A Building,Leibo Industry Zone,No. 22 Jinxiu East Road,Kengzi Street,Pingshan district,Shenzhen City,P.R. of China
Phone:13244704799
E-mail:info@ddcnc.com

TEL

0755-87654321

Wchat

Website designed by DigitalDream Technology Support
Quick Reply Back to top Back to list