emcoturn 120 / 220 tool turret hal outputs
- Erikcnc
-
Topic Author
- Offline
- Premium Member
-
- Posts: 153
- Thank you received: 0
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.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
- Posts: 18474
- Thank you received: 5044
Please Log in or Create an account to join the conversation.
- Erikcnc
-
Topic Author
- Offline
- Premium Member
-
- Posts: 153
- Thank you received: 0
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 or Create an account to join the conversation.
- Erikcnc
-
Topic Author
- Offline
- Premium Member
-
- Posts: 153
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
- Posts: 18474
- Thank you received: 5044
(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.
- Erikcnc
-
Topic Author
- Offline
- Premium Member
-
- Posts: 153
- Thank you received: 0
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.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
- Posts: 18474
- Thank you received: 5044
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 or Create an account to join the conversation.
- Erikcnc
-
Topic Author
- Offline
- Premium Member
-
- Posts: 153
- Thank you received: 0
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.
- PCW
-
- Away
- Moderator
-
- Posts: 18474
- Thank you received: 5044
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 or Create an account to join the conversation.
- Erikcnc
-
Topic Author
- Offline
- Premium Member
-
- Posts: 153
- Thank you received: 0
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
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:
Please Log in or Create an account to join the conversation.