Third party software and hardware support forums. > Modbus

Arduino Modbus, Complete, Documented and free

<< < (6/16) > >>

Paul_PC:

--- Quote from: fdos on April 06, 2013, 08:57:39 AM ---Change all references of WProgram.h to arduino.h.

 I think that's what I did.  However I found the other sketch we have been talking about to be better.



--- End quote ---
Thank you very much.It is work now

jmaurin:
Hi!
I have my Arduino programmed with the library on this thread and setup 4 IO's (pins 2,3,4 and 5) to input. In the test window of Mach3, i can see the change of status while i press or not my buttons on the board....the value of register 0 goes from 003C (notthing pressed) to, for example, 0038 (pin 2 grounded), so i know that my arduino and communication os working.
The problem is that i can't get any brain to work....i can't get my mach3 to undrstand that this modbus input should make "#INPUT1" active. Can anybody help me with this brain?
Tks.

mrJmek:
Hey HI!

Shilling, thank you for this awesome documentation, it works fine!
I can blink with diode on my Arduino Uno R3, but I have few question about this documentation and CNC.

I'm working on my first CNC machine and I'm newbie in this area, for this moment I have:
- Arduino Uno R3 - http://cdn.makezine.com/make/arduino/Arduino-callouts1.jpg
- 2xL298N driver for stepper motor - http://image.dhgate.com/albu_355579110_00-1.0x0/a35-l298n-stepper-motor-driver-board-robot.jpg
- 2xunipolar stepping motors MITSUMI M42SP-5P (from printers) - http://img441.imageshack.us/img441/1098/minip9251053.jpg
- Power supply for 12/24V;
- future CNC from wood.

Connection between Arduino|drivers|motors looks like on picture in attach.

I had already upload "firmware" for Arduino, but I can't get how to setup Mach3, because for connection one motor it took 4pins on Arduino. In the Config -> Ports and Pins -> Motor Outputs you can specify only 2pins.
Can anyone help with a link for good tutorial or documentation how to setup Mach3+ModBus+Arduino?
Or, maybe, someone can with understanding "How to work with Brain" when you are making CNC?

Thanks everyone for help!
Have a good day!)

Fastest1:
Are you trying to use pin 3 for step on 1 motor and direction on another?

Daley:
For those trying to work through these specific errors when compiling:

WProgram.h - no such file
"Config_IO" was not Declared In This scope
"Kill_IO" was not Declared In This scope
"Updates_Pin_states" was not Declared In This scope
"UpdatesAN_States" was not Declared In This scope

As found elsewhere on the internets, the answers are relatively simple: replace (or as I did, copy) all instances of WProgram.h to Arduino.h - the newer compilers changed this after this thread was created. For the "not declared..." errors, follow Shilling's instructions *explicitly* - don't just go blindly. If you're using a non-Windows OS, you'll need to make sure permissions (or more specifically, ownership) is appropriate for the user that's launching the IDE.



HINT: The answer is in section 3.2, page 11 of his instructions. Chances are you might be opening the wrong file (ask me how I know  :P )

HTH!!!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version