Jbc
Posts: 49
Joined: Sun Apr 20, 2014 2:04 pm

Turn on LED light

I cant find the proper Gcode to turn on a LED light on pin 6 / Azteeg x5 Pro.
I read in these forums that M146 would do it.
So I placed in the starting script area - M146 P6 S255 == ON
That didnt work.
I used M46 P6 S255 == ON in Repetier and it works.

Anyone know how to turn on a light?
I am running a Cerberus Mega.
jbc
User avatar
TenKOhms
Posts: 172
Joined: Wed May 14, 2014 3:04 pm

Re: Turn on LED light

Jbc wrote:I cant find the proper Gcode to turn on a LED light on pin 6 / Azteeg x5 Pro.
I read in these forums that M146 would do it.
So I placed in the starting script area - M146 P6 S255 == ON
That didnt work.
I used M46 P6 S255 == ON in Repetier and it works.

Anyone know how to turn on a light?
I am running a Cerberus Mega.
jbc
Try just
M46 P6 S255
without the == ON
Jbc
Posts: 49
Joined: Sun Apr 20, 2014 2:04 pm

Re: Turn on LED light

I tried that but still no light.
User avatar
TenKOhms
Posts: 172
Joined: Wed May 14, 2014 3:04 pm

Re: Turn on LED light

Sorry, I went off the last line of G-Code you had in your original post, it looks like it may be M146 P6 S255 instead of M46. Try that in the starting G-Code without the == ON.

I didn't see the M146 command in the RepRap G-Code Wiki(http://reprap.org/wiki/G-code), but from the looks of it, it seems the M146 turns on a pin the corresponds to the P#, where number is the pin turned on. Pin 6 on most Arduino style boards have PWM capability, and the S255 is just saying to give it 100% duty cycle meaning a full on.

Return to “Troubleshooting and Bug Reports”