mesa 5i20 + 7i44 +7i73
- PCW
- Offline
- Moderator
Less
More
- Posts: 17904
- Thank you received: 4774
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!)
(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.
- jtc
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 230
- Thank you received: 13
23 Apr 2013 22:43 - 23 Apr 2013 22:44 #33068
by jtc
Replied by jtc on topic mesa 5i20 + 7i44 +7i73
Last edit: 23 Apr 2013 22:44 by jtc.
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17904
- Thank you received: 4774
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 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.
- jtc
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 230
- Thank you received: 13
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 ?
and for OD0 and OD1 activation I should use OUT0 and OUT1 ?
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17904
- Thank you received: 4774
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.
- jtc
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 230
- Thank you received: 13
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:
and witch variables shoul I ise to do this? motion.adaptive-feed and motion.spindle-speed-out-rps?
tanks
João
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.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23559
- Thank you received: 4858
25 Apr 2013 00:42 #33157
by andypugh
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?
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.
Replied by andypugh on topic mesa 5i20 + 7i44 +7i73
The values are probably not completely random. They may, for example, be Gray Code.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".
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?
www.linuxcnc.org/docs/html/man/man1/halui.1.htmlwitch variables shoul I ise to do this? motion.adaptive-feed and motion.spindle-speed-out-rps?
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.
- jtc
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 230
- Thank you received: 13
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!
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.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23559
- Thank you received: 4858
25 Apr 2013 04:16 #33167
by andypugh
I am not sure why we don't have a mux-N component, where you can tell it how many bits you need.
Replied by andypugh on topic mesa 5i20 + 7i44 +7i73
You could use two mux16s and a mux2 to choose between them based on the high-order bit.for the 5 bits switch I can't use the mux.
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.
- jtc
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 230
- Thank you received: 13
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
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
Last edit: 10 May 2013 03:46 by jtc.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.126 seconds