jv4779 / 2x_laser

EMC2 Configuration for Buildlog.net 2.x Laser
6 stars 8 forks source link

Can't get raster to fire laser #1

Open sliptonic opened 8 years ago

sliptonic commented 8 years ago

I've adapted your config to my laser and have been using it for vector cutting and engraving for a long time (using both magic Z and M62/M63) but have never been able to get raster engraving to work. I recently upgraded my machine and decided to try again.

Config is debian/jessie rt_prempt with Machinekit.

Installing the laserraster.comp only throws minor warnings: brad@clyde:~/machinekit/configs/2x_laser$ sudo comp --install laserraster.comp Compiling realtime laserraster.c In file included from laserraster.comp:31:0: /home/brad/machinekit/configs/2x_laser/strtod.h:37:12: warning: conflicting types for built-in function ‘isspace’ static int isspace(char c){ return c==' '; } ^ /home/brad/machinekit/configs/2x_laser/strtod.h:38:12: warning: conflicting types for built-in function ‘isdigit’ static int isdigit(char c){ return (c>='0'&&c<='9'); } ^ laserraster.comp: In function ‘extra_setup’: laserraster.comp:270:28: warning: incompatible implicit declaration of built-in function ‘ceil’ Linking laserraster.so cp laserraster.so /usr/lib/linuxcnc/rt-preempt/

I load the Mona_Lisa.ngc example file (unchanged except I set laser power to 80%). It loads without error and when I run it, the gantry sweeps as expected but the laser never fires.

I uncommented the DEBUG lines in laserraster.comp before installing but I see no error output in /var/log/debug.

Is there anything else I can look at to find a clue?

jv4779 commented 8 years ago

These should be some amount of dmesg output just when the module loads. If that isn't showing up running Mona Lisa gocde is unlikely to do anything. And the issue is not loading the module or it failing to load. I have not rastered anything or upgraded linuxcnc in years. The laser is currently in a bunch of boxes being shipped.

If the module is loading then I would guess it isn't getting any input from the analog pins set by M6?. There should be dmesg output just from all the line start and raster data loading. On Jan 24, 2016 12:07 PM, "sliptonic" notifications@github.com wrote:

I've adapted your config to my laser and have been using it for vector cutting and engraving for a long time (using both magic Z and M62/M63) but have never been able to get raster engraving to work. I recently upgraded my machine and decided to try again.

Config is debian/jessie rt_prempt with Machinekit.

Installing the laserraster.comp only throws minor warnings: brad@clyde:~/machinekit/configs/2x_laser$ sudo comp --install laserraster.comp Compiling realtime laserraster.c In file included from laserraster.comp:31:0: /home/brad/machinekit/configs/2x_laser/strtod.h:37:12: warning: conflicting types for built-in function ‘isspace’ static int isspace(char c){ return c==' '; } ^ /home/brad/machinekit/configs/2x_laser/strtod.h:38:12: warning: conflicting types for built-in function ‘isdigit’ static int isdigit(char c){ return (c>='0'&&c<='9'); } ^ laserraster.comp: In function ‘extra_setup’: laserraster.comp:270:28: warning: incompatible implicit declaration of built-in function ‘ceil’ Linking laserraster.so cp laserraster.so /usr/lib/linuxcnc/rt-preempt/

I load the Mona_Lisa.ngc example file (unchanged except I set laser power to 80%). It loads without error and when I run it, the gantry sweeps as expected but the laser never fires.

I uncommented the DEBUG lines in laserraster.comp before installing but I see no error output in /var/log/debug.

Is there anything else I can look at to find a clue?

— Reply to this email directly or view it on GitHub https://github.com/jv4779/2x_laser/issues/1.

sliptonic commented 8 years ago

Sorry to hear you've gotten away from it. It seems like development around DIY lasers has kind of stagnated lately. Anyway if you want to ignore this, I'll understand. I'll leave this hear and try to update the issue if I find my problem. Thanks.!

I got it to spit out debugging info now: Here's the bit where linuxcnc starts up and starts running the sample gcode. It continues like that.

