You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made my own gcode to toggle the LED lighting of my printer.
I am working with Marlin V2.0 (newest).
I added the new gcode (777) function to gcode/gcode.cpp (inside the switch case of "GcodeSuite::process_parsed_command") and also to gcode/gcode.h to the class "GcodeSuite".
For the actual code I added a new file called 777.cpp with the following content:
Actual behavior:
Pin / LEDs are toggling but the printer movements are hangig for about 2s but only when switching the pin off...
Additional Information
This only happens when switching off (S=0)... This happens with the T command and the S command.
To send the gcode and control the printer I use a MKS TFT32 V3.0. My Mainboard is Bigtreetech SKR V1.3.
I also implemented a switch wchich is polled inside the endstop timer-interrupt with a smilar code and it also happens when i trigger the switch to off...
I additionally found out that the pause probably happens after the gcode buffer is empty.
With a "normal" gcode it's happening, but not with the following:
M82
M106 S0
M104 S200 T0
M104 S0 T1
M104 S0 T0
M280 P0 S90 ; push BLTouch pin up
M106 S0 ; switch off part fan
G28 X Y; home all axes
G0 X0 Y0 F6000 ; go to home position with 6000mm/min speed
G0 Z10
T0 ; select tool 0
G1 F6000 Y50 X100
G1 F6000 X200
G1 F6000 X100
G1 F6000 X200
G1 F6000 X100
G1 F6000 X200
G1 F6000 X100
G1 F6000 X200
G1 F6000 X100
G1 F6000 X200
...
The text was updated successfully, but these errors were encountered:
I found that this problem is pin related.
I used pin 1.31 of my board which is additionally SCK1/AD0.5.
When I changed the pin to 3.25 which is additionally MAT0.0/PWM1.2 (which is simply the pin below at the plug I used) everything works fine!
I am not familiar enough with Marlin but I think this pin is used anywhere and problems are caused when switching it...
So the bug is "resolved"...
Bug Description
I made my own gcode to toggle the LED lighting of my printer.
I am working with Marlin V2.0 (newest).
I added the new gcode (777) function to gcode/gcode.cpp (inside the switch case of "GcodeSuite::process_parsed_command") and also to gcode/gcode.h to the class "GcodeSuite".
For the actual code I added a new file called 777.cpp with the following content:
Expected behavior:
Pin / LEDs toggle on or off
Actual behavior:
Pin / LEDs are toggling but the printer movements are hangig for about 2s but only when switching the pin off...
Additional Information
This only happens when switching off (S=0)... This happens with the T command and the S command.
To send the gcode and control the printer I use a MKS TFT32 V3.0. My Mainboard is Bigtreetech SKR V1.3.
I also implemented a switch wchich is polled inside the endstop timer-interrupt with a smilar code and it also happens when i trigger the switch to off...
I additionally found out that the pause probably happens after the gcode buffer is empty.
With a "normal" gcode it's happening, but not with the following:
The text was updated successfully, but these errors were encountered: