re: questions

88 views
Skip to first unread message

Reza Naima

unread,
Feb 2, 2011, 1:45:16 PM2/2/11
to rstep, ddavi...@gmail.com





1)What does it depend? how can we solve it?
I'm not sure, looks like you've not included all the required files in the build.  You should have 11 files.
2)Furthermore, we wonder if we can go from 1 to 2 without changing the code (?)
oh, and we
rstep card is excellent, but for us we use the largest cnc is not suitable.
what do you mean by from 1 to 2?
3)we need to restore basic functions step / dir / enable ... where we
have to work for you?
You can redirect the step/dir/enable to the spare header on the PCB and connect that to a secondary stepper controller that can handle more power.
4)how do I add features without ruining the times?
what features?
5)what is the maximum step frequency?
not sure.  I'll have to run some tests.

-reza



From: davide bortolami <ddavi...@gmail.com>
Date: Wednesday, February 02, 2011 8:04 AM
To: re...@reza.net

hi. first of all I apologize for my English, I'm Italian and not speak it well.
rstep the project is really fantastic!
rstep I saw, I and my friend we bought an Arduino mega.
we have the intention to cooperate and continue with your project,
which is very interesting.

but we have some questions ... a lot ...

when we try to check the firmware, arduino knows us many errors:

sketch_feb02a:-1: error: 'axis' was not declared in this scope
sketch_feb02a:-1: error: variable or field 'setXYZ' declared void
sketch_feb02a:-1: error: 'FloatPoint' was not declared in this scope
sketch_feb02a:-1: error: 'fp' was not declared in this scope
sketch_feb02a:-1: error: 'FILE' has not been declared
sketch_feb02a:-1: error: 'axis' does not name a type
config:2: error: variable or field 'set_target' declared void
config:2: error: 'FloatPoint' was not declared in this scope
config:2: error: 'fp' was not declared in this scope
config:3: error: variable or field 'set_position' declared void
config:3: error: 'FloatPoint' was not declared in this scope
config:3: error: 'fp' was not declared in this scope
sketch_feb02a.cpp: In function 'void config_save()':
config:10: error: 'config' was not declared in this scope
config:11: error: invalid application of 'sizeof' to incomplete type 'config_t'
config:12: error: 'EEPROM' was not declared in this scope
config:15: error: 'EEPROM' was not declared in this scope
sketch_feb02a.cpp: In function 'void config_read()':
config:21: error: 'config' was not declared in this scope
config:22: error: invalid application of 'sizeof' to incomplete type 'config_t'
config:23: error: 'EEPROM' was not declared in this scope
config:26: error: 'EEPROM' was not declared in this scope
sketch_feb02a.cpp: In function 'void config_dump()':
config:41: error: 'config' was not declared in this scope
config:41: error: 'Message3' was not declared in this scope
config:43: error: 'Message3F' was not declared in this scope
config:44: error: 'Message1F' was not declared in this scope
sketch_feb02a.cpp: In function 'boolean manual_step(uint8_t, uint8_t)':
manualControl:6: error: 'axis_array' was not declared in this scope
manualControl:10: error: 'config' was not declared in this scope
manualControl:20: error: 'can_move' cannot be used as a function
sketch_feb02a.cpp: In function 'void mcp4351_init()':
mcp4351:41: error: 'config' was not declared in this scope
sketch_feb02a.cpp: In function 'void motor_on()':
motor:5: error: 'config' was not declared in this scope
sketch_feb02a.cpp: In function 'bool can_move(axis_t*)':
myStepper:44: error: 'bool can_move(axis_t*)' redeclared as different
kind of symbol
sketch_feb02a:-1: error: previous declaration of 'bool can_move'
sketch_feb02a.cpp: In function 'void setXYZ(FloatPoint*)':
process_string:12: error: 'config' was not declared in this scope
process_string:12: error: 'xaxis' was not declared in this scope
process_string:14: error: 'yaxis' was not declared in this scope
process_string:16: error: 'zaxis' was not declared in this scope
sketch_feb02a.cpp: In function 'void process_string(uint8_t*)':
process_string:49: error: 'set_target' was not declared in this scope
process_string:57: error: 'feedrate' was not declared in this scope
process_string:60: error: 'feedrate' was not declared in this scope
process_string:73: error: 'xaxis' was not declared in this scope
process_string:74: error: 'yaxis' was not declared in this scope
process_string:107: error: 'zaxis' was not declared in this scope
process_string:124: error: 'config' was not declared in this scope
process_string:140: error: 'zeros' was not declared in this scope
process_string:156: error: 'zaxis' was not declared in this scope
process_string:184: error: 'set_position' was not declared in this scope
process_string:240: error: 'config' was not declared in this scope
process_string:242: error: 'config' was not declared in this scope
process_string:244: error: 'config' was not declared in this scope
process_string:249: error: 'config' was not declared in this scope
process_string:250: error: 'config' was not declared in this scope
process_string:251: error: 'config' was not declared in this scope
process_string:256: error: 'config' was not declared in this scope
process_string:257: error: 'config' was not declared in this scope
process_string:258: error: 'config' was not declared in this scope
process_string:266: error: 'config' was not declared in this scope
process_string:274: error: 'config' was not declared in this scope
process_string:275: error: 'config' was not declared in this scope
process_string:276: error: 'config' was not declared in this scope
process_string:281: error: 'config' was not declared in this scope
process_string:296: error: 'axis_array' was not declared in this scope
process_string:312: error: 'zaxis' was not declared in this scope
process_string:325: error: 'Message1' was not declared in this scope
process_string:339: error: 'quiet' was not declared in this scope
sketch_feb02a.cpp: In function 'void setup()':
rStep:29: error: 'LED_ON' was not declared in this scope
sketch_feb02a.cpp: In function 'void loop()':
rStep:73: error: 'LED_OFF' was not declared in this scope
rStep:77: error: 'LED_ON' was not declared in this scope
sketch_feb02a.cpp: At global scope:
rStep_644:8: error: redefinition of 'bool quiet'
rStep:8: error: 'bool quiet' previously declared here
rStep_644:9: error: redefinition of 'uint8_t command_word [64]'
rStep:9: error: 'uint8_t command_word [64]' previously declared here
rStep_644:10: error: redefinition of 'uint8_t serial_count'
rStep:10: error: 'uint8_t serial_count' previously defined here
rStep_644:11: error: redefinition of 'uint16_t no_data'
rStep:11: error: 'uint16_t no_data' previously defined here
rStep_644:12: error: redefinition of 'axis_t* axis_array [3]'
rStep:12: error: 'axis_t* axis_array [3]' previously declared here
rStep_644:13: error: redefinition of 'config_t config'
rStep:13: error: 'config_t config' previously declared here
rStep_644:14: error: redefinition of 'FloatPoint zeros'
rStep:14: error: 'FloatPoint zeros' previously defined here
rStep_644:15: error: redefinition of 'float feedrate'
rStep:15: error: 'float feedrate' previously declared here
rStep_644:17: error: redefinition of 'axis_t xaxis_data'
rStep:17: error: 'axis_t xaxis_data' previously declared here
rStep_644:18: error: redefinition of 'axis_t yaxis_data'
rStep:18: error: 'axis_t yaxis_data' previously declared here
rStep_644:19: error: redefinition of 'axis_t zaxis_data'
rStep:19: error: 'axis_t zaxis_data' previously declared here
rStep_644:21: error: redefinition of 'axis_t* xaxis'
rStep:21: error: 'axis_t* xaxis' previously declared here
rStep_644:22: error: redefinition of 'axis_t* yaxis'
rStep:22: error: 'axis_t* yaxis' previously declared here
rStep_644:23: error: redefinition of 'axis_t* zaxis'
rStep:23: error: 'axis_t* zaxis' previously declared here
sketch_feb02a.cpp: In function 'void setup()':
rStep_644:29: error: redefinition of 'void setup()'
rStep:25: error: 'void setup()' previously defined here
sketch_feb02a.cpp: In function 'void init_process_string()':
rStep_644:67: error: redefinition of 'void init_process_string()'
rStep:50: error: 'void init_process_string()' previously defined here
sketch_feb02a.cpp: In function 'void loop()':
rStep_644:73: error: redefinition of 'void loop()'
rStep:56: error: 'void loop()' previously defined here
sketch_feb02a.cpp: In function 'void r_move(float)':
stepper_control:117: error: 'can_move' cannot be used as a function


1)What does it depend? how can we solve it?
2)Furthermore, we wonder if we can go from 1 to 2 without changing the code (?)
oh, and we
rstep card is excellent, but for us we use the largest cnc is not suitable.
3)we need to restore basic functions step / dir / enable ... where we
have to work for you?
4)how do I add features without ruining the times?
5)what is the maximum step frequency?

i migliori auguri da tutti noi, sperando di continuare questo
fantastico progetto, davide bortolami.

Reza Naima

unread,
Feb 3, 2011, 4:00:30 AM2/3/11
to Davide Bortolami, rstep




Davide Bortolami
Wednesday, February 02, 2011 11:19 AM

Thank you for reply, you're very fast!

1) i have 13 file in the sanguino version and 11 in the arduino one.
sounds about right. still, it looks like something is not setup right in your arduino project.  did you change any filenames?  what version of the arduino software are you using?
2) excuse me, i've used google translate for some parts of this mail. The question is "Can we go from arduino/sanguino whithout changing the code?
one version is for the arduino, one is for the sanguino - most of the code is identical but additional functions exist in the sanguino code. 
3) i've found this file http://reza.net/wiki/images/6/6f/RStep_v3_dorkbotbw.pdf in the wiki...i'm sorry for disturbing you with this stupid question.
what is the question?
4) for example... If i want to expand i/o pins for use all of arduino mega...or if I want to implement some PLC features...or other... (ethernet for example)
I'm afraid if I post some new features i Spoil the axes synchronization.
it depends on how your implementing it.   i want to add support for Ethernet as well and there are some ways of doing this.  tell me what you have in mind and I'll see if I can help you.
6) rstep have lookahead?
no, but that's high on my TODO list - i want it to be able to ramp speed up and down as well.
7) what are the next things you want to add? (i'm curious :-) )
see above :)

Reza

Best regards, Davide Bortolami


Davide Bortolami

Il giorno 02/feb/2011, alle ore 19:45, Reza Naima <re...@reza.net> ha scritto:



Reza Naima
Wednesday, February 02, 2011 10:45 AM

Wednesday, February 02, 2011 8:04 AM

Janos Bujtar

unread,
Feb 3, 2011, 6:50:22 AM2/3/11
to rs...@googlegroups.com
Hi Davide,

If you use the sanguino version, then I suppose you have to delete the rStep.pde file, because this is for the arduino one. For sanguino rStep_644.pde what you need only. Having both files caused errors for me too.

regards:
Janos
postbox-contact.jpg
compose-unknown-contact.jpg
Reply all
Reply to author
Forward
0 new messages