Light control - On but not Off
I have followed the basic instructions at https://www.instructables.com/id/3D-Printer-RGB-LED-Feedback/ to set up a light on/off control for my lights - simplifying to one circuit as I've only got white light strips. (personal goal, re-write that page to take out the problems I had)
This works perfectly using the M42 command (M42 P4 S255 or M42 P4 S0) to turn on and off the lights, however, the UI and Repetier controls via the server does not turn off, but turns on.
I'm using Repetier Firmware on my Ramps 1.4 board to set this up. Repetier Firmware has the relevant settings as:
This works perfectly using the M42 command (M42 P4 S255 or M42 P4 S0) to turn on and off the lights, however, the UI and Repetier controls via the server does not turn off, but turns on.
I'm using Repetier Firmware on my Ramps 1.4 board to set this up. Repetier Firmware has the relevant settings as:
#define CASE_LIGHTS_PIN 4
#define CASE_LIGHT_DEFAULT_ON 0
My printer is currently running displayless, as the display smoked as part of a wiring error (I've replaced all components other than the display).
There does not seem to be any settings within Repetier Server to adjust it. As it's me, I'm sure I'm doing something wrong. anyone wanna help? Thanks.
My printer is currently running displayless, as the display smoked as part of a wiring error (I've replaced all components other than the display).
There does not seem to be any settings within Repetier Server to adjust it. As it's me, I'm sure I'm doing something wrong. anyone wanna help? Thanks.
Comments
If I manually send M355 S0 it turns off the lights.
I've rigged together the old display to work with the RAMPS setup, so I could see if direct control works, which it does, although the status doesn't update on the screen, using freshly downloaded Repetier firmware. It always indicates the lights are off in the Control menu.
19:07:39.420: N25 M355 S0
so you see firmware reports new state and next command gets toggled.
What server version are you using? I tested with latest 0.92.1.
So at the moment I see no reason for it to fail in your case. Can you post your printer xml config. Would be the only thing that might maybe break some thing also I don't know what. But at least it contains all your settings so if I'm able to reproduce, then with that config.
Would you want my configuration.h file from the firmware as well?
Here's the data:
2:49:16.158: N20 M80
XML file:
<?xml version="1.0" encoding="UTF-8"?>
Guess I wait until your new install. Can you also test with virtual port?
I did the tests without printing anything before. Just connect and starting to switch light with the toggle light button in control or light on/off button in status page of touch screen in case you do it somewhere else.
Using the virtual port "VirtualCartisan":
14:52:58.426: N32 M117 192.168.1.190:3344
Using "/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0" :
Server parses "Info:Case lights off" and that is the opposite of what it should be. S1 is enable and firmware says it is off and server believes it.
So firmware reports wrong status here. What version are you using? When It tested with 1.0.4dev I got the right response.
Same result as before.
Thanks for the help!
Thanks for the help!
Apart from that use latest dev version, that seems to work well.
This is because I believe Klipper is not responding about the LED status.
This is the common macro about M355:
[gcode_macro M355]
default_parameter_S=0
gcode = SET_PIN PIN=caselight VALUE={S}
At the moment I solved it by creating two g-code quick commands with "M355 S0" and "M355 S1", but this thing is quite boring.