Hello Guest it is June 13, 2021, 05:12:48 AM

Author Topic: Modbus spindle control questions...  (Read 13564 times)

0 Members and 1 Guest are viewing this topic.

Offline Greolt

*
  •  956 956
    • View Profile
Re: Modbus spindle control questions...
« Reply #10 on: November 08, 2011, 02:22:21 AM »
I run a Hitachi via Modbus with brains.

Just forward and speed.   Had reverse going but deleted it because I never run reverse. (router spindle)

But I have not a clue about TECO.  The Hitachi manual is fairly comprehensive.

I have doubts that this will be of any help to you, but here is some info,

http://www.machsupport.com/forum/index.php/topic,17190.msg117422.html#msg117422

Greg
Re: Modbus spindle control questions...
« Reply #11 on: November 08, 2011, 11:20:31 AM »
Okay guys,
    Just thought I would post this here to let you all know that RICHARD AKA RWSKINNER  is a Genius!!  He was able to play with it and got the spindle control COMPLETELY working for my machine. I now have FWD,REV,start, stop, and complete variable speed via mach3 on my mill. I am so totally happy with this as I no longer need to have a bunch of noise catching wires and relays in my control unit anymore. Now I just have the RS232 and everything is nice and neat inside the control unit. The spindle works great and now I can get back to using my TC tapping head and making parts nice and smooth again. Richard you are HUGE!! You are a GIANT among mice!!  I cannot thank you enough for your efforts with this.  He apparently changed the way he was writing the brains and found another way of doing the same thing that is simpler actually to accomplish.  Amazing fellow... Can ya tell that I am pleased and proud of the man?   Geez I thought this would never get done.... haha peace

Pete

Re: Modbus spindle control questions...
« Reply #12 on: November 08, 2011, 11:31:36 AM »
Thanks for the Kudos Pete.
I mainly started from scratch and quit trying to modify all the examples out there.
Brains are checking the status of the Spindle Outputs and sends the proper value to the VFD register.  Easy and Done!!

My main propblem wasn't with the modbus portion,it was understanding how to use the brains.

Richard
Re: Modbus spindle control questions...
« Reply #13 on: November 08, 2011, 01:20:40 PM »

I mainly started from scratch and quit trying to modify all the examples out there.
Brains are checking the status of the Spindle Outputs and sends the proper value to the VFD register.  Easy and Done!!

Richard

Any chance of a copy??
Nosmo.
Re: Modbus spindle control questions...
« Reply #14 on: November 08, 2011, 02:43:21 PM »
Output5 -> Formula A*1 -> Modbus Register 0
Output6 -> Formula A*3 -> Modbus Register 0

Set Outputs 5 & 6 up for Port 3  (Modbus)
Set outputs 5 & 6 up for Spindle Control

Richard
Re: Modbus spindle control questions...
« Reply #15 on: November 08, 2011, 04:25:28 PM »
Thanks.
N.

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: Modbus spindle control questions...
« Reply #16 on: November 09, 2011, 06:15:31 AM »
Set Outputs 5 & 6 up for Port 3  (Modbus)

Is it definitely port 3?
Modbus is Port 0 when using a PLC but may be different for other applications.
Hood
Re: Modbus spindle control questions...
« Reply #17 on: November 09, 2011, 06:29:40 AM »
That is what I have mine set to.  Really though, I need to experiment because I think it can be any port that is not 1 or 2.
You have to enable them so when M2 and M4 is used mach is enabling the output (in logic)  The brain looks at the outputs logic state and sends a modbus command to the spindle.

Think of a 3 way boolean statement;

If (output5 = 1) then M3
else
If (output6 = 1) then M4
else
M5




Richard

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: Modbus spindle control questions...
« Reply #18 on: November 09, 2011, 06:32:40 AM »
Might be best to use Port 0 as Port 3 is used for the SmoothStepper amongst other motion controllers so it may cause issues if you use Port 3 and upgrade at some point.
Hood
Re: Modbus spindle control questions...
« Reply #19 on: November 09, 2011, 06:37:43 AM »
Good Idea, Thanks.