component compile problem

More
8 years 5 months ago #110333 by Skidloaders1
Good day All
more questions

MDI => T2 M6 activates iocontrol.0.tool-prepare + carousel.0.strobe

1)The carousel component sees the 4x proximity sensors. but does not register them in the carousel.0.pocket-number
2) Do we need a additional program to turn the turret twice : say T2 => T4
3) We probably need some sort of a delay between the hydraulic push- pull action that turn the turret.
no idea how to implement this

regards
Wilfried

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

More
8 years 5 months ago #110335 by andypugh
Replied by andypugh on topic component compile problem
It sounds like carousel.0.strobe might be connected to the wrong thing if it toggles with M6 rather than with the carousel turning.

I am suspicious that carousel.0.active and carousel.0.enable are showing false. Perhaps you have forgotten to addf carousel.0 to a thread? What is carousel.0.enable linked to?

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

More
8 years 5 months ago #110438 by Skidloaders1
Good day Andy

The carousel.0.strobe is always on , even before activating ( F2) linuxcnc
I even deleted the sense pin carousel.0.sense-0 , makes no difference.

extract from hal file below: the iocontrol is still a bit of a mess,i'm still learning

######### turret control ###############

loadrt carousel pockets=4 encoding=single num_sense=4 dir=1
addf carousel.0 servo-thread

# turn
setp hm2_5i22.0.gpio.091.is_output true
setp hm2_5i22.0.gpio.091.invert_output true
net turn-turret => hm2_5i22.0.gpio.091.out

# lock
setp hm2_5i22.0.gpio.092.is_output true
setp hm2_5i22.0.gpio.092.invert_output true
net lock => hm2_5i22.0.gpio.092.out

# hydraulic pump
setp hm2_5i22.0.gpio.094.is_output true
setp hm2_5i22.0.gpio.094.invert_output true
net pump => hm2_5i22.0.gpio.094.out

# proximity sensors input
net pos1 <= hm2_5i22.0.gpio.083.in_not => carousel.0.sense-0
net pos2 <= hm2_5i22.0.gpio.080.in_not => carousel.0.sense-1
net pos3 <= hm2_5i22.0.gpio.081.in_not => carousel.0.sense-2
net pos4 <= hm2_5i22.0.gpio.082.in_not => carousel.0.sense-3

##### toolchange signals for custom tool changer #####

net tool-number <= iocontrol.0.tool-prep-number
net tool-change-request <= iocontrol.0.tool-change => carousel.0.enable
net tool-change-confirmed => iocontrol.0.tool-changed => carousel.0.ready
net current-tool-number <= iocontrol.0.tool-number <= carousel.0.pocket-number
net enable-turret <= iocontrol.0.tool-prepare #=> carousel.0.active

regards Wilfried

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

More
8 years 5 months ago #110442 by andypugh
Replied by andypugh on topic component compile problem
strobe = 1 is to be expected if it is not connected and you don't have a strobe pin from the tool changer.
(So that's OK)

Is iocontrol.0.tool-prepare changing state? That is typically activated by the T-command and is the enable input in your case.

github.com/LinuxCNC/linuxcnc/blob/master...onents/carousel.comp

Is the underlying code.

I think that you need "binary" rather than "single" for your machine. 4 sense pins and a single index makes no sense.

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

More
8 years 5 months ago #110529 by Skidloaders1
Quick question
Changed carousel hal to binary

I now get tool position sequence of 1 - 2 - 4 - 8 instead of 1 - 2 - 3 - 4

is this right?

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

More
8 years 5 months ago #110532 by andypugh
Replied by andypugh on topic component compile problem
What is the actual encoding scheme? How many position do you have?
Possibly you have a one-sensor-per-pocket scheme that I have not been aware of previously.

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

Time to create page: 0.233 seconds
Powered by Kunena Forum