Video: drip feed a 200 KB CNC program at 2400 baud with XON/XOFF
Drip feed runs a program while it is being sent, so the program can be far larger than the control's memory. In this video the operator requests a 200 KB program at 2400 baud. The panel of the simulated control shows its buffer filling to three quarters, the XOFF that stops the PC, the buffer draining to a quarter and the XON that lets the PC go on. DNC Precision's transfer status shows the same pauses from the PC side.
In this video
- 0:00 Why drip feed, and the numbers: 2400 baud is about 218 characters a second, 200 KB about 16 minutes
- 0:42 Settings: baud rate, XON/XOFF, the handshake timeout, the CANCEL trigger
- 1:43 Drip feed: the request, stop and go, the raw data, cancelling from the control
- 3:22 Hardware handshake: RTS/CTS instead of XON/XOFF
- 3:41 Editions
What happens in a pause
| The control | DNC Precision | |
|---|---|---|
| Buffer has room | runs blocks, takes characters | sends at the line's full rate ("Bytes sent" rises) |
| Buffer three quarters full | sends XOFF | stops: "Waiting for the receiver ready (drip-feed)", CPS (current) 0, the XH light on |
| Buffer down to a quarter | sends XON | "Resuming data transfer", the next part goes out |
The control in the video is simulated on a second PC, connected with a real null-modem cable: a 256-character buffer that works off 100 characters a second, slower than the 218 the line delivers, so the pauses come every few seconds. On a real control the buffer and the speed differ, but the handshake works the same way. Drip feed explains the settings and what to do when it goes wrong.
The settings in the video
| Setting | Value | Where |
|---|---|---|
| Baud rate, data bits, parity, stop bits | 2400, 7, Even, 2 | Serial port / Serial port settings |
| Handshake | Software, XOFF #13, XON #11 | Serial port / Data flow control |
| Handshake timeout | the default (0 waits without a limit) | Delays |
| Request | O8888 (PRG=5000), then (CANCEL=1) to stop | Server mode / NC commands |
Video transcript
Narration of the video "Drip feed with DNC Precision" (November 2026).
Intro. Drip feed runs a program while it is being sent. The control executes the blocks as they arrive and keeps only a small buffer, so the program can be far larger than the control's memory. In this video the operator requests a program of 200 kilobytes from the control, over a line of only 2400 baud. At 2400 baud, with seven data bits, parity and two stop bits, the cable carries about 218 characters a second. 200 kilobytes take about a quarter of an hour, and they are more than three times the 64 kilobytes the Free Edition can send at all.
Settings. Set the baud rate to the control's value, here 2400. Data bits, parity and stop bits stay as they are on the control. Drip feed depends on the handshake. When the control's buffer is nearly full, it sends XOFF, and DNC Precision stops. When there is room again, the control sends XON, and the sending goes on. These are the standard characters, hexadecimal 13 and 11. On the Delays page, the handshake timeout is how long DNC Precision waits while the control has stopped it. The default is long enough for the control to work through its buffer. Zero means that it waits without a limit, for very long cycles between blocks. In the trigger list, the CANCEL command lets the operator stop a drip feed from the control. Click OK, and the machine is back in server mode.
Drip feed. On the control, the operator requests program 5000, selects the mode for running from the serial port, often called DNC or tape mode, and presses Cycle Start. The control sends XON, and the program starts to flow. The raw data window on the right shows every byte that goes out. The panel at the top right shows the control's buffer, and the transfer status of DNC Precision shows the current speed. While the buffer has room, the characters go out at the full rate of the line. The control works off the blocks more slowly, so its buffer fills. At about three quarters full the control sends XOFF, and DNC Precision stops: the current speed drops to zero. Now the control runs the blocks from its buffer. When only a quarter is left, it sends XON, and the next part goes out. Stop and go: the PC never sends more than the control can hold, so a program of any length runs through a small buffer. In the raw data window, the program goes out in bursts, one for each XON. If the pauses never come and the control raises an overflow alarm, the handshake does not work: check that both sides use the same method, and the cable. The other way round, if the control runs the blocks faster than the line delivers them, the machine hesitates between short moves. Then raise the baud rate on both sides, as far as the cable and the control allow. To stop the drip feed from the machine, the operator sends a request with the CANCEL command. DNC Precision stops sending at once, and the control is free for the next program.
Hardware handshake. Controls with hardware handshaking do the same with a wire: the control drops its RTS line, which arrives at the PC as CTS, and DNC Precision waits until the line comes back. Tick Use RTS and Require CTS, and use a cable with those lines wired.
Editions. Drip feed is part of DNC Precision Professional and Enterprise. The trial of the full version works with one machine, so you can test drip feed with your own control before you buy. With Enterprise, a tool-break request even restarts a program from the block where the tool broke.
More videos
- First machine, send and receive - the basics, in the Free Edition.
- Server mode: three CNC machines at once - requests, punched programs and the file list.
Drip feed is part of DNC Precision Professional and Enterprise. Download the full version: its trial works with one machine.
What is DNC software | DNC server mode | Drip feed | RS-232 troubleshooting | Wireless DNC | USB-to-serial adapters | Machine data with DPRNT | DNC software compared | Edit programs before sending | CNC and DNC settings | RS232 pinout and signals