mesa 5i20 + 7i44 +7i73

More
23 Apr 2013 22:11 - 23 Apr 2013 22:12 #33066 by PCW
Replied by PCW on topic mesa 5i20 + 7i44 +7i73
Yes, that will work +24 --> LED+ --> LED- --> OD0 --> P2GND --> 24VCOMMOM

(assuming the LEDs have built in resistors for 24V operation of course!)
Last edit: 23 Apr 2013 22:12 by PCW.

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

More
23 Apr 2013 22:43 - 23 Apr 2013 22:44 #33068 by jtc
Replied by jtc on topic mesa 5i20 + 7i44 +7i73
make a shunt between OD0 and p2gnd makes me confusion.

witch of theses are correct?



(yes have a built in resistor)
Attachments:
Last edit: 23 Apr 2013 22:44 by jtc.

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

More
23 Apr 2013 22:48 #33069 by PCW
Replied by PCW on topic mesa 5i20 + 7i44 +7i73
The top one is right
(the bottom one will have the LED always on)

(My --> were current flow not wires)
The following user(s) said Thank You: jtc

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

More
24 Apr 2013 00:03 #33078 by jtc
Replied by jtc on topic mesa 5i20 + 7i44 +7i73
tanks!

and for OD0 and OD1 activation I should use OUT0 and OUT1 ?

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

More
24 Apr 2013 00:13 #33079 by PCW
Replied by PCW on topic mesa 5i20 + 7i44 +7i73
Yes

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

More
25 Apr 2013 00:07 #33156 by jtc
Replied by jtc on topic mesa 5i20 + 7i44 +7i73
ok .I'm using "weighted_sum" on position buttons and it is working fine. the problem is the positions have a random value, for example position 0 can be "30" and position 1 equal to "4".

how can I transtale this to feed rate override and spindle override? like this pseudocode:
if weighted_sum=30
	feedOverridde=1,2;
else
	if weighted_sum=4
		feedOverridde=1,3;

and witch variables shoul I ise to do this? motion.adaptive-feed and motion.spindle-speed-out-rps?

tanks

João

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

More
25 Apr 2013 00:42 #33157 by andypugh
Replied by andypugh on topic mesa 5i20 + 7i44 +7i73

ok .I'm using "weighted_sum" on position buttons and it is working fine. the problem is the positions have a random value, for example position 0 can be "30" and position 1 equal to "4".

The values are probably not completely random. They may, for example, be Gray Code.
Depending on how many outputs the switches have, this component might work better than "weighted_sum"
www.linuxcnc.org/docs/html/man/man9/mux16.9.html
Do you have a table of which pins go high and low in each switch position?

witch variables shoul I ise to do this? motion.adaptive-feed and motion.spindle-speed-out-rps?

www.linuxcnc.org/docs/html/man/man1/halui.1.html
Probably halui.feed-over-ride.counts with halui.feed-override.direct-value set to 1 and
halui.spindle-override.counts with halui.spindle-override.direct-value set to true.

You might want to consider changing those switches to encoder style rotary switches, it would save pins and give a better behaviour between GUI and switch. if direct-value is used then the GUI can over-ride, and then the switch value is taken any time it changes.
The following user(s) said Thank You: jtc

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

More
25 Apr 2013 03:49 #33165 by jtc
Replied by jtc on topic mesa 5i20 + 7i44 +7i73
yes I have the tables, and I simplified to use the minimum of bits for each switch (4 bits in one and 5 bits for the other). it's not Gray code.

for the 5 bits switch I can't use the mux.

Ok, I will see this halui parameters in more detail. tanks!

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

More
25 Apr 2013 04:16 #33167 by andypugh
Replied by andypugh on topic mesa 5i20 + 7i44 +7i73

for the 5 bits switch I can't use the mux.

You could use two mux16s and a mux2 to choose between them based on the high-order bit.

I am not sure why we don't have a mux-N component, where you can tell it how many bits you need.

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

More
10 May 2013 03:45 - 10 May 2013 03:46 #33857 by jtc
Replied by jtc on topic mesa 5i20 + 7i44 +7i73
that's the next step to try. last days I worked on the hardware so I haven't time to try that.

currently I'm having this issue:





with only the 24VDC power supply on the red back-light is on. all the others boards and the PC have no power. If I turn on the PC (mesa cards are powered by the PC PSU ), the back-light turns off. So, the 7i73 with no power can sink the current to turn the led on in one of this tow outputs (OD0 and OD1). that's a normal situation?



In linuxcnc I can turn on and off both back-lights with HAL commands so they should be well connected.

João
Attachments:
Last edit: 10 May 2013 03:46 by jtc.

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

Moderators: PCWjmelson
Time to create page: 0.139 seconds
Powered by Kunena Forum