DryRun beta

Controller notes

Digital Dream DDCS V4.1 G-code: codes, canned cycles, rotary axis

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.

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

2. Arcs

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

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

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.

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

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

Other controllers