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

Running gcode in Studio and with Python run_gcode_file() is not the same (Lite6) #113

Open
mroglic opened this issue May 2, 2024 · 1 comment

Comments

@mroglic
Copy link

mroglic commented May 2, 2024

When trying to run this gcode file, I got different results when running in xarm studio and with Python SDK:

G21       ; mm
G1 Z300 ; pen up
G1 X280 Y10 
G1 Z300 ; pen up
G1 X255 Y-15
G1 Z80 ; pen down
G1 X255 Y-15 ; line start
G1 X255 Y-15 ; line end
G4 P 12 ; dwell for 12 sec
G1 X255 Y-15 ; line start
G1 X255 Y-94 ; line end
G4 P 12 ; dwell for 12 sec
G1 X255 Y-94 ; line start
G1 X255 Y-173 ; line end
G4 P 12 ; dwell for 12 sec
G1 Z300 ; pen up

When running from xarm studio, the code works fine with dwell commands, but when sending the same file via run_gcode_file(), those commands are skipped. Also, this code consists of three lines, which studio executes well, but again, running run_gcode_file() executes just the first two lines.

Firmware and Studio Version are both 2.3.0.
Python SDK Version: 1.13.19

@MinnaZhong
Copy link

Hi Mroglic,

run_gcode_file is for our internal use, it doesn’t support the dwell command.
We will add a new interface for the user on the next official release, and will let you know once we added it.

Best regards,

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