Jan 24 17:58:48 clyde msgd:0: ØMQ=4.0.5 czmq=2.2.0 protobuf=2.6.1 libwebsockets=<no version symbol>
Jan 24 17:58:48 clyde msgd:0: register_stuff: actual hostname as announced by avahi='clyde.local'
Jan 24 17:58:48 clyde msgd:0: zeroconf: registering: 'Log service on clyde.local pid 17659'
Jan 24 17:58:49 clyde msgd:0: hal_lib:17664:rt config string '0x378 out'
Jan 24 17:58:49 clyde msgd:0: hal_lib:17664:rt creating ladder-state
Jan 24 17:58:49 clyde msgd:0: hal_lib:17664:rt laserraster.comp: allocated step mask len=1432
Jan 24 17:58:49 clyde msgd:0: hal_lib:17688:user INFO CLASSICLADDER-   No ladder GUI requested-Realtime runs till HAL closes.
Jan 24 17:58:49 clyde msgd:0: hal_lib:17694:user INFO CLASSICLADDER-   No ladder GUI requested-Realtime runs till HAL closes.
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: starting raster line
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: header line -2 = 0.000000
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: header line -3 = 600.000000
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: header line -4 = 1.000000
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: header line -5 = 200.000000
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: header line -6 = 53.000000
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: header line -7 = 300000.000000
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: header line -8 = 0.370400
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: speed=15240.000000 mm/min, dots/mm=5080.000000, raster_lead_in=9.408160 mm, axisScale=160.000000 step/mm, axisLength=286.400000 mm
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: rawcounts=-164, startStep=1341, delaySteps=0, machMetric=1, gcodeMetric=0, convertScale=25.400000 bpf=53
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: index=1 data=3003132759332181.000000 data_1_s64=0xaab5555555555
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: index=2 data=3002296649995605.000000 data_1_s64=0xaaa92a9555555
Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1
jv4779 commented 8 years ago

Something is weird with the index and bits being set on the I put raster data. Those should be setting lots of bits and not just 2 bits per float. Could be a problem with my metric machine and imperial gcode conversions. Might be worth a try regenerating the raster file in metric (can't remember if my generator suppts that).

I have not given up, just moving right now. On Jan 24, 2016 4:14 PM, "sliptonic" notifications@github.com wrote:

Sorry to hear you've gotten away from it. It seems like development around DIY lasers has kind of stagnated lately. Anyway if you want to ignore this, I'll understand. I'll leave this hear and try to update the issue if I find my problem. Thanks.!

I got it to spit out debugging info now: Here's the bit where linuxcnc starts up and starts running the sample gcode. It continues like that.

Jan 24 17:58:48 clyde msgd:0: ØMQ=4.0.5 czmq=2.2.0 protobuf=2.6.1 libwebsockets= Jan 24 17:58:48 clyde msgd:0: register_stuff: actual hostname as announced by avahi='clyde.local' Jan 24 17:58:48 clyde msgd:0: zeroconf: registering: 'Log service on clyde.local pid 17659' Jan 24 17:58:49 clyde msgd:0: hal_lib:17664:rt config string '0x378 out' Jan 24 17:58:49 clyde msgd:0: hal_lib:17664:rt creating ladder-state Jan 24 17:58:49 clyde msgd:0: hal_lib:17664:rt laserraster.comp: allocated step mask len=1432 Jan 24 17:58:49 clyde msgd:0: hal_lib:17688:user INFO CLASSICLADDER- No ladder GUI requested-Realtime runs till HAL closes. Jan 24 17:58:49 clyde msgd:0: hal_lib:17694:user INFO CLASSICLADDER- No ladder GUI requested-Realtime runs till HAL closes. Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: starting raster line Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: header line -2 = 0.000000 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: header line -3 = 600.000000 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: header line -4 = 1.000000 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: header line -5 = 200.000000 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: header line -6 = 53.000000 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: header line -7 = 300000.000000 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: header line -8 = 0.370400 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: speed=15240.000000 mm/min, dots/mm=5080.000000, raster_lead_in=9.408160 mm, axisScale=160.000000 step/mm, axisLength=286.400000 mm Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: rawcounts=-164, startStep=1341, delaySteps=0, machMetric=1, gcodeMetric=0, convertScale=25.400000 bpf=53 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: index=1 data=3003132759332181.000000 data_1_s64=0xaab5555555555 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=0 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: index=2 data=3002296649995605.000000 data_1_s64=0xaaa92a9555555 Jan 24 17:59:58 clyde msgd:0: hal_lib:17664:rt laserraster.comp: setting index=0 bit=1

— Reply to this email directly or view it on GitHub https://github.com/jv4779/2x_laser/issues/1#issuecomment-174355553.