MechMate CNC Router Forum

Go Back   MechMate CNC Router Forum > Electrical & Electronic > 70. Control Systems
Register Options Profile Last 1 | 3 | 7 Days Search Today's Posts Mark Forums Read

Thread Tools
Old Fri 08 June 2012, 05:42
Just call me: Danilo #64
Novi Sad
Arduino Modbus

In the process of retrofitting my lathe to cnc, I am making a control panel which will be connected to the Arduino running modbus slave.
All the inputs and outputs will be accessible from Mach3 serial modbus. I am using Arduino Mega2560 with 54 digital input/output pins (of which 14 can be used as PWM outputs) and 16 analog inputs. Feedrate and Spindle speed will be availabe via 2 analogue inputs. Joystick movement of axis will not be implemented and no MPG I leave that to others to make improvements (I use pokeys for that on my mechmate) as the lathe will have MPG on LPT pins for best response.

If anyone is interested I will release the sketch (code) so Mechmate members can use it to create a pendant or control panel for their machine.
Reply With Quote
Old Fri 08 June 2012, 07:46
Just call me: jfwillem
58130 Guerigny
Send a message via MSN to jfwillem
I am greatly interested
Reply With Quote
Old Mon 11 June 2012, 16:42
Just call me: Danilo #64
Novi Sad
I managed to get the 4x4 keypad into arduino and out to the Mach3 to type in DROs and eliminate use of keyboard for that. Mach surely is a extraordinary piece of software. Anything can be done if you put some effort to it. Brains and VB code are a way to go.

Writing a plugin would be a nice thing to do, but I'm not up to the task right now.

For input buttons and pots I used register for each one and an InputOutput serial modbus without plugin support. Not sure if it can have some impact on performance but testing will show.

With things working so smooth I tried to implement the analog joystick for XY but it needs testing directly on machine and it will have to wait.

I Will release the sketch in a couple of days with some instructions.
Reply With Quote
Old Sun 19 May 2013, 21:54
Just call me: Chris
New Zealand
Im interested for sure!

Reply With Quote

Register Options Profile Last 1 | 3 | 7 Days Search Today's Posts Mark Forums Read

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using an Arduino to solve common interface problems Richards 70. Control Systems 14 Wed 14 December 2011 20:08
Hitachi SJ200 and ModBus Control Problems skippy Troubleshooting 3 Wed 19 January 2011 04:03

All times are GMT -6. The time now is 00:56.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.