Charge pump from Mesa 7i96 in 4+1 config?

More
24 Jun 2020 21:37 - 24 Jun 2020 21:40 #172634 by Zacharius
@PCW
sorry i'm still not there,
motion man says
axis.N.jog−enable IN BIT -When TRUE (and in manual mode), any change to "jog−counts" will result in motion.
axis.N.jog−scale IN FLOAT set by setp to 1
so all these 3 connected and jog enable and counts reacts on MPG
hal configuration shows that
machine enabled
nothing moves :blink:

need next manual please
Attachments:
Last edit: 24 Jun 2020 21:40 by Zacharius.

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

More
24 Jun 2020 21:59 #172636 by PCW
What version of LinuxCNC are you running?
If >2.7 you need to home before you can jog axis
(you can only jog joints before homing)

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

More
25 Jun 2020 07:16 #172689 by Zacharius
ah bingo.
i'm on 2.9 currently, homing did the job thank you.

The only things left to connect is a scale switcher and defining the needs from keyboard perspective.
In my understanding for jog scale switcher i will need to assign to axis.N.jog−scale some value from the table which will be chosen by selector.

will dig for that today

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

More
25 Jun 2020 21:00 - 25 Jun 2020 21:16 #172754 by Zacharius
@PCW,
sorry stuck again.
looking through man pages and cant find how to resolve jog scale selector with my hardware.
will be much appreciated if you can navigate me to another man or just give a clue

Input 5 physical pins of 7i73 like hm2_7i96.0.7i73.0.0.input-00 to 04 which rotary knob sets to true one by one (when any is true other are false)
second input is axis selector: 5 true or false pins
based on the which pin of joint increment is true + axis selector true need to assign to axis.N.jog-scale a float value of increment.

more touchable example
hm2_7i96.0.7i73.0.0.input-00 = true (select 1st increment value on knob let's say 1mm)
hm2_7i96.0.7i73.0.0.input-10 = true (axis X selected - that's another knob)
assign to axis.x.jog-scale value of 1mm
another step
hm2_7i96.0.7i73.0.0.input-01 = true (select 2nd increment value on knob let's say 0.1mm)
hm2_7i96.0.7i73.0.0.input-10 = true (axis X selected - that's another knob)
assign to axis.x.jog-scale value of 0.1mm

need something like select - case structure but don't see appropriate one. and MUXes doesn't seem feasible here
axis selector is probably must have becuse for 4th and 5th axis value table is different :unsure:
or may be something like "if A=true and B= true then scale = x"

help please
:dry:
Last edit: 25 Jun 2020 21:16 by Zacharius.

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

More
25 Jun 2020 22:27 - 25 Jun 2020 22:28 #172759 by PCW
Using a linear select rather than a integer is a bit awkward but
you can convert your linear select (1 of N bits true) to an integer with the
weighted_sum component, and then feed the output of the weighted_sum
component to the select multiplexer that does the increment selection.

The select multiplexer component to use is the mux_generic since it can take
a integer select (the other multiplexers use separate weighted bits)
Last edit: 25 Jun 2020 22:28 by PCW.

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

More
25 Jun 2020 22:53 #172763 by Zacharius
thanks.
can you please expand that integer select?
do you mean the knob which may generate kind of truth table on output when i rotate?

it's not a big deal to change few wires and knob if that is more proper solution

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

More
26 Jun 2020 02:32 - 26 Jun 2020 02:33 #172771 by PCW
It would be a simpler solution if the jog increment select switch output a binary code
then for example the mux8 component could wire directly to 3 bits with binary encoding
SWITCH POS    IN2 IN1 IN0
INC-0          0   0   0 
INC-1          0   0   1
INC-2          0   1   0
INC-3          0   1   1
INC-4          1   1   1
Last edit: 26 Jun 2020 02:33 by PCW.

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

More
26 Jun 2020 11:07 #172791 by Zacharius
hmm, probably fastest way will be to insert some arduino there and make translation from bits to BCD

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

More
26 Jun 2020 14:52 #172803 by PCW
You can do this all in hal as I mentioned (using weighted sum amd mux_generic)
Or use a encoded switch if you dont have the switch yet
or use a encoder chip (a 74HC148 at about $0.30 will do)

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

More
26 Jun 2020 16:32 #172805 by Zacharius
got it, thanks a lot.
was pretty sure there is some cmos thing for that but it's hard to look when you don't know what are you looking for.
ordered few just in case.
need to take a break until delivery :)

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

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