Bug #63
closedFirst power and Speed setting seem to be ignored
0%
Description
Steps to reproduce:
- Power on your Lasercutter
- Send the attached LGC file (a simple job which contains lines with 2 different powers: 98% and 2%)
Result: Everything works as excpected.
- Send the same file again
Result: The job is executed with the same power (2%) for all lines.
Files
Updated by t-oster almost 12 years ago
I'm trying to track down the bug. It seems as if the first "7 101 XXX" line in my files is not recognized, if the job is not the first one. It starts with the last power from the last job. Further "7 101" statements seem to be read correctly.
I am now able to compile the source on my own, so I will send a pull-request, as soon as I found the bug. Also there are a number of "break" statements missing in the LaosMotion.cpp... but they don't seem to do any harm as far as I can tell.
BTW: I'm using the firmware without a display.
Updated by t-oster almost 12 years ago
I can see the following behavior:
- Laser powered on
- laser moves to home (top-right in my case)
- Send a job containing 2 rectangles with different power
- laser executes job properly
- laser moves to rest (top-left in my case)
- Send same job again
- laser moves to (0,0) (lower-left in my case) !!!! why?
- laser executes job, but both rectangles with the power of the second rectangle
- laser moves to rest (top-left in my case)
If I continue sending this job, the behavior stays the same.
My guess is, that there is some problem with reading the file, such that the first lines somehow yield the "goto 0,0" and the power is ignored. Or is the going to 0,0 somewhere in the code? I can't find it.
Updated by t-oster almost 12 years ago
- Status changed from New to In Progress
- Priority changed from Urgent to High
I added a workaround in LibLaserCut/VisiCut, which causes the first "7 101" aka setPower command to be sent twice. This seems to work around this bug. However, it still moves to (0,0) so I guess the bug can be found there. May have something to do with the LAOS-FileSystem (just a wild guess).
Updated by t-oster almost 12 years ago
- Subject changed from Laser power is only correct in the first job to First power and Speed setting seem to be ignored
The same seems to happen to the speed
Updated by peter almost 12 years ago
- File laoslaser-29-12-2012.bin laoslaser-29-12-2012.bin added
- Status changed from In Progress to Resolved
- Assignee set to peter
Problem is confirmed. Only happens on systems without a display.
Cause: State of the motion system was not reset after a job.
Fixed with this commit: https://github.com/LaosLaser/Firmware/commit/afd7bf485eb7fd842b82c757de59bd6c1c0f7c0d
Attached compiled binary.
Updated by t-oster almost 12 years ago
- Status changed from Resolved to Closed
I can confirm, that it works correctly now.