Spindle Control reverse and forward problems

More
05 Feb 2023 16:01 #263754 by bird-dogman
I'm trying to add spindle control with linuxcnc v2.8.4 and a MESA 7i76e.

The machine is a converted PM-728vt with 0-10 volt speed control card. The inputs

are FWD,REV,( Vin and COM wiper voltage ). Max RPM about 4400.

I configured TB4 to provide wiper voltage between (0-10)

When I issue MDI command m4 s2200 I see the following using halcmd.

What I see using halcmd is:
    26  bit   IN           TRUE  hm2_7i76e.0.7i76.0.0.spindir <== spindle-ccw
    26  bit   IN           TRUE  hm2_7i76e.0.7i76.0.0.spinena <== spindle-enable
    26  float IN         0.4994  hm2_7i76e.0.7i76.0.0.spinout <== spindle-output

The Motor runs in reverse at 2200rpm.

What are these pins and where are they defined?
How do i define Forward and Reverse?

Thanks in advance
Jim
 

Please Log in or Create an account to join the conversation.

More
05 Feb 2023 17:38 - 05 Feb 2023 17:39 #263761 by PCW
If the spindle control can only do FWD/REV you will either have to drive
the FWD/REV input from other 7I76E field outputs (if the drive FWD/REV
inputs will take +24V signals) or add a small SPDT relay to route the ENA
signal from the 7I76E to FWD or REV depending on the DIR signal.
Last edit: 05 Feb 2023 17:39 by PCW.

Please Log in or Create an account to join the conversation.

More
07 Feb 2023 14:02 #263935 by bird-dogman
added
net spindle-cw => hm2_7i76e.0.7i76.0.0.output-08
net spindle-ccw => hm2_7i76e.0.7i76.0.0.output-07

- Connected spindle-cw to Precision Mathews control board FWD with pull down resistor. Using m3 s800 runs as it should.
- Removed connection FWD from Precision Mathews control board.
- Connected spindle-ccw to Precision Mathews control board REV with pull down resistor. Using m4 s800 runs as it should.
- Connect both neither work. Remove FWD signal from Precision Mathews board. Both m3 s800 and m4s800 run spindle in reverse. Remove REV signal from Precision Mathews board both m3 s800 and m4s800 run spindle in forward.

The Precision Mathews board has NO documentation other then pin out as follows.

- vin is 0-10v from TB4 pin2
- com TB4 pin1
-com ( i wasn't sure what to do here so passed the 24v common )
- no connection
- rev from TB4 pin7
- fwd from TB4 pin 8



jim

Please Log in or Create an account to join the conversation.

More
07 Feb 2023 15:09 #263945 by PCW
Sounds like you need to invert the CW and CCW outputs

Please Log in or Create an account to join the conversation.

More
07 Feb 2023 16:51 #263958 by bird-dogman
added
setp hm2_7i76e.0.7i76.0.0.output-08-invert true
setp hm2_7i76e.0.7i76.0.0.output-07-invert true

With both forward and reverse connected still no success.
If i electrically disconnect REV and enter m3 s800 spindle runs foward. Then enter m4s800 spindle runs forward.

jim

Please Log in or Create an account to join the conversation.

More
07 Feb 2023 17:01 - 07 Feb 2023 17:05 #263960 by PCW
Are you saying you have wired the 7I76E field outputs 8 and 7 to the FWD/REV inputs on the drive?

If so, can you verify the signal levels at FWD and REV and which level activates FWD and REV
motion?
Last edit: 07 Feb 2023 17:05 by PCW.

Please Log in or Create an account to join the conversation.

More
07 Feb 2023 20:22 #263967 by bird-dogman
Yes the 7i76e TB4-pin-8 and TB4-Pin-7 are wired to FWD and REV.
MILL connections       7i76e connections
FWD  forward             from 7i76e TB4-pin08   Forward
REV  reverse             from 7i76e TB4-pin07    Reverse
NC                             No Connection
Common                   from 7i76e  TB4-pin03 ( 10 volt  ) 
Vin                            from 7i76e  TB4-pin02 (spindle out 0 - 10 volts )
Common                  from 7i76e TB4-pin-01 ( 10 volt common  )

Please Log in or Create an account to join the conversation.

More
07 Feb 2023 20:39 #263970 by PCW
Are the FWD and REV inputs activated by high or low level inputs?

I would verify the input voltage levels for the high and low states

Please Log in or Create an account to join the conversation.

More
08 Feb 2023 00:17 #263994 by bird-dogman
I think there is an issue with the small control card from Precision Mathews..
When I configure ccw the spindle will runs ccw with m3 s800 and also runs ccw with m4 s800.  Even though i have no connection at all on FWD.

I'm going to give them a call tomorrow and have them send one out.


Jim

Please Log in or Create an account to join the conversation.

More
08 Feb 2023 12:07 #264026 by bird-dogman
Ran a quick test this morning.
Performed the following:
- m5 in MDI
- halcmd show > hal_stopped.txt
- m3 s800
- halcmd show > hal_forward.txt
- m5
- halcmd show > hal_reverse.txt
- unix diff hal_forward.txt  hal_reverse.txt >  diff.txt

filtered out the crap results are:
************************************************************************************
465,466c465,466
<     10  bit   OUT         FALSE  halui.spindle.0.runs-backward
<     10  bit   OUT          TRUE  halui.spindle.0.runs-forward
---
>     10  bit   OUT          TRUE  halui.spindle.0.runs-backward
>     10  bit   OUT         FALSE  halui.spindle.0.runs-forward
552,553c552,553
<     26  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-07 <== spindle-ccw
<     26  bit   IN           TRUE  hm2_7i76e.0.7i76.0.0.output-08 <== spindle-cw
---
>     26  bit   IN           TRUE  hm2_7i76e.0.7i76.0.0.output-07 <== spindle-ccw
>     26  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-08 <== spindle-cw
570c570
<     19  bit   OUT          TRUE  spindle.0.forward ==> spindle-cw
---
>     19  bit   OUT         FALSE  spindle.0.forward ==> spindle-cw
1228c1228
<     19  bit   OUT         FALSE  spindle.0.reverse ==> spindle-ccw
---
>     19  bit   OUT          TRUE  spindle.0.reverse ==> spindle-ccw
1516c1516
< bit           FALSE  spindle-ccw
---
> bit            TRUE  spindle-ccw
1519c1519
< bit            TRUE  spindle-cw
---
> bit           FALSE  spindle-cw

I see nothing wrong here.
Hardware or wiring issue ?

Jim

Please Log in or Create an account to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum