Explainer
How a robot arm follows a cutting path from a drawing
Short answer
There is no out-of-the-box package that turns a photo of a plate into a cutting program for an eV+ robot arm. Trace the plate border into coordinate-based G-code, translate only the motion records into eV+ Move statements with a small script, and verify the coordinate frame, start point and cut direction with the cutter above the part before it touches material.

On this page
- What the language gives you and what it does not
- Where the cutting path comes from
- What the translator replaces, record by record
- Worked example: a plate frame offset 5.0 mm in X and 8.0 mm in Y
- Verify the frame, start point and direction above the plate
- Running the next plate model
- What the conversion does not decide for you
- Questions asked
No drawing package turns a photograph of a plate into a finished cutting program for an eV+ robot arm. The route that works is the one a CNC programmer already knows: trace the plate border into coordinate-based G-code with an image-to-G-code converter, translate only the motion records into eV+ Move statements with a short script, and verify the coordinate frame, start point and cut direction with the cutter above the part before it touches material. On a spindle-equipped eV+ arm cutting plastic plates, the alternative is a hand-built program for every model, a job that reportedly takes one to two days and still leaves curves imperfect. The conversion chain below replaces that hand entry for every new model; what stays manual is tracing the border and the one-time frame check.
What the language gives you and what it does not #
eV+ is a complete programming language and robot-control system, used through the ACE software for this family of arms. Its motion instruction Move does what the name says: it moves the robot from point A to point B, in the statement syntax the eV+ Language Reference Guide documents for the controller. G-code expresses the same idea in its G01 record, a linear move to an X and Y coordinate. The overlap between the two languages is the coordinates, not the words around them, and that is why this job is a translation rather than an import.
The language has no documented feature that reads a drawing or a G-code file, so the package being asked for — delimit the borders on a photo and get a cut — has to be assembled from three pieces: a converter that produces coordinates, a script that rewrites the motion records, and a frame check that makes the numbers land on the plate.
Where the cutting path comes from #
An image-to-G-code converter turns a traced border into coordinate records. The img2gcode script, published as img2gcode.py, takes a scanned drawing or a black-and-white image, reduces it to a line drawing and emits G-code coordinates for a plotter or cutter to follow. A flat plastic plate is exactly the kind of part this suits: an outline traceable from above.
Feed the converter a 1:1 scan or a border traced from a dimensioned drawing rather than an angled phone photo, because perspective skews the contour and the cut plate has to fit the opening it belongs to. Whatever produces the image, lay the traced outline over the physical plate and check overall length, width and hole positions before converting — the converter will faithfully reproduce a distorted outline.
What the translator replaces, record by record #
The translator reads the converted file as plain text and keeps only the motion records, the G01 lines that define the contour. For each one it strips the G-word, reads the values that follow the X and Y letters and writes an eV+ motion statement carrying those same values, laid out in the syntax the eV+ Language Reference Guide gives for Move. Delimiter differences between the two languages are substring replacements — the string manipulation this conversion needs — so the script never has to be a full G-code interpreter.
Everything that is not a motion record is left untranslated. Feed words, spindle commands and tool-change records are dropped, and cutting speed then lives in the robot program, where every model gets the same value. Log the record types the script dropped, so nothing disappears from the path silently.
One setting matters as much as the coordinates: the motion type. A cutting contour wants the straight-line motion variant the language provides — the language reference names it — because a move that interpolates in joints bends the path between contour points and rounds corners the traced border does not have.
Worked example: a plate frame offset 5.0 mm in X and 8.0 mm in Y #
Inputs, with illustrative values for this case:
- Converter record:
G01 X120.0 Y45.0, a contour point 120.0 mm along the drawing X axis and 45.0 mm up the drawing Y axis, emitted in millimeters at 1:1 scale. - Taught plate frame: origin at drawing position (5.0, 8.0) mm — the plate's locating corner sits 5.0 mm right of and 8.0 mm above the drawing origin — with its axes parallel to the drawing axes. Take the real offset from your teach procedure, not from this example.
- Cutting height in Z: taught once at the plate surface and held constant through the cut.
The rule: with the frame axes parallel to the drawing axes, a point's coordinate in the taught frame is its drawing coordinate minus the frame origin's drawing coordinate, axis by axis.
The arithmetic: frame X = 120.0 - 5.0 = 115.0 mm; frame Y = 45.0 - 8.0 = 37.0 mm.
The result: the script writes the motion statement for the point at 115.0 mm and 37.0 mm in the plate frame, at the taught cutting height, in the Move syntax the language reference documents. This is a calculated example for these inputs, not a measured cut.
The decision: when the taught origin coincides with the drawing origin, both differences are zero, the values pass through unchanged and the script only swaps the keyword. When it does not, apply the subtraction once, inside the script, so every record of every model converts with the same mapping — never correct individual points by hand afterwards.
Verify the frame, start point and direction above the plate #
Check the translated file first: no missing points, no reordered coordinates, no leftover unsupported records, no malformed statements. Then run the program as an air pass, cutter lifted above the plate, spindle off, and watch three things: the start point lands where the teach put it, the travel around the border runs in the direction the tracing produced, clockwise or counterclockwise, and the path closes back on its start. The air pass checks the path, not the cut; the machine's guarding and its risk assessment — ISO 10218 is the industrial robot safety standard behind that assessment — still govern every cutting pass.
If the executed contour is wrong, separate the three sources instead of guessing. A path offset consistently from the intended border points at the frame. A statement count in the translated program that falls short of the converted file's contour count points at the translation. A traced outline that does not match the plate points at the tracing, and fixing the image fixes every model traced the same way. Corners rounded on the executed path that are sharp in the border point at motion blending, not at any of these — Why a 2 DOF robot arm curves near the end of a straight line shows the same geometry, a traveled path bending away from the commanded line.
Teach the frame on the plate itself, not on the fixture around it, or every converted point inherits the fixture's error — the same principle as Teach the pick point, not the conveyor frame origin. Confirm the units too: if the converter's units and the frame's units differ, every coordinate scales by the ratio between them, the same command-to-motion conversion as How to Calculate Step and Direction Servo Pulse Scaling, applied here to whole contour coordinates instead of pulses.
Running the next plate model #
| Stage | What runs | What you decide |
|---|---|---|
| Trace the border | a scanner or tracing over the physical plate | 1:1 scan; an angled photo only as a rough check |
| Convert | the image-to-G-code converter, for example img2gcode.py | which contour to cut, tracing resolution |
| Translate | the same script every time | record types kept, frame offset applied in code |
| Verify | an air pass above the plate | frame, start point, direction |
| Cut | the robot program at the taught cutting height | speed, cutter radius allowance |
Per-model work drops to tracing and verification. The hand-built program that reportedly took one to two days becomes a rerun of a chain that does not change between models, and curve quality stops depending on how steadily a point was taught: it follows the tracing resolution, raised until the short segments follow each curve closely enough that the plate still fits.
What the conversion does not decide for you #
The converter and the translator produce coordinates and nothing else. Cutting speed, spindle on and off, cutter orientation and part clamping come out of neither with values attached, and none of the documented material assigns them: set them in the robot program so every model cuts the same way.
Cutter radius is the one geometric item to settle before the first material cut. The tool removes material on both sides of its centerline, so a centerline running on the traced border leaves the cut edge one cutter radius inside it, and a plate that must fit an opening comes out undersized. Offset the path in the converter or the translator by the radius, on the side away from the part. Settle that, confirm the units written in the converted file, and the chain is ready to run for the next model.
Questions asked
Can I trace the plate border from a phone photo instead of a scan?
You can, but treat it as a rough check rather than a production source. A photo taken at an angle skews the outline through perspective, and the converter reproduces that skew faithfully. If a scan is not available, shoot straight down from directly above the plate with a ruler in frame for scale, then measure the traced outline's overall length and width against the plate with calipers before converting. If the measurements drift, correct the image, not the coordinates afterwards.
Where should cutting speed live, in the robot program or in the G-code feed words?
In the robot program. The translator keeps only motion records, so feed words in the converted file never reach the arm, and a speed buried in a converted line cannot be audited at the cell. One fixed program speed for every model keeps cut quality comparable between plates and keeps the script trivial. Only add speed handling to the translator if a plate genuinely needs a slower pass on one segment, and make it an explicit record type, never a default.
Why do the curves still come out segmented instead of smooth?
Because an image-to-G-code converter traces a curve as a chain of short straight records, and the robot cuts straight lines between them. Smoothness follows the tracing resolution: raise it until the segments are short enough that the finished plate still fits its opening. Do not simplify or filter points in the converter so aggressively that sharp corners round off, and check the motion type in the translated statements, because a joint-interpolated move rounds the path even between correct points.
Does the same script work when a new plate model arrives?
Yes, and that is the point of building it this way. The script reads the converted file, not the plate, so a new model only supplies a new traced border and a new converted file. What can change between models is the taught frame, if the fixture or its locating corner moves; keep the teach procedure identical so the offset logic inside the script stays valid. Verify each new model with the same air pass above the plate before the first cut.


