Digital Dream Technology support

Title: DDCS V4.1 G-code standard [Print This Page]

Author: KIT67    Time: 2024-10-15 15:07
Title: DDCS V4.1 G-code standard
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)






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