emcoturn 120 / 220 tool turret hal outputs

More
04 Aug 2019 15:52 - 04 Aug 2019 15:53 #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.

File Attachment:

File Name: halcmdshow...8-04.doc
File Size:1 KB
Attachments:
Last edit: 04 Aug 2019 15:53 by Erikcnc.

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

More
04 Aug 2019 15:57 #141347 by PCW
So does the state of DIR4 change when you do this?
The following user(s) said Thank You: Erikcnc

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

More
04 Aug 2019 16:05 - 04 Aug 2019 16:07 #141348 by Erikcnc

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.
Last edit: 04 Aug 2019 16:07 by Erikcnc.

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

More
04 Aug 2019 19:40 - 04 Aug 2019 19:40 #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.
Last edit: 04 Aug 2019 19:40 by Erikcnc.

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

More
04 Aug 2019 19:58 #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 or Create an account to join the conversation.

More
04 Aug 2019 20:10 - 04 Aug 2019 20:12 #141365 by Erikcnc

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:
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.
Last edit: 04 Aug 2019 20:12 by Erikcnc.

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

More
04 Aug 2019 20:18 #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
The following user(s) said Thank You: Erikcnc

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

More
04 Aug 2019 20:40 #141368 by Erikcnc

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 or Create an account to join the conversation.

More
04 Aug 2019 21:05 - 04 Aug 2019 21:05 #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?
Last edit: 04 Aug 2019 21:05 by PCW.
The following user(s) said Thank You: Erikcnc

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

More
04 Aug 2019 21:35 - 04 Aug 2019 21:38 #141372 by Erikcnc

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

File Attachment:

File Name: emcochange...-04.comp
File Size:5 KB


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
Attachments:
Last edit: 04 Aug 2019 21:38 by Erikcnc.

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

Time to create page: 0.094 seconds
Powered by Kunena Forum