DDCS V4.1 G-code standard - CNC technology - Digital Dream Technology support
View: 41|Reply: 0
Print Previous Topic Next Topic

DDCS V4.1 G-code standard

[Copy Link]

1

Threads

1

Posts

7

Credits

Newbie Member

Rank: 1

Credits
7
Jump to the specified floor
Landlord
Posted at 2024-10-15 15:07:04 | Only Author Replies reward |Descending browser |Read mode
What G-code standard does the DDCS V4.1 controller support?

Is the following code possible to execute?

(Example using macros to calculate the rotation angle of a coordinate system)
G21 (Work in millimeters)
G90 (Absolute positioning)
G0 Z10 (Raising the tool to a safe height)

(First point measurement)
G0 X10 Y10 (Bringing the probe to the first point)
G38.2 Z-10 F100 (Lowering to touch the first point)
#100 = #500 (Saving the X coordinate of the first point to variable #100)
#101 = #501 (Saving the Y coordinate of the first point to variable #101)

(Lift and move to the second point)
G0 Z10 (Raising the touch probe)
G0 X70 Y15 (Raising the touch probe to the second point)
G38.2 Z-10 F100 (Lowering to touch the second point)
#102 = #500 (Saving the X coordinate of the second point to variable #102)
#103 = #501 (Saving the Y coordinate of the second point to variable #103)

(Calculate the rotation angle)
#110 = [#103 - #101] (Calculate Y difference)
#111 = [#102 - #100] (Calculates the X difference)
#112 = [ATAN[#110 / #111]] (Calculate rotation angle via arctangent)

(Rotate the coordinate system by the calculated angle)
G68 X10 Y10 R#112 (Rotate coordinate system around point (X10, Y10) by angle #112)

G0 Z10 (Lift to safe height)

Translated with DeepL.com (free version)

Reply

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