0

我正在编写一个在 javascript 中导出 Gcode form illustrator 的插件。一切正常,除了当我将 gcode 加载到 CNC 软件上时,没有任何文本出现,因为它的格式错误。当我在文本编辑器中打开它时,它全部显示在一行上。当我在记事本++中打开它时,所有的回车都在那里,看起来还不错。我使用 \r\n 作为回车,我已经尝试过 \n\r 并且它仍然看起来相同。有谁知道我做错了什么?

4

1 回答 1

1

Usually the G-Code software does it's own line ending translation. You probably have the setting wrong there, and it doesn't matter so much what line endings you start with.

What software are you using?

于 2016-01-28T02:26:26.050 回答