- Posts: 2180
- Thank you received: 905
ATC Project - Debug phase
- spumco
- Offline
- Platinum Member
-
Less
More
4 years 5 months ago - 4 years 5 months ago #243125
by spumco
Replied by spumco on topic ATC Project - Debug phase
UPDATE
[didn't want to edit the last and hose up the formatting]
carousel.0.jog-fwd seems to work.
carousel.0.jog-rev rotates the carousel in the same direction.
I stopped it in a random spot (after carousel.0.enable) with M65 P0. I then set jog-fwd to high in hal-show and it moved forward to the next pin.
carousel.0.current-position counted up (Yay!)
Clearing jog-fwd and setting jog-rev cause the carousel to rotate in the same direction and stop at the next pin. Current position went DOWN by one increment.
loadrt carousel pockets=18 encoding=index num_sense=18 dir=2 (means it should be bi-directional, right?)
This motor & drive was working fine (CW/CCW) as my A-axis until recently, so no hardware concerns.
So carousel.comp is moving and counting up and down, but the motor is only rotating one direction.
Looks like I've got a stepgen config issue. Unless carousel.0.rev-dc needs to be a negative number?
Anything obvious come to mind?
Why yes, in fact, carousel.0.rev-dc DOES need to be a negative number. Ignore the above...
Still have an issue with the homing - keep rotating indefinately until I kill it with an M65 P0.
[didn't want to edit the last and hose up the formatting]
carousel.0.jog-rev rotates the carousel in the same direction.
I stopped it in a random spot (after carousel.0.enable) with M65 P0. I then set jog-fwd to high in hal-show and it moved forward to the next pin.
carousel.0.current-position counted up (Yay!)
Clearing jog-fwd and setting jog-rev cause the carousel to rotate in the same direction and stop at the next pin. Current position went DOWN by one increment.
loadrt carousel pockets=18 encoding=index num_sense=18 dir=2 (means it should be bi-directional, right?)
This motor & drive was working fine (CW/CCW) as my A-axis until recently, so no hardware concerns.
So carousel.comp is moving and counting up and down, but the motor is only rotating one direction.
Why yes, in fact, carousel.0.rev-dc DOES need to be a negative number. Ignore the above...
Still have an issue with the homing - keep rotating indefinately until I kill it with an M65 P0.
Last edit: 4 years 5 months ago by spumco. Reason: Eureka!
Please Log in or Create an account to join the conversation.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 2180
- Thank you received: 905
4 years 5 months ago #243126
by spumco
Replied by spumco on topic ATC Project - Debug phase
Looks like I'm not the only one with a homing issue:
[url] forum.linuxcnc.org/38-general-linuxcnc-q...t-home?start=0#75754 [/url]
and
[url] forum.linuxcnc.org/49-basic-configuratio...carousel-comp#190966 [/url]
[url] forum.linuxcnc.org/38-general-linuxcnc-q...t-home?start=0#75754 [/url]
and
[url] forum.linuxcnc.org/49-basic-configuratio...carousel-comp#190966 [/url]
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
4 years 5 months ago #243169
by andypugh
Looking at the code, it shouldn't...
What is the "state" pin showing in this scenario? Does the "homed" pin set?
Replied by andypugh on topic ATC Project - Debug phase
Still have an issue with the homing - keep rotating indefinately until I kill it with an M65 P0.
Looking at the code, it shouldn't...
What is the "state" pin showing in this scenario? Does the "homed" pin set?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
4 years 5 months ago #243170
by andypugh
Replied by andypugh on topic ATC Project - Debug phase
Actually, this should be a fixed bug, but might not have been released yet.
Download this file:
raw.githubusercontent.com/LinuxCNC/linux...onents/carousel.comp
then issue the command
and see if that fixes the behaviour
Download this file:
raw.githubusercontent.com/LinuxCNC/linux...onents/carousel.comp
then issue the command
Code:
sudo halcompile --install carousel.comp
Please Log in or Create an account to join the conversation.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 2180
- Thank you received: 905
4 years 5 months ago #243177
by spumco
Replied by spumco on topic ATC Project - Debug phase
Thanks Andy, I'll try the new comp file tonight.
Regarding the homed & state pins... they weren't in halshow. That was the first (maybe second) thing I thought to check while debugging, but that pin didn't exist under carousel in halshow.
carousel.0.state
carousel.0.homed
carousel.0.homing
are all missing from available pins in halshow -> carousel
carousel.0.timer was present.
Regarding the homed & state pins... they weren't in halshow. That was the first (maybe second) thing I thought to check while debugging, but that pin didn't exist under carousel in halshow.
carousel.0.state
carousel.0.homed
carousel.0.homing
are all missing from available pins in halshow -> carousel
carousel.0.timer was present.
Please Log in or Create an account to join the conversation.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 2180
- Thank you received: 905
4 years 5 months ago #243208
by spumco
Replied by spumco on topic ATC Project - Debug phase
sudo: halcompile: command not found
Linux is making me feel dumb again.
Linux is making me feel dumb again.
Please Log in or Create an account to join the conversation.
Time to create page: 0.220 seconds