Re:Hardinge CHNC 1 Lathe

More
08 Jan 2010 21:15 #1476 by BigJohnT
Replied by BigJohnT on topic Re:Hardinge CHNC 1 Lathe
tenaja,

One card is bad the rest seem to be ok. Are you looking for one?

Robh,

Hi, not yet... I scratched my head for some time trying to figure out how and where I wanted to mount the 10hp phase converter. I hope to have the phase converter up and going by the weekend.

John

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

More
20 Jan 2010 17:32 #1566 by tenaja
Replied by tenaja on topic Re:Hardinge CHNC 1 Lathe
I have a CHNC that has a bad card. I was thinking of converting it when I saw your post... PM me if you are open to sending them off.

Have you got it running yet?

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

More
03 Feb 2010 00:35 #1728 by BigJohnT
Replied by BigJohnT on topic Re:Hardinge CHNC 1 Lathe
Finally making some progress with the conversion. Most of the interface card area has been re-wired and the phase converter has been installed.



Next to get the power section under control and on to installing the computer and Mesa cards and then time to make some chips :)

John

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

More
14 Feb 2010 19:20 #1901 by BigJohnT
Replied by BigJohnT on topic Re:Hardinge CHNC 1 Lathe
I have finally made some progress. The PC and Mesa cards and the hard drive are installed.



John

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

More
21 Feb 2010 17:06 #1974 by BigJohnT
Replied by BigJohnT on topic Re:Hardinge CHNC 1 Lathe
I've been pulling my hair out for a couple of weeks trying to get a computer up and running for the hardinge.

I finally got a new enough mobo that worked and to my surprise the LiveCD would not install because the mobo was too new. So I installed Ubuntu 8.04.4 then EMC 2.4. Everything must work now right... nope now Hostmot2 can't/won't initialize the 5i20. I reverted back to 2.3.4 and tried the 5i20 config and no luck. So I'm back at 2.4 pre. When I try and run the 5i20 config the DONE led stays red, the INIT led blinks off and the STATUS led blinks on yellow while the INIT led is off, then the INIT returns back to a steady red.

The EMC error window
pastebin.ca/1804770

The dmesg
www.pastebin.ca/1804784

Any Ideas?

Thanks
John

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

More
21 Feb 2010 19:29 #1976 by BigJohnT
Replied by BigJohnT on topic Re:Hardinge CHNC 1 Lathe
I figured it out the card is toast. I swapped it with my plasma cutter to verify... I guess I'll be ordering a new one Monday.

John

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

More
22 Feb 2010 11:35 #1978 by BigJohnT
Replied by BigJohnT on topic Re:Hardinge CHNC 1 Lathe
And perhaps not, Peter suggested that the EEPROM might need to be flashed. As soon as I can get a computer with a floppy to work I'll try and flash it. Anyhow progress is being made as I stole the 5i20 from the plasma cutter. I figured out real quick that all the outputs on the 7i37 needed to be inverted to be off when set to 0. I was able to reach in and give the X axis a spin and see the DRO had moved so that is going well.

John

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

More
27 Feb 2010 19:23 #2099 by BigJohnT
Replied by BigJohnT on topic Re:Hardinge CHNC 1 Lathe
Hooked up the MPG and a few other things today. Worked several hours the other night on my feed override switch to get the binary output correct only to find that I can't use that with EMC :(

Hooked up the MPG to the 7i33 card encoder input then set the jumper to TTL. In my hal file I send the count pulses to the axis.n.jog-counts for both axis. Then the enable bit can be set to none, X , Z or both for chamfers via a radio button until I get time to install a proper switch near the MPG.

Maybe some photos this afternoon.

JT

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

More
27 Feb 2010 20:41 #2102 by Kirk_Wallace
Why can't you use binary input with EMC2? I used a binary encoder with my tool carousel.

.hal snippet:
"...
### TURRET ###
# create signals for tool loading loopback
linkpp iocontrol.0.tool-prepare iocontrol.0.tool-prepared
linkpp iocontrol.0.tool-change turret.0.position-change
linkpp turret.0.position-changed iocontrol.0.tool-changed

# decode turret encoder inputs
newsig ones bit
newsig twos bit
newsig fours bit
newsig eights bit

linksp ones ppmc.0.din.06.in
linksp ones wsum.0.bit.0.in
linksp twos ppmc.0.din.07.in
linksp twos wsum.0.bit.1.in
linksp fours ppmc.0.din.08.in
linksp fours wsum.0.bit.2.in
linksp eights ppmc.0.din.09.in
linksp eights wsum.0.bit.3.in
# wsum.N.hold bit in

newsig TurretCurrentPosition s32
linksp TurretCurrentPosition wsum.0.sum
linksp TurretCurrentPosition turret.0.position-current

newsig TurretRequestedPosition s32
linksp TurretRequestedPosition iocontrol.0.tool-prep-number
linksp TurretRequestedPosition turret.0.position-requested

setp turret.0.settle-stop [TURRET]STOP_SETTLE
setp turret.0.settle-park [TURRET]PARK_SETTLE

# connect turret to parallel port 
newsig TurretSeek bit
linksp TurretSeek turret.0.seek
linksp TurretSeek ppmc.0.dout.00.out

newsig TurretStop bit
linksp TurretStop turret.0.stop
linksp TurretStop ppmc.0.dout.01.out
..."

You would most likely need more digits to get a reasonable resolution.

Using a quadrature reduces the number of wires, but you need to initialize the encoder before use.

Another option is to use something like an Attiny microprocessor to convert the encoder to SPI. Your Mesa card has an SPI feature, but I don't know its status. I need to get a Mesa card so I can try this out.
--
Kirk Wallace
www.wallacecompany.com/machine_shop/
www.wallacecompany.com/E45/index.html
California, USA

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

More
27 Feb 2010 22:58 #2105 by robh
Replied by robh on topic Re:Hardinge CHNC 1 Lathe
John is using a Wsum on the tool turret encoder

as its the same encoder as in the little HNC, my hardinge superslants etc
here is the truth table for any one else intrested.

################
# Decode for turrets
################
# Tool 1 2 3 4 5 6 7 8
# BitD 0 0 0 0 0 0 0 1
# BitC 0 0 0 1 1 1 1 0
# BitB 0 1 1 0 0 1 1 0
# BitA 1 0 1 0 1 0 1 0
################


here is the HAL snippet which i have ten fed into classicladder to handle all the spin and lock down etc.
#turret bit ins
#t1
net t1-bit0 wsum.0.bit.0.in <= hm2_[HOSTMOT2](BOARD).0.gpio.063.in_not
net t1-bit1 wsum.0.bit.1.in <= hm2_[HOSTMOT2](BOARD).0.gpio.061.in_not
net t1-bit2 wsum.0.bit.2.in <= hm2_[HOSTMOT2](BOARD).0.gpio.059.in_not
net t1-bit3 wsum.0.bit.3.in <= hm2_[HOSTMOT2](BOARD).0.gpio.057.in_not

net turret1-num wsum.0.sum => classicladder.0.s32in-02

if any one is intrested i will add the ladder logic if john does not mind me spamming his post, or add it on wiki i guess, maybe john will add his when he gets there :)

rob

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

Moderators: cncbasher
Time to create page: 0.609 seconds
Powered by Kunena Forum