Hello Guest it is March 29, 2024, 03:58:28 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 - rwskinner

Pages: « 1 2 3 4 5 6 7 »
41
General Mach Discussion / Re: Modbus spindle control questions...
« on: November 07, 2011, 07:12:42 AM »
Hopefully someone can chime in and help with our Brain logic.  

Modbus - I verified with an external program that I can send the following commands and the VFD acts as expected.

Register 40271 = 1  'VFD Runs in Forward
Register 40271 = 3  'VFD Runs in Reverse
Register 40271 = 0  'VFD Stops

In Mach, Modbus Serial Config -> Test the above also works.

I configured the Modbus Serial Plug In properly because in the VB Editor I can do the following and they all work...

SetModOutput (0,1)  'Forward
SetModOutput (0,3)  'Reverse
SetModOutput (0,0)  'Stop

How I'm trying to do the Brain that is eating my lunch is.....

Spindle CW ON   -> Formula (f)Output = 1 -> Modbus/Address 0, Output,Serial Plugin, Cfg 0
Spindle CCW ON -> Formula (f)Output = 3 -> Modbus/Address 0, Output,Serial Plugin, Cfg 0
The above allows the spindle to run in forward.  Reverse does not work, and turning off the spindle does not work.


I also tried writing to an individual bit, but I read that was broken in brains.
Spindle CW ON   -> No Op -> Modbus/Address 0, Output, Bit Only, Bit 0,Serial Plugin, Cfg 0
Spindle CW ON   -> No Op -> Modbus/Address 0, Output, Bit Only, Bit 1,Serial Plugin, Cfg 0
The above allows forward and stop, however Reverse just stops the spindle.
 
So it appears my logic using formulas does not work as I intended.  I know most of the hard stuff is done and I'm just having a hard time figuring out how to write the brain where it behaves properly.

Any help would be so much appreciated.
Richard




42
General Mach Discussion / Re: Modbus spindle control questions...
« on: November 06, 2011, 09:48:55 PM »
Just attach the VFDRun.BRN

43
General Mach Discussion / Re: Modbus spindle control questions...
« on: November 06, 2011, 08:15:08 PM »
The register on the Teco is a standard 16 bit register that has 16 bit flags.  It can only write and read an interger and can not be used as coils.

Bit 0 = 0 Stop 1= Run
Bit 1 = 0 for Forward and 1 = Reverse

Writing an integer would work.

Spindle ON CW  Write a 1
Spinde ON CCW  Write a 3
Spindle OFF Write a Zero

Also, Pete, it would be helpful if you posted the brain here for people to look at.


Anyone know how to do this?

Richard

44
Brains Development / Re: How to handle VFD with no Coils
« on: November 06, 2011, 08:11:25 PM »
Can anyone help on this?

I have a register that can only be read with FC3 and written to with FC6.
That 16 bit registers uses bit flags.

Bit 0 - Stop = 0, Run = 1
Bit 1 - Forward = 0, Reverse = 1

Sending a 0 or 1 starts and stops the VFD.
How can I tell my brain to set bit 1?

Again,  If I knew how to do this I would be happy.

CW Write a 0
CCw Write a 3
Stop Write a Zero

Richard

45
Great, I was wondering if a sub could be called remotely so that is the best solution.

The G84 when ran here appears to work fairly decent but since there is no dwell after the spindle reverse, the feed starts out of the hole while the spindle is still spinning up to RPM.  It's only a 0.5 second dwell I use, but when it's not used, the floating tap holder is extended a good ways by the time the tap clears the hole and causes a pretty bad snap back.

Thinking about it, I'm sure the Pitch could be modified some in the G84 parameters to reduce this.

Richard


46
Yep,  That fixed it here to.  The sub routine does actually work a lot smoother and faster but then it has to be copied over to each one of my files each time.  It just seems like a "cleaner" approach to use the macro.

Once I got it working I could tweak it and get it working exactly the way I wanted to.  Cat's meow.

It's kind of a shame the the canned routines like the G84 tapping can have some sort of configuration were we can customize to our on machine.  That seems like it would work well.

Thanks for all the help.
Richard

47
Let me give it try.  I appreciate it very much!!!!

Richard

48
I'm running the latest stable release from the website three weeks ago.
Are you running my code or the code after you modified it?

I will check the mode and make sure it's changing. 

Here is the code that calls the macro.

(Tapping Test Program)
G40 G80 G90

(Set Editable Parameters in Main Program)
#1=0.500         (Set Thread Depth)
#2=16.0         (Set Thread Pitch in Turns per Inch)
#3=400         (Set Tapping RPM)
#4=0.1      (Set Rapid Height)

G0 X0 Y0
G0 Z0.0
M975
M30


49
No, I have all delays set to Zero.  But I do not have spindle feedback. (Floating tapping head)
The G95 works okay in the sub routine though.

Richard

50
General Mach Discussion / G84 SRT
« on: November 02, 2011, 01:31:55 PM »
Is there any configuration for the G84 tapping routine.  It doesn't have any type of dwell between the M4 and the Feed back out of the hole and it causes the tap to jump out at 0 Zed.

Richard

Pages: « 1 2 3 4 5 6 7 »