- Posts: 18115
- Thank you received: 5334
Pimping the mini-lathe
- PCW
- Offline
- Moderator
-
Less
More
5 years 10 months ago #191070
by PCW
Replied by PCW on topic Pimping the mini-lathe
I don't see anyway that the jog scale values are set
The default scale is likely 0 so if these are not
set, I would not expect any motion
That is I don't see
joint.N.jog-scale
axis.C.jog-scale
connected in your hal file
They may be connected in you main hal file
but are certainly something to add to your
halshow debug watch list
The default scale is likely 0 so if these are not
set, I would not expect any motion
That is I don't see
joint.N.jog-scale
axis.C.jog-scale
connected in your hal file
They may be connected in you main hal file
but are certainly something to add to your
halshow debug watch list
The following user(s) said Thank You: RotarySMP
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
-
Less
More
- Posts: 12170
- Thank you received: 4153
5 years 10 months ago #191071
by rodw
Replied by rodw on topic Pimping the mini-lathe
You seem to be connecting to gmocappy pins. My guess that driving the dro but not the machine.
My complete config
I never have got ilowpass working nicely. get it wrong like I did and one click = 1 metre so be careful the first move!
My complete config
Warning: Spoiler!
Code:
# --- PENDANT SELECT JOG MODE (Yellow Button)---
net pendant-jog <= hm2_7i76e.0.7i76.0.0.input-30
net pendant-jog => halui.mode.teleop
# --- MPG JOG WHEELS FOR X AND Y AXIS ---
# ilowpass filter
setp ilowpass.0.scale 10
setp ilowpass.0.gain 0.01
# Setup Jog Pendant on each axis
setp axis.x.jog-vel-mode 0
setp axis.y.jog-vel-mode 0
setp axis.z.jog-vel-mode 0
# Scale Select
setp mux4.0.in0 0.0
setp mux4.0.in1 1.0
setp mux4.0.in2 0.01
setp mux4.0.in3 0.1
#Axis Select (0=off, 1=x, 2=z, 3=y, na, 5=6, 6=4, 7=5)
setp mux8.0.in0 0
setp mux8.0.in1 1
setp mux8.0.in2 2
setp mux8.0.in3 3
setp mux8.0.in4 4
setp mux8.0.in5 5
setp mux8.0.in6 6
setp mux8.0.in7 7
net mux8-sel0 <= hm2_7i76e.0.7i76.0.0.input-23
net mux8-sel1 <= hm2_7i76e.0.7i76.0.0.input-24
net mux8-sel2 <= hm2_7i76e.0.7i76.0.0.input-25
net mux8-sel0 => mux8.0.sel0
net mux8-sel1 => mux8.0.sel1
net mux8-sel2 => mux8.0.sel2
#setp conv-float-s32.0.clamp 0
net mux-float <= mux8.0.out
net mux-float => conv-float-s32.0.in
net mux-s32 <= conv-float-s32.0.out
net mux-s32 => select8.0.sel
net axis-select-x <= select8.0.out1
net axis-select-y <= select8.0.out3
net axis-select-z <= select8.0.out2
net axis-select-4 <= select8.0.out6
net axis-select-5 <= select8.0.out7
net axis-select-6 <= select8.0.out5
net axis-select-x => axis.x.jog-enable
net axis-select-y => axis.y.jog-enable
net axis-select-z => axis.z.jog-enable
# Encoder counts
net jog-counter <= hm2_7i76e.0.7i76.0.0.enc0.count
net jog-counter => ilowpass.0.in
net smooth-counter <= ilowpass.0.out
net jog-counter => axis.x.jog-counts
net jog-counter => axis.y.jog-counts
net jog-counter => axis.z.jog-counts
net mux4-sel1 <= hm2_7i76e.0.7i76.0.0.input-22
net mux4-sel0 <= hm2_7i76e.0.7i76.0.0.input-21
net mux4-sel1 => mux4.0.sel1
net mux4-sel0 => mux4.0.sel0
net jog-scale <= mux4.0.out
net jog-scale => axis.x.jog-scale
net jog-scale => axis.y.jog-scale
net jog-scale => axis.z.jog-scale
I never have got ilowpass working nicely. get it wrong like I did and one click = 1 metre so be careful the first move!
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
-
Less
More
- Posts: 12170
- Thank you received: 4153
5 years 10 months ago #191072
by rodw
Replied by rodw on topic Pimping the mini-lathe
Just an aside, my pendant has a yellow safety button that must be pressed to use the MPG dial. I use it to select the gmocappy jog tab otherwise noting will work.
Please Log in or Create an account to join the conversation.
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
5 years 10 months ago #191074
by RotarySMP
Replied by RotarySMP on topic Pimping the mini-lathe
Those last three lines:
net jog.inc1 select8.0.out1 => gmoccapy.jog.jog-inc-0
net jog.inc2 select8.0.out2 => gmoccapy.jog.jog-inc-1
net jog.inc3 select8.0.out3 => gmoccapy.jog.jog-inc-2
set the jog increments to continuous, 0.1mm and 0.01mm I defined in the Gmoccapy ini. This works. I flick that switch and the corresponding gmoccapy screen button becomes active. Also the on screen jog buttons follow this setting correctly.
I thought I had tried setting joint.[].jog-scale and axis.().jog-scale to 1 or other values to see if that did anything, but it makes sense if I am passing steps of 0, nothing happens. I'll try again setting them to 1 tomorrow.
Rod, I see you yellow jog activate button is net to halui.mode.teleop. I'll try netting my jog axis enable to that and see if it works.
Mark
net jog.inc1 select8.0.out1 => gmoccapy.jog.jog-inc-0
net jog.inc2 select8.0.out2 => gmoccapy.jog.jog-inc-1
net jog.inc3 select8.0.out3 => gmoccapy.jog.jog-inc-2
set the jog increments to continuous, 0.1mm and 0.01mm I defined in the Gmoccapy ini. This works. I flick that switch and the corresponding gmoccapy screen button becomes active. Also the on screen jog buttons follow this setting correctly.
I thought I had tried setting joint.[].jog-scale and axis.().jog-scale to 1 or other values to see if that did anything, but it makes sense if I am passing steps of 0, nothing happens. I'll try again setting them to 1 tomorrow.
Rod, I see you yellow jog activate button is net to halui.mode.teleop. I'll try netting my jog axis enable to that and see if it works.
Mark
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
-
Less
More
- Posts: 18115
- Thank you received: 5334
5 years 10 months ago - 5 years 10 months ago #191075
by PCW
Replied by PCW on topic Pimping the mini-lathe
joint.0.jog-scale
axis.X.jog-scale
joint.1.jog-scale
axis.Z.jog-scale
Are the pins that need to be set to 0.01 or 0.1
they set the jog increment per count
man motion
axis.X.jog-scale
joint.1.jog-scale
axis.Z.jog-scale
Are the pins that need to be set to 0.01 or 0.1
they set the jog increment per count
man motion
Last edit: 5 years 10 months ago by PCW.
Please Log in or Create an account to join the conversation.
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
5 years 10 months ago #191079
by RotarySMP
Replied by RotarySMP on topic Pimping the mini-lathe
I guess I assumeed that connect to Norbert goccapy pins would do this and the gui buttons at the same time, guess I need to do them both.
Please Log in or Create an account to join the conversation.
Moderators: piasdom
Time to create page: 0.483 seconds