Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Error: parentheses comments #2555

Closed
zengfanfan opened this issue Jun 19, 2024 · 1 comment
Closed

Syntax Error: parentheses comments #2555

zengfanfan opened this issue Jun 19, 2024 · 1 comment

Comments

@zengfanfan
Copy link

zengfanfan commented Jun 19, 2024

Version

2.1.7

Hardware / Firmware

GRBL 1.1

What happened

Report syntax error on valid comments when opening nc file.

image

How to reproduce

open this file:

( *** ZengXYZ Plotter(gcode_plotter) v25:38M *** )
( Generated by ZengXYZ Plotter(gcode_plotter) at 2024-06-20 04:25:05.862468 )
( Oxy = (0,0) , Z = 0 ~ 40 )
( MoveSpeed = 6000, FillSpeed = 1000 )
( <header> )
; pull up Z
G90 G1 Z80 F6000
( </header> )

( go to zero point )
G1Z40F6000 ; [gMoveTo: null,null,40]
G1X0Y0Z40 ; [gMoveTo: 0,0,null]
G92X0Y0

( <group id="1"> )
( </group> )

( <group id="2"> )
( <pen id="3" width="1.0" offset="Point(0, 0)" /> )
G1X33Y33Z0 ; [gMoveTo: 33.0,33.0,0]
T3
M3S103
G1X36F1000 ; [gFillTo: 36.0,33.0]
M3S0
M5
G1X38Y33.5Z40F6000 ; [gMoveTo/2: 40.0,34.0,0]
G1X40Y34Z0 ; [gMoveTo: 40.0,34.0,0]
T3
M3S103
G1X30F1000 ; [gFillTo: 30.0,34.0]
M3S0
M5
G1X29.5Y34.5Z40F6000 ; [gMoveTo/2: 29.0,35.0,0]
G1X29Y35Z0 ; [gMoveTo: 29.0,35.0,0]
T3
M3S103
G1X41F1000 ; [gFillTo: 41.0,35.0]
M3S0
M5
G1X41.5Y35.5Z40F6000 ; [gMoveTo/2: 42.0,36.0,0]
G1X42Y36Z0 ; [gMoveTo: 42.0,36.0,0]
T3
M3S103
G1X28F1000 ; [gFillTo: 28.0,36.0]
M3S0
M5
G1X27.5Y36.5Z40F6000 ; [gMoveTo/2: 27.0,37.0,0]
G1X27Y37Z0 ; [gMoveTo: 27.0,37.0,0]
T3
M3S103
G1X43F1000 ; [gFillTo: 43.0,37.0]
M3S0
M5
G1Y37.5Z40F6000 ; [gMoveTo/2: 43.0,38.0,0]
G1Y38Z0 ; [gMoveTo: 43.0,38.0,0]
T3
M3S103
G1X26F1000 ; [gFillTo: 26.0,38.0]
M3S0
M5
G1X25.5Y38.5Z40F6000 ; [gMoveTo/2: 25.0,39.0,0]
G1X25Y39Z0 ; [gMoveTo: 25.0,39.0,0]
T3
M3S103
G1X44F1000 ; [gFillTo: 44.0,39.0]
M3S0
M5
G1Y39.5Z40F6000 ; [gMoveTo/2: 44.0,40.0,0]
G1Y40Z0 ; [gMoveTo: 44.0,40.0,0]
T3
M3S103
G1X24F1000 ; [gFillTo: 24.0,40.0]
M3S0
M5
G1X23.5Y40.5Z40F6000 ; [gMoveTo/2: 23.0,41.0,0]
G1X23Y41Z0 ; [gMoveTo: 23.0,41.0,0]
T3
M3S103
G1X45F1000 ; [gFillTo: 45.0,41.0]
M3S0
M5
G1Y41.5Z40F6000 ; [gMoveTo/2: 45.0,42.0,0]
G1Y42Z0 ; [gMoveTo: 45.0,42.0,0]
T3
M3S103
G1X23F1000 ; [gFillTo: 23.0,42.0]
M3S0
M5
G1X22.5Y42.5Z40F6000 ; [gMoveTo/2: 22.0,43.0,0]
G1X22Y43Z0 ; [gMoveTo: 22.0,43.0,0]
T3
M3S103
G1X45F1000 ; [gFillTo: 45.0,43.0]
M3S0
M5
G1Y43.5Z40F6000 ; [gMoveTo/2: 45.0,44.0,0]
G1Y44Z0 ; [gMoveTo: 45.0,44.0,0]
T3
M3S103
G1X22F1000 ; [gFillTo: 22.0,44.0]
M3S0
M5
G1X21.5Y44.5Z40F6000 ; [gMoveTo/2: 21.0,45.0,0]
G1X21Y45Z0 ; [gMoveTo: 21.0,45.0,0]
T3
M3S103
G1X45F1000 ; [gFillTo: 45.0,45.0]
M3S0
M5
G1Y45.5Z40F6000 ; [gMoveTo/2: 45.0,46.0,0]
G1Y46Z0 ; [gMoveTo: 45.0,46.0,0]
T3
M3S103
G1X21F1000 ; [gFillTo: 21.0,46.0]
M3S0
M5
G1X20.5Y46.5Z40F6000 ; [gMoveTo/2: 20.0,47.0,0]
G1X20Y47Z0 ; [gMoveTo: 20.0,47.0,0]
T3
M3S103
G1X44F1000 ; [gFillTo: 44.0,47.0]
M3S0
M5
G1Y47.5Z40F6000 ; [gMoveTo/2: 44.0,48.0,0]
G1Y48Z0 ; [gMoveTo: 44.0,48.0,0]
T3
M3S103
G1X20F1000 ; [gFillTo: 20.0,48.0]
M3S0
M5
G1X19.5Y48.5Z40F6000 ; [gMoveTo/2: 19.0,49.0,0]
G1X19Y49Z0 ; [gMoveTo: 19.0,49.0,0]
T3
M3S103
G1X43F1000 ; [gFillTo: 43.0,49.0]
M3S0
M5
G1X42.5Y49.5Z40F6000 ; [gMoveTo/2: 42.0,50.0,0]
G1X42Y50Z0 ; [gMoveTo: 42.0,50.0,0]
T3
M3S103
G1X19F1000 ; [gFillTo: 19.0,50.0]
M3S0
M5
G1X18.5Y50.5Z40F6000 ; [gMoveTo/2: 18.0,51.0,0]
G1X18Y51Z0 ; [gMoveTo: 18.0,51.0,0]
T3
M3S103
G1X41F1000 ; [gFillTo: 41.0,51.0]
M3S0
M5
G1X40.5Y51.5Z40F6000 ; [gMoveTo/2: 40.0,52.0,0]
G1X40Y52Z0 ; [gMoveTo: 40.0,52.0,0]
T3
M3S103
G1X18F1000 ; [gFillTo: 18.0,52.0]
M3S0
M5
G1X17.5Y52.5Z40F6000 ; [gMoveTo/2: 17.0,53.0,0]
G1X17Y53Z0 ; [gMoveTo: 17.0,53.0,0]
T3
M3S103
G1X39F1000 ; [gFillTo: 39.0,53.0]
M3S0
M5
G1X38.5Y53.5Z40F6000 ; [gMoveTo/2: 38.0,54.0,0]
G1X38Y54Z0 ; [gMoveTo: 38.0,54.0,0]
T3
M3S103
G1X17F1000 ; [gFillTo: 17.0,54.0]
M3S0
M5
G1X16.5Y54.5Z40F6000 ; [gMoveTo/2: 16.0,55.0,0]
G1X16Y55Z0 ; [gMoveTo: 16.0,55.0,0]
T3
M3S103
G1X37F1000 ; [gFillTo: 37.0,55.0]
M3S0
M5
G1X36.5Y55.5Z40F6000 ; [gMoveTo/2: 36.0,56.0,0]
G1X36Y56Z0 ; [gMoveTo: 36.0,56.0,0]
T3
M3S103
G1X16F1000 ; [gFillTo: 16.0,56.0]
M3S0
M5
G1Y56.5Z40F6000 ; [gMoveTo/2: 16.0,57.0,0]
G1Y57Z0 ; [gMoveTo: 16.0,57.0,0]
T3
M3S103
G1X35F1000 ; [gFillTo: 35.0,57.0]
M3S0
M5
G1X34.5Y57.5Z40F6000 ; [gMoveTo/2: 34.0,58.0,0]
G1X34Y58Z0 ; [gMoveTo: 34.0,58.0,0]
T3
M3S103
G1X16F1000 ; [gFillTo: 16.0,58.0]
M3S0
M5
G1Y58.5Z40F6000 ; [gMoveTo/2: 16.0,59.0,0]
G1Y59Z0 ; [gMoveTo: 16.0,59.0,0]
T3
M3S103
G1X32F1000 ; [gFillTo: 32.0,59.0]
M3S0
M5
G1X31.5Y59.5Z40F6000 ; [gMoveTo/2: 31.0,60.0,0]
G1X31Y60Z0 ; [gMoveTo: 31.0,60.0,0]
T3
M3S103
G1X16F1000 ; [gFillTo: 16.0,60.0]
M3S0
M5
G1Y60.5Z40F6000 ; [gMoveTo/2: 16.0,61.0,0]
G1Y61Z0 ; [gMoveTo: 16.0,61.0,0]
T3
M3S103
G1X30F1000 ; [gFillTo: 30.0,61.0]
M3S0
M5
G1X29Y61.5Z40F6000 ; [gMoveTo/2: 28.0,62.0,0]
G1X28Y62Z0 ; [gMoveTo: 28.0,62.0,0]
T3
M3S103
G1X17F1000 ; [gFillTo: 17.0,62.0]
M3S0
M5
G1X17.5Y62.5Z40F6000 ; [gMoveTo/2: 18.0,63.0,0]
G1X18Y63Z0 ; [gMoveTo: 18.0,63.0,0]
T3
M3S103
G1X26F1000 ; [gFillTo: 26.0,63.0]
M3S0
M5
G1X24.5Y63.5Z40F6000 ; [gMoveTo/2: 23.0,64.0,0]
G1X23Y64Z0 ; [gMoveTo: 23.0,64.0,0]
T3
M3S103
G1X19F1000 ; [gFillTo: 19.0,64.0]
M3S0
M5
( </group> )

( <group id="3"> )
( </group> )

( <group id="4"> )
( </group> )

( <footer> )
; push out Y to front
G90 G1 Z80 F6000
G1 X0 Y275
( </footer> )

( End Program )
M30

Operating System

Windows 10 22H2

Anything else

No response

@breiler
Copy link
Collaborator

breiler commented Jun 20, 2024

Handled in #2557

It is available in the latest nightly build: https://github.com/winder/Universal-G-Code-Sender?tab=readme-ov-file#downloads

@breiler breiler closed this as completed Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants