emcoturn 120 / 220 tool turret hal outputs

More
7 years 2 months ago #141346 by Erikcnc

then from a terminal, type halcmd -f then


setp hm2_7i76e.0.gpio.008.out true
setp hm2_7i76e.0.gpio.008.out false


the first section i dont get what to do with it.

but if i just do show param its true.

Attachment not found

Please Log in to join the conversation.

More
7 years 2 months ago #141347 by PCW
So does the state of DIR4 change when you do this?

Please Log in to join the conversation.

More
7 years 2 months ago #141348 by Erikcnc

PCW wrote: So does the state of DIR4 change when you do this?



hey, they are changing!!

i messure it with a volt meter between DR+ and DIR-.
with the other hand i did the command from true to false in terminal.

i dont have a 470ohm resistor on the pwm => ENA pin. i think its wise to add this i think.

Please Log in to join the conversation.

More
7 years 2 months ago #141362 by Erikcnc
So, some how the dir pins ain't getting triggered by the halfile, or it isn't set to it for the direction some how.

Please Log in to join the conversation.

More
7 years 2 months ago #141363 by PCW
So you are saying the hm2_7i76e.0.gpio.008.out changes
(follow it with halmeter or watch) but the direction pins don't?
(as measured with a voltmeter)

Please Log in to join the conversation.

More
7 years 2 months ago #141365 by Erikcnc

PCW wrote: So you are saying the hm2_7i76e.0.gpio.008.out changes
(follow it with halmeter or watch) but the direction pins don't?
(as measured with a voltmeter)


i did:
Code:
halcmd -f setp hm2_7i76e.0.gpio.008.out true setp hm2_7i76e.0.gpio.008.out false

while i was doing this, i measured between DIR+ and DIR- with a voltmeter.
The value was changing from +5v to -5v.

But, in linuxcnc at a toolchange command, T3 M6 for example, the same DIR outputs are not switching.

Please Log in to join the conversation.

More
7 years 2 months ago #141367 by PCW
Right so you need to trace the signals

I did not make it clear but what I meant was to watch
hm2_7i76e.0.gpio.008.out while linuxcnc is running
and you request a toolchange then trace backwards
if hm2_7i76e.0.gpio.008.out does not change

Please Log in to join the conversation.

More
7 years 2 months ago #141368 by Erikcnc

PCW wrote: Right so you need to trace the signals

I did not make it clear but what I meant was to watch
hm2_7i76e.0.gpio.008.out while linuxcnc is running
and you request a toolchange then trace backwards
if hm2_7i76e.0.gpio.008.out does not change


ah i see.

i did this now. (il try to explain it)

hal file is as it should be. hm2_7i76e.0.gpio.008.out is connected to emcochanger.forward
i started linuxcnc, open halshow and watched emcochangerfoward and hm2_7i76e.0.gpio.008.out
request toolchange in mdi.
emcochangerfoward and hm2_7i76e.0.gpio.008.out are getting from false to true, and stays true.

Please Log in to join the conversation.

More
7 years 2 months ago #141370 by PCW
Is the toolchanger connected?

There are many possible ways for this to not work (bad feedback, inverted feedback
signals relative to what the component expects etc,etc) , but one fairly obvious one
i mentioned before is the motor direction

Did you try swapping the DIR+ and DIR- leads?

Please Log in to join the conversation.

More
7 years 2 months ago #141372 by Erikcnc

PCW wrote: Is the toolchanger connected?

There are many possible ways for this to not work (bad feedback, inverted feedback
signals relative to what the component expects etc,etc) , but one fairly obvious one
i mentioned before is the motor direction

Did you try swapping the DIR+ and DIR- leads?


yes it is connected.
motor is turning the ccw as it should do for a tool change. so thats good.

position is good. but, it its not really logic.
for example, if the next tool is just one position aways, it does a full turn +1

blue => opto 1 => Di 20
pink => opto2 => Di 21
yellow => opto 3 => Di 22
gray => opto 4 => Di 23


Did you try swapping the DIR+ and DIR- leads?


yes, then it goes the other way. so allso the in1 and in2 are working.


i insert the example file

Attachment not found



this comp file is abit different then the comp file i use.
the one i use, has a delaystart and delaystart1, same for the delaydone

Please Log in to join the conversation.

Time to create page: 1.555 seconds
Powered by Kunena Forum