Vladimir
Forum Replies Created
-
AuthorPosts
-
VladimirParticipant
Hello, to all from Russia (St. Petersburg).
Some time I used Polargraph Sandy Noble, very inspiring, but I prefer Zarplotter or it is necessary to build a machine with rectangular axes according to the CNC principle.
I want to build Zarplotter …
I bought a table and firmware. ))
I have Arduino Mega 2560 R3 + Ramps1.4 + 4 stepper motor 17HS4401 + 2004 LCD Smart Controller with memory card
Problem in compiling the firmware!
in configure.h
I replaced in rows
33
#define MACHINE_STYLE ZARPLOTTER
57
#define MOTHERBOARD BOARD_RAMPS
79-86
#define MICROSTEPS (16.0) // change this. microstepping on this microcontroller
#define DEGREES_PER_STEP (1.8) // change this. as advertised by the stepper motor maker#define NORMAL_MOTOR_STEPS (200.0 / DEGREES_PER_STEP) // 360 / 0.9 = 400. 360 / 1.8 = 200.
#define STEPS_PER_TURN (NORMAL_MOTOR_STEPS * MICROSTEPS) // default number of steps per turn * microsteps
#define PULLEY_PITCH (2 * 20.0) // 2mm per tooth, 20 teeth.
#define THREAD_PER_STEP (PULLEY_PITCH / STEPS_PER_TURN)
#define MICROSTEP_PER_DEGREE (STEPS_PER_TURN / 360.0)I get a compilation error:
//////////////////
Arduino: 1.6.7 (Windows 10), Плата:”Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”In file included from sketch\Makelangelo-firmware.ino.cpp:1:0:
C:\Users\kio\Documents\Arduino\Makelangelo-firmware-new\Makelangelo-firmware\robot_zarplotter.ino: In function ‘void IK(float*, long int*)’:
C:\Users\kio\Documents\Arduino\Makelangelo-firmware-new\Makelangelo-firmware\robot_zarplotter.ino:23:16: error: ‘limit_ymax’ was not declared in this scope
dy = abs(y – limit_ymax)-ZARPLOTTER_COMPENSATION; dx = abs(x – limit_xmin)-ZARPLOTTER_COMPENSATION; L = sqrt(dx*dx+dy*dy); motorStepArray[0] = lround( L / THREAD_PER_STEP ); // M0 (top left)
^
C:\Users\kio\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:94:18: note: in definition of macro ‘abs’
#define abs(x) ((x)>0?(x):-(x))
^
C:\Users\kio\Documents\Arduino\Makelangelo-firmware-new\Makelangelo-firmware\robot_zarplotter.ino:23:67: error: ‘limit_xmin’ was not declared in this scope
dy = abs(y – limit_ymax)-ZARPLOTTER_COMPENSATION; dx = abs(x – limit_xmin)-ZARPLOTTER_COMPENSATION; L = sqrt(dx*dx+dy*dy); motorStepArray[0] = lround( L / THREAD_PER_STEP ); // M0 (top left)
^
C:\Users\kio\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:94:18: note: in definition of macro ‘abs’
#define abs(x) ((x)>0?(x):-(x))
^
C:\Users\kio\Documents\Arduino\Makelangelo-firmware-new\Makelangelo-firmware\robot_zarplotter.ino:24:67: error: ‘limit_xmax’ was not declared in this scope
dy = abs(y – limit_ymax)-ZARPLOTTER_COMPENSATION; dx = abs(x – limit_xmax)-ZARPLOTTER_COMPENSATION; R = sqrt(dx*dx+dy*dy); motorStepArray[1] = lround( R / THREAD_PER_STEP ); // M1 (top right)
^
C:\Users\kio\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:94:18: note: in definition of macro ‘abs’
#define abs(x) ((x)>0?(x):-(x))
^
C:\Users\kio\Documents\Arduino\Makelangelo-firmware-new\Makelangelo-firmware\robot_zarplotter.ino:25:16: error: ‘limit_ymin’ was not declared in this scope
dy = abs(y – limit_ymin)-ZARPLOTTER_COMPENSATION; dx = abs(x – limit_xmin)-ZARPLOTTER_COMPENSATION; U = sqrt(dx*dx+dy*dy); motorStepArray[2] = lround( U / THREAD_PER_STEP ); // M2 (bottom left)
^
C:\Users\kio\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:94:18: note: in definition of macro ‘abs’
#define abs(x) ((x)>0?(x):-(x))
^
C:\Users\kio\Documents\Arduino\Makelangelo-firmware-new\Makelangelo-firmware\robot_zarplotter.ino: In function ‘int FK(long int*, float*)’:
C:\Users\kio\Documents\Arduino\Makelangelo-firmware-new\Makelangelo-firmware\robot_zarplotter.ino:49:14: error: ‘limit_xmax’ was not declared in this scope
float b = (limit_xmax-limit_xmin);
^
C:\Users\kio\Documents\Arduino\Makelangelo-firmware-new\Makelangelo-firmware\robot_zarplotter.ino:49:25: error: ‘limit_xmin’ was not declared in this scope
float b = (limit_xmax-limit_xmin);
^
C:\Users\kio\Documents\Arduino\Makelangelo-firmware-new\Makelangelo-firmware\robot_zarplotter.ino:64:14: error: ‘limit_ymax’ was not declared in this scope
axies[1] = limit_ymax – (sqrt( 1.0 – theta * theta ) * a);
^
exit status 1
////////////////////What am I doing wrong or what have I not done !?
-
AuthorPosts