After this page you can tell which G and M codes of your program a DDCS V4.1 runs, according to its manuals, and what DryRun does with each. You can also decide which of the points the manuals leave open to test on your controller, with the test programs in section 5.
DryRun follows this page for a machine whose Controller is DDCS V4.1. It was written from the manuals and forum reports, not on a real controller. Where the manuals are silent or disagree, DryRun runs the likeliest reading and adds a warning that ends in — behaviour on DDCS not confirmed.
How sure each statement is
Each statement names its source. Page numbers are the printed ones; the links are in section 8.
- [M41] The DDCS V4.1 User's Manual. Its two revisions disagree on the canned cycles: [M41a] "V1 20220914" (92 pages) and [M41b] "updated 230129" (93 pages).
- [M31] The DDCS V3.1 manual V3 (20220811). V4.1 is "updated from DDCS V3.1 on software and hardware" [M41a p.4]. Its G-code chapter is fuller, but it describes another firmware: likely for V4.1, not certain.
- [MEX] The DDCS-Expert manual V1. Its code table is close to the V3.1 one.
- [F] A forum or third-party report. The Digital Dream forum was unreachable, so its content comes from search snippets.
- [I] Inference from the above.
The V4.1 code table is short and mostly copied from V3.1. It calls itself a "comprehensive Fanuc G code set" [M41a p.4]. It does not document modal groups, comments, unknown codes, or how F applies to the rotary axis.
1. Code table
In the DryRun column, Runs means simulated. Ignored means the code is dropped and the rest of the line runs. Skipped means the whole line does not run, so positions after it may differ from the controller. Error means the line is skipped and counted as an error. The message column gives the warning or error DryRun shows, shortened with ….
1.1 G codes
| Code | On the controller | In DryRun | Message |
|---|---|---|---|
| G0 | Rapid at one speed, #103 (default 3000). #120 chooses a straight line (default) or each axis on its own, a dog-leg [M41 p.87] | Runs; the path follows the machine's G0 path | — |
| G1 | Linear feed. F is ignored while #101 = 1, the factory default (3.1) [M41 p.87] | Runs; with Ignore program F on, at the Default feed | the controller ignores programmed F (#101 = default speed) … |
| G2, G3 | Arc by R, or by I J K from the start point; a Z word makes a helix (section 2) [M41 p.87; M31 p.75] | Runs | helical arc — behaviour on DDCS not confirmed |
| G4 | Dwell with P in ms: G4 P10000 is 10 s. X in seconds is not documented [M41 p.87; M31 p.75, p.80] |
Runs; P in ms, or in seconds with G04 P in | G4 X (seconds) is not documented for DDCS … |
| G12, G13 | G12 I<r>, a full circle; V3.1 only [M31 p.75] |
Skipped | G12: not simulated; line skipped … |
| G15, G16 | Polar coordinates off, on [M41 p.87] | Ignored | G16: not simulated; positions after this line may differ from the controller |
| G17, G18, G19 | Plane [M41 p.87] | Runs | — |
| G20, G21 | Inch, mm. How they combine with the machine units #001 is not documented; users report inaccuracy in inch mode [M41 p.87, p.76; F] | Runs | — |
| G28 | G91 G28 X10 Y0 Z0: through the given point, "then the XYZ axes will go to the machine axis 0". V3.1: "Works only with G91". Parameters #800–#803, "Reference Point 1 (G28)", say otherwise [M41 p.87; M31 p.76] |
Runs: through the given point, then the named axes to machine 0. Without axis words nothing moves | G28 returns to machine 0 (DDCS may use reference point #800-#803) … |
| G30 | G30 P1–P3 go to the reference points #805–#818; the axes must be homed [M41 p.87, p.82] |
Skipped | as G12 |
| G31 | Probing, with its own L, Q and K words: G91 G31 Z-1000 L0 Q1 K0 F100 [M41 p.87] |
Skipped | as G12 |
| G40 | Cutter compensation off [M31 p.76] | Runs | — |
| G41, G42 | G41 D<n>. Not in the V4.1 code table, though its feature list claims it; V3.1: "The function does not work yet" [M41 p.6; M31 p.76; MEX] |
Ignored: the path is not compensated | G41: cutter radius compensation is not simulated; path is uncompensated … |
| G43, G49 | Tool length offset H from a table of 16 (#264–#279); cancel [M41 p.46, p.85] | Runs: H n takes tool n's length from the setup | H17 is out of range 0..16 |
| G44 | V3.1 and Expert only: "does not work yet" [M31 p.76] | Ignored | G44: G44 is documented as not working on DDCS; ignored |
| G53 | Machine coordinates. Needs homed axes, or the "system alarms and exits" [M41 p.87; M31 p.76] | Runs; homing is not checked | G53 with G1 active: the move runs at feed rate |
| G54–G59 | Six work offsets, set on the screen. No G59.1–G59.3 and no G10 are documented [M41 p.87] | Runs, from the setup's work zeros | — |
| G68, G69 | Rotation G68 X10 Y5 R45; cancel [M41 p.87] |
Ignored | as G16 |
| G73, G81, G82, G83 | Drilling cycles. The manuals disagree on Z, R, K, L and P (3.4) [M41a p.88–89; M41b p.88; M31 p.76] | Runs as on a Fanuc: Z and R absolute, G98 / G99 | canned cycle G81: DDCS V4.1 manuals disagree on Z/R semantics; simulated as Fanuc … |
| G74, G84 | Rigid tapping after M29, with a servo spindle only [M41 p.88–89] | Skipped | as G12 |
| G76, G85, G86, G87, G88, G89 | Not documented | Skipped | as G12 |
| G80 | Cycle cancel. Only in V3.1's examples, but every post writes it [M31 p.76] | Runs | — |
| G90, G91 | Absolute, incremental [M41b p.88; M31 p.77] | Runs | — |
| G90.1, G91.1 | Arc centres absolute, incremental; V3.1 and Expert only, and the V3.1 table contradicts itself [M31 p.77; MEX] | Ignored | as G16 |
| G92 | Shifts the coordinate system; no G92.1 is documented [M41b p.88; M31 p.77] | Runs | — |
| G93 | Inverse time; V3.1 only, absent from both V4.1 manuals (3.3) [M31 p.77] | Ignored: the move is timed as G94 | G93: inverse-time feed is not documented for DDCS V4.1; move timed as G94 … |
| G94 | Feed per minute [M31 p.77] | Runs | — |
| G98, G99 | Cycle return to the start level, to R [M41b p.88; M31 p.77] | Runs | — |
| G102, G103, G110, G111, G112 | Ellipse and pocket macros of V3.1 [M31 p.78] | Skipped | as G12 |
| G128 | G128 X1 Y1 Z1 homes those axes [M41b p.88] |
Skipped | as G12 |
| G153 | "Analog G53 … with speed F"; V3.1 [M31 p.78] | Skipped | as G12 |
| Any other G code, G10 and G59.1 included | A "parsing error prompt" stops the program; which codes cause it is not documented [M41a p.32] | Error | G10: unknown code on DDCS V4.1; line skipped |
1.2 M codes
| Code | On the controller | In DryRun | Message |
|---|---|---|---|
| M0 | Pause until Start [M41 p.90] | Runs; the simulation does not pause | — |
| M1 | Optional stop; Expert only [MEX] | Ignored | M1: optional stop is not in the DDCS V4.1 table; ignored |
| M2 | Not documented for any DDCS | Runs as the program end | M2 is not documented for DDCS; treated as program end |
| M3, M4, M5 | Spindle clockwise, counter-clockwise, stop. M4 is not in the table, but its output #128 exists [M41 p.90, p.79] | Runs | — |
| M6 | Stops and waits for Cycle Start; there is no tool changer. With #905 it first goes to reference point 1 [M41 p.90] | Runs: switches to the T tool with no motion. The tool must be in the setup's tools | tool 3 is not in the setup tool table |
| M7 | Not documented; only the M8 output exists (#129) | Ignored | M7: mist output does not exist on DDCS V4.1; ignored |
| M8, M9, M10, M11 | Coolant on, off; lubrication on, off [M41 p.90] | Runs | — |
| M29 | Rigid tapping mode, before G74 / G84 [M41 p.90] | Ignored | M29: not simulated |
| M30 | Program end [M41 p.90] | Runs; a program without it gets a warning | program has no M30 |
| M47 | Repeats the program from its first line, forever [M41 p.90] | Runs once | M47 repeats the program forever on the controller; simulated once |
| M98, M99 | Subprogram call and return "within the current part program file". Needs #122 = Enable; the default is Disable [M41 p.90, p.78–79] | Runs: M98 P100 calls O100 … M99 in the same file, L3 three times, up to 8 calls deep |
M98/M99 need #122 Macro programming mode = Enable on the controller (default Disable) … |
| M101, M102, M110 | Probe monitoring on, off; stop and beep. V3.1 [M31 p.79] | Ignored | M101: not simulated |
| M105–M108 | Home X, Y, Z, A [M41 p.90] | Skipped | M105: not simulated; line skipped … |
| Any other M code | Handed to slib-m.nc, your own M-code file on the controller [M41 p.73; I] |
Ignored | M50: custom M code (slib-m.nc on the controller) is not simulated |
1.3 Other words
- F is the feed in units per minute, S the speed in rpm, T the tool that M6 takes. H and D are table numbers 1–16; DryRun reports a T or an H above 16 as an error.
- A line with a macro (
#1 = 5,[ ],IF … GOTO) is skipped:macros and # variables are not simulated; line skipped. The macro words themselves are documented for V3.1 [M31 p.80]. - The decimal separator is
.; "Comma - does not work" [M31 p.80]. DryRun reports a comma as an error. - DryRun reads the letters G M X Y Z A I J K R F S T H D P Q L N O. Any other is an error, for example
unsupported word "B". - A letter other than G or M written twice on a line is an error. So are two G codes of one group, such as
G0 G1. - Axis words before any G0, G1, G2 or G3 move as G0, with a warning.
- A program starts at the machine's Home position in G54, G90, G17 and G21, with the setup's first tool in the spindle. The real machine starts wherever it stands.
2. Arcs
- R and I J K both work for G2 and G3, in G17, G18 and G19 [M41 p.87]. I J K are measured from the start point. The V3.1 table says "relative to the end point", but its own example works only from the start, so that is a translation error [M31 p.75; I].
- A Z word in a G17 arc makes a helix [M31 p.75]. Cara CNC reports that "DDCS 2.1 and 3.1 controllers have difficulties handling helical moves", with a growing depth error [F]. DryRun runs the helix exactly and adds a warning.
- The sign of R for arcs over 180°, full circles with R, and the tolerance between the start and end radius are not documented. DryRun reads R below 0 as the long arc, with a warning. It reports an I J K arc whose radii differ by more than 0.002 mm as an error (tests T9 and T10). An R arc that ends where it starts is an error too: write a full circle with I J K.
- The controller slows arcs down (#111, #112) [M41 p.78–79]. DryRun does not, so its time for arcs is a little short.
3. Where the DDCS differs from a Fanuc
3.1 F can be ignored
Parameter #101 "Speed Selection" is 0 for F from the program or 1 for the default speed #102. The factory setting is 1, at 3000 units per minute [M41 p.78]. Set the machine's Ignore program F and Default feed to match. While F is ignored, DryRun says so once per program.
3.2 Feed limits
The controller caps the feed (#113, per axis #114–#117, Z down #119) and accelerates at #104 [M41 p.78–79]. DryRun models none of this. Its time estimate uses the programmed or default feed and the rapid speed, without acceleration.
3.3 The rotary axis
- The fourth axis is A or B, by #039 [M41 p.76]. DryRun's rotary axis is always A.
- A is in degrees. With #036 on, the controller wraps it between #037 and #038: "If the command is 361°, the actual operation is to run 1°" [M41 p.76–77]. DryRun does not wrap: A is a linear axis in degrees, and a machine with A wraps at 360° on gets a warning.
- Feed on a move with X, Y, Z and A together. V4.1 says only "Tangential Velocity is Compound Velocity" [M41 p.78]. V3.1 is explicit:
G94 G01 X5 Y5 A180 F3000"will move at a synthetic speed of no more than 3000 units/min" [M31 p.77]. So F applies to the length over all four axes, with degrees counted as millimetres [I]. DryRun times such moves this way by default. The machine's A feed setting switches to F over the linear axes only, as LinuxCNC does. It changes the time, not the path (test T1). - G93 is documented only for V3.1 firmware from 2019-05-27-111 [M31 p.77]. One user ran Fusion's "FANUC – Inverse Time and A-axis" post on a DDCS [F]. On V4.1 it stays unconfirmed, and DryRun times G93 moves as G94 (test T2).
- An arc cannot include A. DryRun reports an A word in G2 or G3 as an error.
3.4 Canned cycles: the manuals disagree
| M41a (2022-09) | M41b (2023-01) | M31 and MEX | |
|---|---|---|---|
| Cycles listed | G73, G74, G81, G82, G83, G84 | G73, G74, G84 | G73, G81, G82, G83, G74, G84 |
| Z | "Position of the Z axis at the bottom of hole" | "distance between R position and hole bottom" | "distance from R to the bottom" |
| R | "Position of the R plane" | "distance between initial position and R point" | "drilling depth (usually 0)" |
| Repeat count | L | K | K |
| K in G73 and G83 | retract or clearance | repeats | repeats |
| P in G82 | seconds | — | milliseconds |
DryRun runs G73, G81, G82 and G83 as a Fanuc does: Z and R are absolute, G98 and G99 choose the return level, K or L is the repeat count. G73 retracts 1 mm between pecks, and G83 comes back to 1 mm above the last depth.
Each cycle gets the warning in the table above. K in G73 or G83, any L and a P in G82 get one more each. A cycle in G91 or outside G17 is skipped, so in DryRun every repeat drills the same hole, with a warning. Settle Z and R with test T3.
3.5 Other differences
- M6 changes nothing by itself. It pauses for you to change the tool. DryRun assumes Z is measured again after each change (the machine's Tool change setting, Touch off). A fixed tool setter in your own M6 macro is the same case, but DryRun runs no macro, so the macro's moves are not simulated or checked. A
G43 Hin the program then gets a warning: the controller would add its own length on top. - Moves that are not in the program. The controller can lift Z at start, pause and resume (#900–#904) [M41 p.78]. DryRun does not simulate them.
- G53 and G30 need homed axes, or the controller alarms. DryRun does not check homing.
- M30 between the programs of a setup. The manual says only that M30 ends the program [M41 p.90]. DryRun assumes what GRBL does: the next program starts in G1, G17, G90, G94 and G54 with the spindle off. The units, the length offset, G92, F, S, the tool and the position stay. To check, end a program with
G91 G55andM30, start the next withG0 X10and see where it goes.
4. Controller parameters and DryRun's settings
The parameters are on the controller's Parameters page [M41 p.75]. DryRun cannot read the controller's setting file, so copy these values into the machine's settings by hand.
| DDCS parameter | Factory value | DryRun setting |
|---|---|---|
| #103 G0 speed | 3000 | Rapid feed |
| #120 G0 mode | Interpolation | G0 path |
| #101 speed selection, #102 default speed | default, 3000 | Ignore program F, Default feed |
| #036 A axis cyclic encoding | No | A wraps at 360° (not simulated) |
| #235–#243 soft limits | −1200 / −600 / −300 / 0 and 1200 / 600 / 300 / 0 | the travel of each axis of the machine |
| #264–#279 tool lengths | 0 | the lengths of the setup's tools |
| G54–G59, edited on the screen [M41 p.35–36] | — | the setup's work zeros |
DryRun has no setting for the feed caps and accelerations (#104, #113–#119) or the arc parameters (#109–#112). The same goes for the G28 and G30 reference points (#800–#818), homing (#199–#225), backlash (#254–#262) and the spindle (#190–#192).
5. Assumed, and how to check it on your controller
Run each test with the spindle off, in air or in the controller's Simulation mode (F1 on the File page) [M41 p.57–58]. Note the firmware version: the two V4.1 manuals already differ.
- T1. F on a move with A applies over all four axes.
- Run
G21 G90 G94 G1 X0 A0 F1000, then timeG1 X10 A90 F100. - About 54 s: as DryRun assumes. About 6 s: F applies to X, Y, Z only; set A feed to Linear axes only.
- Run
- T2. G93 is not supported.
- Run
G93 G1 A90 F6, thenG94. - It runs for 10 s, stops with a parse error, or is ignored.
- Run
- T3. A cycle's Z and R are absolute.
- Run
G90 G0 X0 Y0 Z10,G98 G81 X0 Y0 Z-5 R2 F100,G80. - The bottom is at Z−5: absolute, as in DryRun. At Z−3: measured from R, and DryRun's depths are wrong for your controller.
- Run
- T4, T5. K is a repeat count; P in G82 is in ms.
- Run
G83 X0 Y0 Z-6 R1 Q2 K1 F100and watch whether K changes the clearance or the count. - Run
G82 X0 Y0 Z-1 R1 P2 F100: a 2 s dwell means seconds; set G04 P in to Seconds.
- Run
- T6. G28 goes to machine 0.
- Run
G91 G28 Z0. - Z stops at machine 0, or at the value of #802.
- Run
- T7, T8. Unknown codes stop the controller;
;, lower case,/and N numbers are accepted.- Run one short file for each of
G85,G41 D1,M7,M2,G10 L2 P1 X0,G59.1. - Run a file with a
;comment, a(comment), a%first and last line,N10,O1000,g1 x1, a line starting with/, andG1X1Y1. - Note which give the error prompt, which are skipped silently and which run.
- Run one short file for each of
- T9, T10. R below 0 is the arc over 180°; the radius tolerance is 0.002 mm.
- From X0 Y0 run
G2 X10 Y0 R-10: the long arc, or an error. - Run
G2 X10 Y0 I5.01 J0: it runs, or gives an error.
- From X0 Y0 run
- T11. A does not wrap.
- Turn #036 on, run
G0 A350, thenG0 A370. Note the direction and the display.
- Turn #036 on, run
- T12. Subprograms need #122 = Enable.
- Run
M98 P100withO100 … M99at the end of the file, with #122 on and off.
- Run
- T13. G41 and G42 do nothing.
- Run a small square with
G41 D1: the path is offset, or it is not.
- Run a small square with
- T14. File names.
- Copy the same program as
.nc,.tap,.txt,.gcodeand.ngcand see which the file browser shows.
- Copy the same program as
Also unknown is what slib-g.nc and slib-m.nc on your controller contain [M41 p.73]. They define what your custom M codes do.
6. File format
- The manual gives no size limit for a file [M41 p.5]. A line-length limit is not documented.
( … )comments are documented [M31 p.79].;comments, lower case and a leading/are not: DryRun accepts each with one warning per program, and a line that starts with/runs. An unclosed(or a)without(is an error. A%line is ignored, and nothing after a second%line runs.- The controller shows the file's line number and can start from a given line [M41 p.49]. One user had to turn N numbers off in the Fusion post [F]. DryRun accepts N with a warning that suggests the same.
7. CAM posts
Autodesk's library has no Digital Dream post, and the manual ships none, though it names Fusion 360, Aspire, ArtCam and others as compatible [M41 p.5]. Users report two that work: "FANUC – Inverse Time and A-axis" with sequence numbers off, and "Avid CNC EX 3 Axis" with helical moves off [F]. Run test T2 before you rely on an inverse-time post.
8. Sources
- DDCS V4.1 manual 20220914: https://bulkman3d.com/wp-content/uploads/2025/05/DDCS-V4.1-Users-manual.pdf ; mirror https://www.hlt-cnc.com/uploads/38006/files/DDCS-V4.1-English-manual.pdf
- DDCS V4.1 manual updated 230129: http://www.ddcnc.com/?m=home&c=View&a=index&aid=193&lang=en
- DDCS V3.1 manual V3: http://www.ddcnc.com/?m=home&c=View&a=index&aid=191&lang=en
- DDCS-Expert manual V1: http://www.ddcnc.com/?m=home&c=View&a=index&aid=166&lang=en
- Cara CNC, "Post Processor for DDCS Offline Controllers": https://caracnc.com/p4ddcs/
- MyCNCUK, "DDCSV with Fusion 360" (search snippet only): https://www.mycncuk.com/threads/13423-DDCSV-with-Fusion-360
- DDCS forum, "DDCS V3.1 SUBPROGRAM" (search snippet only): http://bbs.ddcnc.com/forum.php?mod=viewthread&tid=689
- MadModder DDCSV1.1 thread (inch-mode accuracy): https://www.madmodder.net/index.php/topic,11598.465/imode.html