Hello Guest it is April 20, 2024, 02:05:35 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - fdos

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 »
1
Modbus / Re: Arduino Modbus, Complete, Documented and free
« 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.


2
Modbus / Re: Arduino Modbus, Complete, Documented and free
« on: February 27, 2013, 06:24:30 PM »
Yes, it's fairly straightforward now I have the same code you other guys are using!

Seems to be some redundent defintions etc in there, might have a go at tidying it up a bit.



Wayne...

3
Modbus / Re: Arduino Modbus, Complete, Documented and free
« on: February 27, 2013, 05:01:07 PM »
Had a bit more of a dabble.

Just for fun added to

void setup()

   pinMode(13,OUTPUT);  
   pinMode(8,OUTPUT);

and to

void loop()

digitalWrite(13,regs[3]);
digitalWrite(8,regs[4]);

As expected I get access to Arduino pins 8 and 13 via modbus test (registers 3 & 4) and vbscript (Setmodoutput (0 & 1)) etc fine.

Could be useful..   I chose those pins as purely arbitary examples.  Normally I'd probably pick them sequentially.


4
Modbus / Re: Arduino Modbus, Complete, Documented and free
« on: February 27, 2013, 03:47:58 PM »
OK I think I have found the sketch now.  I see no library used.

5
Modbus / Re: Arduino Modbus, Complete, Documented and free
« on: February 27, 2013, 02:58:51 PM »
But which arduino Modbus RTU are you using?

I looked at Zafars post but cant see what software he's running on the Arduino.

I was refering to the one in this thread.  You can address this one via ports and pins.  Albeit as I appear to have found not fully.

Wayne...

6
Modbus / Re: Arduino Modbus, Complete, Documented and free
« on: February 27, 2013, 01:35:13 PM »
I generally use the CUSB36R, in fact a new one for another project arrived today.

I also have the studyboard which is useful for testing in comfort before the live system is ready.

I still cannot understand why I can't get pins 2 to 10 working as outputs on the Arduino with that code.  13 works even though he's using the on board led for status.   All I tried so far was a led on each pin and toggling the active low checkbox in mach ports and pins for that pin on port 0.  I think it was the pins below 11 did nothing for me.

Wayne..

7
Modbus / Re: Arduino Modbus, Complete, Documented and free
« on: February 26, 2013, 03:21:20 PM »
I actually prefer the cubloc devices personally as I have several years experience with them as well as many thousands of hours of Mach machines talking to them.

But this did seem interesting as I use Arduino's here for other motion control projects.  I'll see if I can find the other Modbus sketch.

Do you have a link?

Wayne...

8
Modbus / Re: Arduino Modbus, Complete, Documented and free
« on: February 25, 2013, 05:51:39 PM »
Has anyone actually used this?

I happen to have a few Arduinos around the place and sort of got it running.

On both a Mega and a Duemilanove only outputs 12 and 13 seem to work for me.

The author seems to have vanished from the forum?

Wayne...

9
Should be programmable like the original ipacs via a keyboard connected to the through port.

Fire up notepad and type CTRL-ALT-P on the keyboard connected to the Ipac.

10
This one defo needs a bump!   Potentially a really nice machine you have there.

If it were mine I'd be swapping out those old servos and drives for new AC brushless gear.

My Hardinge also had DC spindle motor (5hp), and I swapped it out for a decent iron framed 4hp AC motor and Siemens MM440 drive.   Saved me much grief.


Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 »