Hi,
Sorry for the delay in responding to this post - I think I missed it mixed in with the recent spam posts that have been hitting the forum. (I hate spammers - I keep wishing there was some technology that would magically cause a spammers PC to explode and melt into a puddle of plastic.)
sivtek wrote:Hi Dave
I hope you can help me.
I have made a high speed spindle (HSSP) with a opto switch to read the RPM. The HSSP fits in the spindle of my mill so the mill spindle shall not rewolve when the HSSP is used. This causes a problem sinse the mil spindle have to be turnd on for Mach 3 can read the RPM. (I did not know this before I read your answere to Osker in the Machsupport Forum sept 19, 2010 "How to Enable RPM in MachStd Mill").
To overcome this problem, in Engine Config....Ports & Pins/Motor Outputs I unable spindle. Then when in Mach3, I press the "Spindle CW F5" the button lights, the mill spindle do not move and I can read the RPM of my HSSP motor. All fine, but...........
From my way of thinking that is a bit odd...
1) you have disabled the spindle. OK. To me that means it should be impossible to "start" or use the spindle.
2) then you use a button to start the (now disabled) spindle... and internally, mach "starts" the disabled spindle enough to at least be able to read the RPM input.
I find that all a bit illogical, but let's just accept that this is the way mach seems to be working and see if we can find a solution that will solve your problem.
sivtek wrote:
In the MashStd Mill Run page, witch I prefer to use, I press the CW button it do not light and the RPM of the HSSP motor is not displased.
OK, I have a suspicion of what is happening internal to Mach.
The 1024 screen set uses OEM button 110 to start the spindle in the CW direction.
MSM's CW button issues the M3 gcode command to mach. This was done because I was told that this was "safer" and avoided some internal mach bugs.
I'm thinking that the M3 gcode is actually doing what I think should (from a purely technical viewpoint) happen - I.e. the disabled spindle CW gocde is getting ignored because the spindle is disabled, mach is doing nothing with the M3, and thus the spindle does NOT go ON, and mach does not read the RPM input.
In the 1024 screen set, the CW button calls OEM Button 110. This OEM button interface is probably (technically), broken in that it is doing something with the disabled spindle that is enabling the RPM to get read... but in your case you want this "broken" action to let you read the spindle RPM.
Here is a test to confirm my guess:
Using the 1024 mach screen set, use the MDI line to do a "M3"....
what happens?
Do you get the MSM behavior (this what I think will happen) or do you get the 1024 behavior re mach reading the RPM input?
sivtek wrote:The "Dwell" go green for a short time. (With the spindle abled in the cofig. page the mill spindle runs and the RPM can be read.
The green dwell is probably because there is a CW spin up delay set up (see ports & pins, spindle tab).
I would expect this delay to be processed when ever the spindle is started.
sivtek wrote:I have one opto switch for the mill and one for the HSSP motor). What to do?
Thanks
Johannes
Assuming the test above confirms my guess, it sounds like what you want to do is change the MSM CW button from "M3" to "OEM button 110". Fortunately, this is not too hard to do.
You could just edit the MachStdMIll.set file and change the button action. However that will only last until you reload MSM, or install an MSM update. If we use that approach, the next time you install an MSM update, MSM will overwrite your change and you will be wondering what happened.
The best way to do this is to make a customized version of MSM. The instructions for doing that are in section 15 of the MSM mill manual. Please read thru at least section 15.5 and 15.6 (FYI, the CW button you want to change is a "direct button code" button).
While doing this, I'd also take a moment to check the CCW button - I'd guess that it acts like the CW button. While you are making a custom set file, you probably want to change the CCW while you are thinking about it.
If you get stuck doing the customization let me know and I can help some more.
Dave