G-code

G-code (Laser Engraving / CNC)

Open Beta
.gcode · text/x-gcode

Xuất dữ liệu bản đồ OpenStreetMap dưới dạng G-code để khắc laser và phay CNC. Tạo các bản đồ vật lý trên gỗ, kim loại, acrylic và các vật liệu khác bằng máy khắc laser và máy phay CNC.

Xuất G-code ngay ✨ Open Beta — miễn phí, không giới hạn

Tính năng chính

Đường chạy dao tối ưu cho khắc laser
Cài đặt tốc độ và công suất cho laser
Hỗ trợ firmware GRBL và Marlin
Lớp riêng biệt để gia công nhiều lượt
Example G-code export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

Giới thiệu về định dạng G-code

G-code is the control language of numerically controlled machines (ISO 6983, also known as RS-274): a sequence of commands saying "move there", "turn the tool on", "run at this feed rate". Laser engravers, milling machines and plotters speak it, and the GRBL and Marlin firmwares understand it directly.

A map in G-code is not an image but a set of toolpaths. Every OpenStreetMap line becomes a tool path, and the machine repeats it on wood, plywood, acrylic, leather or anodized aluminium. That is how people make city plan panels, gift maps and relief models.

The file is plain text you can open in a text editor. First comes a header with the job parameters, then the map layers one after another, each with its own comment so the operator can skip a pass or reorder it. The commands are standard: G90 for absolute coordinates, G21 for millimeters, G0 for a rapid move, G1 for a working move, M3 and M5 to turn the tool on and off.

The geometry is fitted into the work area with margins along the edges, 300x300 mm by default, and the scale is chosen automatically so that the map fits entirely and keeps its proportions. Power is set per layer: roads run at full, buildings weaker, green areas very weak — which gives different depths on the material.

Chương trình nào mở được tệp G-code

Các chương trình và ứng dụng sau có thể mở, chỉnh sửa và làm việc với tệp G-code (Laser Engraving / CNC) (.gcode) được xuất từ OSM2CDR:

💻LightBurn 💻LaserGRBL 💻Fusion 360 💻LinuxCNC 💻Mach3

Format specifications

Ai sử dụng bản đồ G-code

🏗
Khắc laser bản đồ trên gỗ
A city plan cut on plywood or wood — the road lines become relief.
💻
Phay CNC bản đồ địa hình
Contours and boundaries as cutter paths for a 3D model of the territory.
📊
Tranh treo tường bản đồ trang trí
Wall panels with a district map: pure vector with no raster artifacts.
🎨
Quà tặng bản đồ cá nhân hóa
A map of your home town or a meeting place as a personal handmade gift.

Cách xuất G-code

1
Chọn khu vực
Vẽ một hình chữ nhật hoặc đa giác trên bản đồ tương tác tại osm2cdr.ru
2
Chọn G-code
Chọn G-code (Laser Engraving / CNC) từ danh sách 127 định dạng xuất khả dụng
3
Xuất
Nhấn Xuất và nhận tệp .gcode của bạn trong 1-5 phút
4
Tải xuống
Tải tệp G-code đã sẵn sàng và mở trong LightBurn

Cách mở tệp sau khi xuất

Bản đồ phổ biến ở định dạng G-code

Miễn phí

Nhận bản đồ xuất ở định dạng G-code (Laser Engraving / CNC)

Tải bản đồ G-code chuyên nghiệp từ OpenStreetMap. Tạo tức thì, bất kỳ khu vực nào.

Miễn phí / lần xuất
Xuất G-code ngay →

Câu hỏi thường gặp

Những máy khắc laser nào được hỗ trợ?
Tôi có thể dùng định dạng này cho phay CNC không?
Có thể khắc lên những vật liệu nào?
What work area is the file calculated for?
Are all the layers processed the same way?
What should I do before the first run?

Định dạng liên quan

Thường được xuất cùng nhau

Related Articles