Getting the current axes coordinates - On 2 Page - DDCSV2.1 - Standalone CNC Motion Controller - Digital Dream Technology support
12
Return to List Add thread
Author: Nikolay81
Print Previous Topic Next Topic

Getting the current axes coordinates

[Copy Link]

8

Threads

333

Posts

1040

Credits

Super Moderator

Rank: 8Rank: 8

Credits
1040
11#
Posted at 2018-10-30 06:42:48 | Only Author
#0-#49 is a subroutine local variable that you can use at will. If you need to use system parameters in GCode, you can use #2400-#2500, you can modify them in the configuration page to change the behavior of GCode, of course you need to add relevant parameter configuration in eng (rus, chs) file .
Reply Support Opposition

Use props Report

15

Threads

139

Posts

517

Credits

Senior Member

Rank: 4

Credits
517
12#
 Author| Posted at 2018-10-30 17:43:05 | Only Author
ytliu Posted at 2018-10-30 06:42
#0-#49 is a subroutine local variable that you can use at will. If you need to use system parameters ...

Thanks Ytliu.
And the value of the system parameters can be read from the G-code, or not?
For example, I need to read the value of the parameter #80 to use it for F.
Option G1 X10 F # 80 does not work.
If I write the line #2401=#80 at the end of the "eng" file, and then execute the code G1 X10 F#2401 - this does not work either.
Is there a way to find out the value of #80 from G-code?
Perhaps through slib.nc is this possible?
Reply Support Opposition

Use props Report

8

Threads

333

Posts

1040

Credits

Super Moderator

Rank: 8Rank: 8

Credits
1040
13#
Posted at 2018-10-30 18:34:00 | Only Author
Nikolay81 Posted at 2018-10-30 17:43
Thanks Ytliu.
And the value of the system parameters can be read from the G-code, or not?
For exam ...

Correspondence between parameter number and macro variable:
The 0-499 parameter corresponds to the #500-#999 macro variable;
The 2000-2499 parameter corresponds to the #2000-#2499 macro variable;
Reply Support Opposition

Use props Report

15

Threads

139

Posts

517

Credits

Senior Member

Rank: 4

Credits
517
14#
 Author| Posted at 2018-10-30 19:29:20 | Only Author
Many thanks to Ytliu. Now everything is clear.
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