Hi. Yes the TMC_DEBUG is enabled and also the MONITOR_DRIVER_STATUS. SOFTWARE_DRIVER_ENABLE is disabled. In configuration.h on the driver section I have for both axis X and Y set to TMC2130 too, so I don't know where the problem is. Should pronterface console display something other than "Unknown message" if the spi pins are not configured properly? I'm currently using the pins on AUX3, same as RAMPS 1.4 as I'm not using any LCD controller.
↧
Re: TMC2130 Not Moving. Marlin 2.0. M122 "Unknown command"
↧
Re: TMC2130 Not Moving. Marlin 2.0. M122 "Unknown command"
I'm not that experienced with the MKS gen 1.4 boards but could this help you any further?
[adrian.siemieniak.net]
And is "#if HAS_TRINAMIC" enabled in your advanced config?
[www.reddit.com]
[adrian.siemieniak.net]
And is "#if HAS_TRINAMIC" enabled in your advanced config?
[www.reddit.com]
↧
↧
Re: TMC2130 Not Moving. Marlin 2.0. M122 "Unknown command"
The code is setup so it only activates g-codes you can use
The code says
#if HAS_TRINAMIC
case 122: M122(); break; // M122: Report driver configuration and status
case 906: M906(); break;
otherwise M112 doesn't not exists
The test is
// Test for supported TMC drivers that require advanced configuration
// Does not match standalone configurations
#define HAS_TRINAMIC ( HAS_DRIVER(TMC2130) \
|| HAS_DRIVER(TMC2160) \
|| HAS_DRIVER(TMC2208) \
|| HAS_DRIVER(TMC2209) \
|| HAS_DRIVER(TMC2660) \
|| HAS_DRIVER(TMC5130) \
|| HAS_DRIVER(TMC5160) )
So please cut and paste what your drivers lines say in your configuration.h and paste them here
It should say
#define X_DRIVER_TYPE TMC2130
#define Y_DRIVER_TYPE TMC2130
note the // before the #define have been removed, the TMC must be in upper case and there must be no spaces or any other characters after the TMC and before the number.
The code says
#if HAS_TRINAMIC
case 122: M122(); break; // M122: Report driver configuration and status
case 906: M906(); break;
otherwise M112 doesn't not exists
The test is
// Test for supported TMC drivers that require advanced configuration
// Does not match standalone configurations
#define HAS_TRINAMIC ( HAS_DRIVER(TMC2130) \
|| HAS_DRIVER(TMC2160) \
|| HAS_DRIVER(TMC2208) \
|| HAS_DRIVER(TMC2209) \
|| HAS_DRIVER(TMC2660) \
|| HAS_DRIVER(TMC5130) \
|| HAS_DRIVER(TMC5160) )
So please cut and paste what your drivers lines say in your configuration.h and paste them here
It should say
#define X_DRIVER_TYPE TMC2130
#define Y_DRIVER_TYPE TMC2130
note the // before the #define have been removed, the TMC must be in upper case and there must be no spaces or any other characters after the TMC and before the number.
↧
Re: MKS SGen L V1.0
Ok so after failing with atom and sublime I removed everything that was done/installed for atom/sublime and installed platformio for vscode.
Build completed on the first try and then upload hit a snag. Sorted that out by editing the platformio.ini for the proper env.
Now the board is flashed and the reprap full graphic controller works. However, I am getting a tmc connection error.
So far, my tmc2209 drivers are installed per direction for uart mode and I specified tmc2209 in configuration.h for x,y,z,e0 motors.
This is my first time with a 32bit board and trying uart. Any tips on the next step to get the tmc working?
Build completed on the first try and then upload hit a snag. Sorted that out by editing the platformio.ini for the proper env.
Now the board is flashed and the reprap full graphic controller works. However, I am getting a tmc connection error.
So far, my tmc2209 drivers are installed per direction for uart mode and I specified tmc2209 in configuration.h for x,y,z,e0 motors.
This is my first time with a 32bit board and trying uart. Any tips on the next step to get the tmc working?
↧
Re: MKS SGen L V1.0
You just need the Uart jumpers on foe each stepper driver that has a uart, no other jumpers under the stepper drivers
↧
↧
Re: MKS SGen L V1.0
Quote
Dust
You just need the Uart jumpers on foe each stepper driver that has a uart, no other jumpers under the stepper drivers
This is how it is currently configured as far as jumpers are concerned.
↧
Re: MKS SGen L V1.0
You sure the stepper modules are in correctly?
with mks the pins are color coded black to black and green to green
with mks the pins are color coded black to black and green to green
↧
Re: TMC2130 Not Moving. Marlin 2.0. M122 "Unknown command"
Yes, I have enabled the TMC 2130 type of driver. It is really weird to see the next stuff when I send the M122 command:
SENDING:M122
X Y
Enabled false false
Set current 900 800
RMS current 887 795
MAX current 1251 1121
Run current 28/31 25/31
Hold current 5/31 5/31
CS actual 5/31 5/31
PWM scale 0 0
vsense 1=.18 1=.18
stealthChop true true
msteps 16 16
tstep max max
pwm
threshold
[mm/s]
OT prewarn false false
off time 4 4
blank time 24 24
hysteresis
-end 2 2
-start 1 1
Stallguard thrs 8 8
DRVSTATUS X Y
stallguard
sg_result 0 0
fsactive
stst * *
olb
ola
s2gb
s2ga
otpw
ot
Driver registers:
X 0x80:05:00:00
Y 0x80:05:00:00
Testing X connection... OK
Testing Y connection... OK
And still have absolutely no movement on both X and Y motors, it is really weird I don't feel them tensioning like they were on. Probably a hardware Issue on my new watterrot drivers :?.
SENDING:M122
X Y
Enabled false false
Set current 900 800
RMS current 887 795
MAX current 1251 1121
Run current 28/31 25/31
Hold current 5/31 5/31
CS actual 5/31 5/31
PWM scale 0 0
vsense 1=.18 1=.18
stealthChop true true
msteps 16 16
tstep max max
pwm
threshold
[mm/s]
OT prewarn false false
off time 4 4
blank time 24 24
hysteresis
-end 2 2
-start 1 1
Stallguard thrs 8 8
DRVSTATUS X Y
stallguard
sg_result 0 0
fsactive
stst * *
olb
ola
s2gb
s2ga
otpw
ot
Driver registers:
X 0x80:05:00:00
Y 0x80:05:00:00
Testing X connection... OK
Testing Y connection... OK
And still have absolutely no movement on both X and Y motors, it is really weird I don't feel them tensioning like they were on. Probably a hardware Issue on my new watterrot drivers :?.
↧
Re: MKS SGen L V1.0
Quote
Dust
You sure the stepper modules are in correctly?
with mks the pins are color coded black to black and green to green
Steppers are in correctly.
Maybe it was a bad initial flash.
I did as the wiki suggested and deleted the files from the sdcard of the board. Then I powered down, disconnected all connections (only had the graphics controller connected) and waited 30 seconds instead of 10. Reconnected the controller and powered up, then rebuilt and uploaded the firmware and the error is now gone.
Weird. But now moving on again.
Thanks so far Dust for your responses (tu)
↧
↧
Re: TMC2130 Not Moving. Marlin 2.0. M122 "Unknown command"
check your ends stops with a M119 command. Any that say triggered that aren't is a problem.
↧
Re: TMC2130 Not Moving. Marlin 2.0. M122 "Unknown command"
Hi. I have verified that and the return Open on both on the axis. Could this be a motor wiring issue? I have been running my printer for some weeks with A4988 and LV8729 without any problems. Also found on watterrot that the motherboard shouldn't be powered by usb alone without the PSU, and doing that could damage the IC. I'm worried that is my case, I didn't connect it to the PSU when setting up the marlin. That is a shame if that is. :(
↧
Re: MKS SGen L V1.0
I can't seem to get my motors to move.
I am using the mks tmc2209 v1 that came with the sgen L.
I removed the diag jumpers that were installed for sensorless homing since I read that the mks v1 2209 doesn't support it.
When I try to home any axis no motors move and the board halts with a "homing failed" message.
Any ideas? Here is the output from M122.
13:15:49.358 : X Y Z Z2 E
13:15:49.358 : Address 0 0 0 0 0
13:15:49.389 : Enabled false false false false false
13:15:49.389 : Set current 800 800 800 800 800
13:15:49.436 : RMS current 795 795 795 795 795
13:15:49.483 : MAX current 1121 1121 1121 1121 1121
13:15:49.483 : Run current 25/31 25/31 25/31 25/31 25/31
13:15:49.483 : Hold current 17/31 17/31 17/31 17/31 17/31
13:15:49.529 : CS actual 17/31 17/31 17/31 17/31 17/31
13:15:49.578 : PWM scale 20 20 20 20 20
13:15:49.625 : vsense 1=.18 1=.18 1=.18 1=.18 1=.18
13:15:49.656 : stealthChop true true true true true
13:15:49.703 : msteps 16 16 16 16 16
13:15:49.750 : tstep max max max max max
13:15:49.750 : pwm
13:15:49.750 : threshold 79 79 641 641 263
13:15:49.796 : [mm/s] 100 100 3 3 30
13:15:49.843 : OT prewarn false false false false false
13:15:49.890 : off time 0 0 0 0 0
13:15:49.937 : blank time 24 24 24 24 24
13:15:49.937 : hysteresis
13:15:49.984 : -end -1 -1 -1 -1 -1
13:15:50.015 : -start 1 1 1 1 1
13:15:50.015 : Stallguard thrs 0 0 0 0 0
13:15:50.015 : DRVSTATUS X Y Z Z2 E
13:15:50.062 : stst * * * * *
13:15:50.109 : olb
13:15:50.156 : ola
13:15:50.203 : s2gb
13:15:50.250 : s2ga
13:15:50.281 : otpw
13:15:50.328 : ot
13:15:50.375 : 157C
13:15:50.421 : 150C
13:15:50.468 : 143C
13:15:50.515 : 120C
13:15:50.515 : s2vsa
13:15:50.515 : s2vsb
13:15:50.515 : Driver registers:
13:15:50.515 : X 0xC0:11:00:00
13:15:50.531 : Y 0xC0:11:00:00
13:15:50.531 : Z 0xC0:11:00:00
13:15:50.546 : Z2 0xC0:11:00:00
13:15:50.562 : E 0xC0:11:00:00
13:15:50.562 : Testing X connection... OK
13:15:50.578 : Testing Y connection... OK
13:15:50.578 : Testing Z connection... OK
13:15:50.593 : Testing Z2 connection... OK
13:15:50.593 : Testing E connection... OK
I am using the mks tmc2209 v1 that came with the sgen L.
I removed the diag jumpers that were installed for sensorless homing since I read that the mks v1 2209 doesn't support it.
When I try to home any axis no motors move and the board halts with a "homing failed" message.
Any ideas? Here is the output from M122.
13:15:49.358 : X Y Z Z2 E
13:15:49.358 : Address 0 0 0 0 0
13:15:49.389 : Enabled false false false false false
13:15:49.389 : Set current 800 800 800 800 800
13:15:49.436 : RMS current 795 795 795 795 795
13:15:49.483 : MAX current 1121 1121 1121 1121 1121
13:15:49.483 : Run current 25/31 25/31 25/31 25/31 25/31
13:15:49.483 : Hold current 17/31 17/31 17/31 17/31 17/31
13:15:49.529 : CS actual 17/31 17/31 17/31 17/31 17/31
13:15:49.578 : PWM scale 20 20 20 20 20
13:15:49.625 : vsense 1=.18 1=.18 1=.18 1=.18 1=.18
13:15:49.656 : stealthChop true true true true true
13:15:49.703 : msteps 16 16 16 16 16
13:15:49.750 : tstep max max max max max
13:15:49.750 : pwm
13:15:49.750 : threshold 79 79 641 641 263
13:15:49.796 : [mm/s] 100 100 3 3 30
13:15:49.843 : OT prewarn false false false false false
13:15:49.890 : off time 0 0 0 0 0
13:15:49.937 : blank time 24 24 24 24 24
13:15:49.937 : hysteresis
13:15:49.984 : -end -1 -1 -1 -1 -1
13:15:50.015 : -start 1 1 1 1 1
13:15:50.015 : Stallguard thrs 0 0 0 0 0
13:15:50.015 : DRVSTATUS X Y Z Z2 E
13:15:50.062 : stst * * * * *
13:15:50.109 : olb
13:15:50.156 : ola
13:15:50.203 : s2gb
13:15:50.250 : s2ga
13:15:50.281 : otpw
13:15:50.328 : ot
13:15:50.375 : 157C
13:15:50.421 : 150C
13:15:50.468 : 143C
13:15:50.515 : 120C
13:15:50.515 : s2vsa
13:15:50.515 : s2vsb
13:15:50.515 : Driver registers:
13:15:50.515 : X 0xC0:11:00:00
13:15:50.531 : Y 0xC0:11:00:00
13:15:50.531 : Z 0xC0:11:00:00
13:15:50.546 : Z2 0xC0:11:00:00
13:15:50.562 : E 0xC0:11:00:00
13:15:50.562 : Testing X connection... OK
13:15:50.578 : Testing Y connection... OK
13:15:50.578 : Testing Z connection... OK
13:15:50.593 : Testing Z2 connection... OK
13:15:50.593 : Testing E connection... OK
↧
Re: Marlin 2.0 Hardware
Thanks for the reply.
My current setup is an Arduino mega with ramps 1.4 and TMC2130 drivers.
I guess 32bit is the way to go with a new build? I hadn't realised Marlin 2.0 would run on an 8 bit chip.
For the rest of the hardware I'm looking at the bear upgrade frame with mk52 bed and E3D Hemera.
I'm not likely to want more than one extruder.
My current setup is an Arduino mega with ramps 1.4 and TMC2130 drivers.
I guess 32bit is the way to go with a new build? I hadn't realised Marlin 2.0 would run on an 8 bit chip.
For the rest of the hardware I'm looking at the bear upgrade frame with mk52 bed and E3D Hemera.
I'm not likely to want more than one extruder.
↧
↧
Re: Problem z axis
Quote
Rhartl
Another maybe unrelated problem is that the EEPROM setting in Marlin is V56 and the EEPROM I have on the printer is V55. Do you know how to fix that?
From terminal, execute:
M502
M500
M501
The "M502" will reset the EEPROM values to the defaults defined in your configuration files. The "M500" will store the new values to EEPROM. The "M501" will read the values back.
You should get into the habit of doing this every time you install new firmware.
↧
Re: Lin advance compatible drivers
There are a couple of issues with Linear Advance and TMC drivers. The first is that if Linear Advance is enabled, it is possible that step pulses may be too short for the drivers. Recent versions of Marlin 2.0.x fix this problem, but if you're running an older release you need to use either the SQUARE_WAVE_STEPPING configuration option or set MINIMUM_STEPPER_PULSE explicitly to 1 or higher. If you are running the TMC drivers in standalone mode (TMC2208_STANDALONE or TMC2209_STANDALONE) you cannot use the SQUARE_WAVE_STEPPING option and must instead increase MINIMUM_STEPPER_PULSE.
The other is that TMC2208 drivers can have problems if configured for StealthChop on the extruder (TMC2209 drivers don't have this problem). It is not certain that TMC2208 in StealthChop won't work, but it is unreliable. The workaround for this is to use SpreadCycle on the extruder.
TL;DR: Use a recent version of Marlin 2.0.x, if you have a TMC2208 enable SpreadCycle on the extruder.
The other is that TMC2208 drivers can have problems if configured for StealthChop on the extruder (TMC2209 drivers don't have this problem). It is not certain that TMC2208 in StealthChop won't work, but it is unreliable. The workaround for this is to use SpreadCycle on the extruder.
TL;DR: Use a recent version of Marlin 2.0.x, if you have a TMC2208 enable SpreadCycle on the extruder.
↧
Re: TMC2130 Not Moving. Marlin 2.0. M122 "Unknown command"
TMC2130 definitely need 12/24v before they can move stepper motors..
I've never heard of any issues setting up with only usb. (apart from boards that wont take power from usb at all)
You do need to set the vref perhaps 900 and 800 are insufficient for your stepper motors [marlinfw.org]
Stepper motor wiring should be the same as A4988
How about posing some configuration files (in a zip or on pastebin)
And so pictures how how you have it all wired.
I've never heard of any issues setting up with only usb. (apart from boards that wont take power from usb at all)
You do need to set the vref perhaps 900 and 800 are insufficient for your stepper motors [marlinfw.org]
Stepper motor wiring should be the same as A4988
How about posing some configuration files (in a zip or on pastebin)
And so pictures how how you have it all wired.
↧
Re: TMC2130 Not Moving. Marlin 2.0. M122 "Unknown command"
Ohhh, yeah, if you didn't connect to the PSU, they show 'false' while connection is 'ok'. Just connect the PSU and try to move them. All good. Just be careful with any operations, always power down the machine before unplugging things or plugging things in.
↧
↧
Re: Help with Controlling an LED While Idle and Printing
The latter would be easier and wouldn't need firmware modifications
but please don't use a mega... use a attiny85 or something similarly small.
A mega would be like dropping a mountain on a nail in lei of a hammer.
but please don't use a mega... use a attiny85 or something similarly small.
A mega would be like dropping a mountain on a nail in lei of a hammer.
↧
Marlin bugfix-2.0.x Additional Preheat settings
I was able to add additional Preheat settings to the Marlin bugfix-2.0.x branch.
By default PLA and ABS are already defined.
I have added HIPS, PP, PET, FLEX and NYLON definitions.
The fork can be found here: Marlin bugfix-2.0.x fork
So what I am attempting to do now is get the menu setup in such a way that if a "PREHEAT_#_LABEL" is not defined,
skip it in the menu and add the next defined preheat setting.
What I am aiming for is much like the "CUSTOM_USER_MENUS" does but integrated into the Temperature sub menu like PLA and ABS is currently.
I know I should be using #ifdef to accomplish this but I can't seem to get it to work if one of the predefined labels is missing.
To see the changes I have made, look HERE.
By default PLA and ABS are already defined.
I have added HIPS, PP, PET, FLEX and NYLON definitions.
The fork can be found here: Marlin bugfix-2.0.x fork
So what I am attempting to do now is get the menu setup in such a way that if a "PREHEAT_#_LABEL" is not defined,
skip it in the menu and add the next defined preheat setting.
What I am aiming for is much like the "CUSTOM_USER_MENUS" does but integrated into the Temperature sub menu like PLA and ABS is currently.
I know I should be using #ifdef to accomplish this but I can't seem to get it to work if one of the predefined labels is missing.
To see the changes I have made, look HERE.
↧
Could use some help with step calculations
I have an Anycubic Kossel Linear Plus, with Marlin 1.1.9 loaded. The steps/mm is now calculated as follows:
My question is - what is the correct way to get this enlargement factor into configuration.h?
Or do I have another problem that I've missed?
Thanks,
David
// variables to calculate steps #define XYZ_FULL_STEPS_PER_ROTATION 200 // These are the setting for the stock Stepper Motors, pulleys and Belts on the AnyCubic Kossel #define XYZ_MICROSTEPS 16 #define XYZ_BELT_PITCH 2 #define XYZ_PULLEY_TEETH 20 // delta speeds must be the same on xyz #define DEFAULT_XYZ_STEPS_PER_UNIT ((XYZ_FULL_STEPS_PER_ROTATION) * (XYZ_MICROSTEPS) / double(XYZ_BELT_PITCH) / double(XYZ_PULLEY_TEETH)) #define DEFAULT_AXIS_STEPS_PER_UNIT { DEFAULT_XYZ_STEPS_PER_UNIT, DEFAULT_XYZ_STEPS_PER_UNIT, DEFAULT_XYZ_STEPS_PER_UNIT, 98 } // default steps per unit for Kossel (GT2, 20 tooth)Unfortunately my parts are coming out slightly smaller than intended. especially in X and Y (probably Z as well, as it's a delta) - to get the exact size I have increase the scale in the slicer by 1.012.
My question is - what is the correct way to get this enlargement factor into configuration.h?
Or do I have another problem that I've missed?
Thanks,
David
↧