Go Down

Topic: another cnc mill questionaire (Read 32 times) previous topic - next topic

mmcp42

#70
Jan 11, 2011, 03:31 pm Last Edit: Jan 11, 2011, 03:32 pm by mmcp42 Reason: 1
did you download v1.03?
you should also check the options settings are "sensible"

you may find that v1.02 has messed up some of the settings
if you want - you can send me your CNCconfig.ini
XP - it should be in the windows folder

a high pitched sound usually means the feed rate is set too high and the motors can't keep up
but if it works with 1.01 then that's odd!

I guess you're using the same version of the sketch?
did you change all the init.pde settings properly?

let me know...
there are only 10 types of people
them that understands binary
and them that doesn't

theMPloc

hi again. i am using cncdriver 1.03. which is installed in a seperate folder. i have no clue where to find cncdriver.cfg ;)

here is the init.pde that i use:
Code: [Select]
// constant for mm conversions
//============================
#define MM_PER_INCH 25.4

//=====================================
// define the parameters of our machine
//=====================================
#define X_STEPS_PER_INCH 32512
#define Y_STEPS_PER_INCH 32512
#define Z_STEPS_PER_INCH 32512

//==================================
//our maximum feedrates units/minute
//==================================
#define FAST_XY_FEEDRATE_INCH 50.0
#define FAST_Z_FEEDRATE_INCH  50.0

//=======================
// Units in curve section
//=======================
#define CURVE_SECTION_MM 0.5

//=========================================
// Set to one if sensor outputs inverting
// (ie: 1 means open, 0 means closed)
// RepRap opto endstops are *not* inverting
//=========================================
#define SENSORS_INVERTING 0

//===============================================
// digital i/o pin assignment
// odd choices are for convenience to connectors
// NB Arduino pins 14-19 correspond to analog 0-5
//===============================================

//============================
// pin 0 used for serial comms
// pin 1 used for serial comms
//============================
#define SERIAL_RX_PIN 0
#define SERIAL_TX_PIN 1

//=======================================================
// shared enable pin (for rapid shutdown off all motors!)
//=======================================================
#define X_ENABLE_PIN 8
#define Y_ENABLE_PIN 18  // sb8
#define Z_ENABLE_PIN 19  // sb8

//===========================
// cartesian bot pins X-plane
// 6 7 A0 A1
//===========================
#define X_STEP_PIN 7
#define X_DIR_PIN 6
#define X_MIN_PIN 14
#define X_MAX_PIN 15

//===========================
// cartesian bot pins Y-plane
// 2 3 4 5
//===========================
#define Y_STEP_PIN 2
#define Y_DIR_PIN 3
#define Y_MIN_PIN 5
#define Y_MAX_PIN 4

//==================================================
// pin 13 used for heartbeat as it already has a LED
//==================================================
# define HEARTBEAT_PIN 13

//===========================
// cartesian bot pins Z-plane
// 9 10 11 12
//===========================
#define Z_STEP_PIN 9
#define Z_DIR_PIN 10
#define Z_MIN_PIN 11  // sb 11
#define Z_MAX_PIN 12  // sb 12

//==============
// motor control
// A4
//==============
#define MOTOR_ON_PIN 18           // HIGH = ON, LOW = OFF

//========================================
// motor direction doesn't have a pin yet!
//========================================
// #define MOTOR_DIRECTION_PIN 20    // HIGH = Clockwise, LOW = Anti-clockwise

//======================
// panic stop/reset
// A2 A3
//======================
#define PANIC_STOP_PIN 16
#define PANIC_OVER_PIN 17

//==================================================
// pin 19 (A5) is used for serial output to display
//==================================================
# define LCD_SERIAL_PIN 19





mmcp42

that looks ok
I guess you are using the same sketch with CNCdriver 1.01 and 1.03?

CNCconfig.ini is the file you want
should be in windows folder
or get the PC to search for it!
there are only 10 types of people
them that understands binary
and them that doesn't

theMPloc

#73
Jan 11, 2011, 03:50 pm Last Edit: Jan 11, 2011, 03:53 pm by theMPloc Reason: 1
i found something out (its funny)

when i press the jog to the left button and nothing happens - then i (manually press the x max switch one time and then press the jog to the left button again the machine moves to the left. if i then press (manually) the x min switch , the machine stops.
Code: [Select]
[Main]
Top=0
Left=0
Height=612
Width=1032
FilePanelWidth=480
ReplyPanelWidth=203
JogPanelWidth=200
MainPanelHeight=225
[Options]
Top=149
Left=509
Height=589
Width=441
[Serial]
Port=COM5
BaudRate=19200
[Drawing]
PenWidth=3
PenColor=16777215
PixelsPerUnit=256
OriginX=2,5
OriginY=2,5
CursorPenWidth=1
CursorColor=65535
CursorSize=16
StepSize=64
DoStep=0
[Timer]
ShortCommandTick=10000
LongCommandTick=30000
TimerTick=50
[GCommands]
RapidMove=G0
RapidMove2=G00
FeedMove=G1
FeedMove2=G01
ClockwiseArc=G2
ClockwiseArc2=G02
AntiClockwiseArc=G3
AntiClockwiseArc2=G03
Dwell=G4
Dwell2=G04
Inches=G20
MM=G21
Absolute=G90
Relative=G91
[MCommands]
GetPosition=M114
Start=M254
RequestLast=M255
[CommandInitCommands]
Count=0
[JogCommands]
JogIncX=RapidMove X10
JogDecX=RapidMove X-10
JogIncY=RapidMove Y10
JogDecY=RapidMove Y-10
JogIncZ=RapidMove Z10
JogDecZ=RapidMove Z-10
[HomeCommands]
HomeStart=RapidMove
HomeEnd=
HomeX=
HomeY=
HomeZ=


mmcp42

aha I can see that you are a few settings missing
easiest way to fix is with 1.03
tools :: options
initialisation tab
add

Absolute
MM


Home tab
set
Move Command RapidMove
X clause X-100
Y clause Y-100
Z clause Z-100

Save

try that!
there are only 10 types of people
them that understands binary
and them that doesn't

Go Up