Welcome! Log In Create A New Profile

Advanced

Complies but with errors

Posted by Suggy 
Complies but with errors
July 10, 2017 05:47PM
Hi all
Having a little trouble compiling Marlin 1.1.0 RC7 with IDE 1.8.3
I get the following errors

In file included from sketch\MarlinConfig.h:30:0,

from C:\Users\Ian\Desktop\3D\CTC Large\RC7\Marlin-RC\Marlin\Marlin.ino:38:

sketch\Configuration.h:718:28: warning: ISO C99 requires whitespace after the macro name

#define BED_CENTER_AT_140.75_78.5 //#define BED_CENTER_AT_149_75

I know its something to do with updating IDE to 1.8.3 how do I correct these errors.
I have tried going back to 1.0.6, 1.7.9 and 1.7.10
These give different errors than these.
I cannot remember which IDE I used as I have 3 machines all running different versions of Marlin

Any help in correcting these errors would be much appreciated

Thanks in advanced for any help

Suggy
Re: Complies but with errors
July 10, 2017 06:14PM
Quote
Suggy
Hi all
Having a little trouble compiling Marlin 1.1.0 RC7 with IDE 1.8.3
I get the following errors

In file included from sketch\MarlinConfig.h:30:0,

from C:\Users\Ian\Desktop\3D\CTC Large\RC7\Marlin-RC\Marlin\Marlin.ino:38:

sketch\Configuration.h:718:28: warning: ISO C99 requires whitespace after the macro name

#define BED_CENTER_AT_140.75_78.5 //#define BED_CENTER_AT_149_75

I know its something to do with updating IDE to 1.8.3 how do I correct these errors.
I have tried going back to 1.0.6, 1.7.9 and 1.7.10
These give different errors than these.
I cannot remember which IDE I used as I have 3 machines all running different versions of Marlin

Any help in correcting these errors would be much appreciated

Thanks in advanced for any help

Suggy


Sorted, dont know why but I had to remove both .5 from the line
Re: Complies but with errors
July 10, 2017 11:31PM
Ah... That symbol is: #define BED_CENTER_AT_0_0

You don't get to change those numbers. But you can turn on Safe Homing and set the location.

Edited 1 time(s). Last edit at 07/10/2017 11:32PM by Roxy.
Re: Complies but with errors
July 11, 2017 01:20AM
Ok thanks, is this new? as 0 0 would put the hotend at the rear right of the bed
Re: Complies but with errors
July 11, 2017 01:53AM
Think I have figured out what you mean!!

// @section homing

// The center of the bed is at (X=0, Y=0)
#define BED_CENTER_AT_140_78 //#define BED_CENTER_AT_149_75

// Manually set the home position. Leave these undefined for automatic settings.
// For DELTA this is the top-center of the Cartesian print volume.
//#define MANUAL_X_HOME_POS 0
//#define MANUAL_Y_HOME_POS 0
//#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing

// Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
//
// With this feature enabled:
//
// - Allow Z homing only after X and Y homing AND stepper drivers still enabled.
// - If stepper drivers time out, it will need X and Y homing again before Z homing.
// - Move the Z probe (or nozzle) to a defined XY point before Z Homing when homing all axes (G28).
// - Prevent Z homing when the Z probe is outside bed area.
//#define Z_SAFE_HOMING

#if ENABLED(Z_SAFE_HOMING)
#define Z_SAFE_HOMING_X_POINT ((X_MIN_POS + X_MAX_POS) / 2) // X point for Z homing when homing all axis (G28).
#define Z_SAFE_HOMING_Y_POINT ((Y_MIN_POS + Y_MAX_POS) / 2) // Y point for Z homing when homing all axis (G28).
#endif

// Homing speeds (mm/m)
#define HOMING_FEEDRATE_XY (50*60)
#define HOMING_FEEDRATE_Z (2*1000)

718 set to 0_0
Line 737,738 puts the bed center at half the max X,Y ( / 2 ) print area?
Just need to uncomment line 734 //#define Z_SAFE_HOMING?
OR do I need to use the
//#define MANUAL_X_HOME_POS 0
//#define MANUAL_Y_HOME_POS 0
//#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing?

All this may have been related to the problem I had getting it to print in the center of the bed a while ago.

Please do correct me if I'm wrong (prob am) as this is still a BIG learning curve for me.
Attached a pic of my machine. Copy of a CTC bizer with some upgrades
Attachments:
open | download - 18338684_10212754140509237_421212644_o.jpg (106.1 KB)
Re: Complies but with errors
July 11, 2017 05:48AM
your still missing it...

you have two options

"//#define BED_CENTER_AT_0_0"

or

"#define BED_CENTER_AT_0_0"

You cannot change the number as this is a variable name not a parameter (well its a define.... or not defined... but the code looks for that exact name)

You should leave it commented out unless your using a delta.

0,0 is either front left or back right position.
Re: Complies but with errors
July 11, 2017 01:41PM
I know it should be once and not twice, the second one after the // (commented out) is what it was before I changed it.
What I don't understand is how can BED_CENTER_AT_0_0 when 0,0 is minimum endstop. I was under the impression that BED CENTER was half of the bed/print area?
Re: Complies but with errors
July 11, 2017 07:21PM
On a delta type printer 0,0 is centre of the bed. Deltas also use all max endstops, when it homes it is at 0,0,max height.
Re: Complies but with errors
July 12, 2017 01:53AM
Ok but on a Cartesian style printer how will it know where the center of the bed will be?
Re: Complies but with errors
July 12, 2017 04:22AM
It doesn’t

The printer knows nothing about the centre of the bed. It knows where 0,0 is how large the bed is.

The only thing that needs to know where centre of the bed is the slicer, it just takes the size of the bed and divides by 2
Re: Complies but with errors
July 12, 2017 07:37AM
Ok thanks. I tryed that in S3D and it always wentry to the rear right.
I will have a look at it again when I put it back together (in bits fitting piezo self leveling to it)
Thanks for the help/info, learning all the time.
Sorry, only registered users may post in this forum.

Click here to login