Emco PC Turn 50 retrofit 7I96S

More
27 Jul 2022 15:16 - 28 Jul 2022 16:47 #248427 by Samuelx
Hello
I starterd to retrofit My Emco and got some questions.
I managed to instal mint 21 beta and linuxcnc 2.9
I got both axis moving and now want to add limit switches.

My Emco has microswitch and proxysensor. I think they both work on 24v
Proxysensor is pnp type (3 wires) microswitch has 2 wires comming out. 
How to connect them to 7i96s Card? (what pins to use)

I connected the microswitch like this and got it working
microswitch 1 wire to 24v power +
microswitch 2 wire to digital input 0
I/O common I connected to my 24v power -
Then on the pnconfig I choose input 0 to be combinated home + x negative limit

Still dont know how to wire this proxy I think I will do it like this
proxysensor 1 wire to 24v +
proxysensor 2 wire to 24v -
proxysensor 3 wire to digital input 1
But I dont know what to choose on the pnconfig? there is no proxy sensors on the list.

Edit: I notice that If i choose pconfig tb1/tb2 screen encored to  x encoder  Then there is possibility to choose "use encoder index for home"
So Is this way to go ?
But if I want to use spindle encored that is not possible anymore besauce the only encoder input is used?



Do I need to buy a new mesa card that has more encoders?
Last edit: 28 Jul 2022 16:47 by Samuelx.

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

More
15 Aug 2022 16:48 #249800 by tommylight
Thank you for your patience.
First, the version of LinuxCNC used for Mint 21 is the same as in Debian testing, so it is from April of this year, but support for Mesa 7i96S was added in Jun i think, so it will not work properly, most probably.
You can uninstall that version and compile the latest version of LinuxCNC to get full support for 7i96S.
And no, you do not need more cards, 7i96S should have 11 inputs that can be used with all types of switches, although some might need a resistor to be added.

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

More
15 Aug 2022 17:46 #249807 by PCW
Replied by PCW on topic Emco PC Turn 50 retrofit 7I96S

But I dont know what to choose on the pnconfig? there is no proxy sensors on the list.

pncconf (and LinucCNC) don't care about the sensor type, only the function (limit home probe etc) and the input pin

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

More
15 Aug 2022 20:38 - 15 Aug 2022 21:13 #249822 by Samuelx
I am trying to figure out the tool turret. 
I got sample hal file and change it to  work with my 7i96S

I didn´t touch these lines, I think they ok.
#  ---toolchange signals for custom tool changer---
net tool-number             <=  iocontrol.0.tool-prep-number
net tool-change-request     <=  iocontrol.0.tool-change
net tool-change-confirmed   =>  iocontrol.0.tool-changed
net tool-prepare-request    <=  iocontrol.0.tool-prepare
net tool-prepare-confirmed  =>  iocontrol.0.tool-prepared

This custom.hal I need to change.
But I dont know how should I change this line "net turret-home-command classicladder.0.in-04 motion.digital-out-04"

#classicladder commands for turret control
net turret-home classicladder.0.in-01 hm2_7i96s.0.inm.00.input-04
net turret-position classicladder.0.in-00 hm2_7i96s.0.inm.00.input-05
net turret-index classicladder.0.out-00  hm2_7i96s.0.ssr.00.out-03 net tool-number   iocontrol.0.tool-prep-number classicladder.0.s32in-00net tool-pocket   iocontrol.0.tool-prep-pocket classicladder.0.s32in-01net tool-count-num classicladder.0.s32out-00 net tool-prepare-request iocontrol.0.tool-prepare classicladder.0.in-02net tool-prepare-confirmed iocontrol.0.tool-prepared classicladder.0.out-02 net tool-change-request iocontrol.0.tool-change classicladder.0.in-03net tool-change-confirmed iocontrol.0.tool-changed classicladder.0.out-03net tool-startup classicladder.0.s32in-02 iocontrol.0.tool-numbernet turret-home-command classicladder.0.in-04 motion.digital-out-04
Last edit: 15 Aug 2022 21:13 by Samuelx.

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

More
15 Aug 2022 23:15 #249842 by PCW
Replied by PCW on topic Emco PC Turn 50 retrofit 7I96S
"net turret-home-command classicladder.0.in-04 motion.digital-out-04"

Is hardware independent so should work the same for any LinuxCNC  hardware setup.
 

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

More
16 Aug 2022 06:50 #249857 by Samuelx
I had to commented it out (#)
otherwise there is an error

Debug file information:
Note: Using POSIX realtime
./custom.hal:22: Pin 'motion.digital-out-04' does not exist
1831
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
 

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

More
16 Aug 2022 10:06 #249872 by tommylight
Digital out 04 would be output 5, but i think normaly there are only 4, so more should be added somewhere up in the hal file.
Very long time since i used them ...

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

More
16 Aug 2022 19:49 #249910 by Samuelx
Problem solved
I add num_dio=10 to my hal file.
"loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS  num_dio=10"
 
The following user(s) said Thank You: tommylight

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

Time to create page: 0.131 seconds
Powered by Kunena Forum