7i76E one PWM needed

More
10 years 9 months ago #69314 by sirhc
Replied by sirhc on topic 7i76E one PWM needed
I see.. spindle-at-speed is TRUE so that should be okay.

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

More
10 years 9 months ago #69318 by PCW
Replied by PCW on topic 7i76E one PWM needed
motion.spindle-index-enable will not be set true until spindle synchronized motion
( G33, G33.1 G76 etc ) is required. so I would not expect any index activity until then

If you simply want to check the hardware part of index operation, you can:

sets spindle-index-enable true
(either via axis or via halcmd)

and watch spindle-index-enable as you rotate the spindle by hand
it should get set false at the index location

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

More
10 years 9 months ago #69333 by sirhc
Replied by sirhc on topic 7i76E one PWM needed
That's also working!. I've tried this code:

G90 (absolute distance mode)
G0 X1 Z0.1 (rapid to position)
S100 M3 (start spindle turning)
G33 Z-2 K0.125 (move Z axis to -2 at a rate to equal 0.125 per revolution)
G0 X1.25 (rapid move tool away from work)
Z0.1 (rapid move to starting Z position)
M2 (end program)

When the G33 is executed I see the spindle-index-enable is set to true. At the index it will go to false which is correct?
But after that it does not go back to true anymore. There is no motion. So some other signal is not correct. I've noticed the
spindle-revs is negative. Not sure if it matters.

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

More
10 years 9 months ago #69334 by PCW
Replied by PCW on topic 7i76E one PWM needed
Yep, AFAIK spindle-revs has to be correct or you will be stuck waiting forever

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

More
10 years 9 months ago #69337 by sirhc
Replied by sirhc on topic 7i76E one PWM needed
But why are the numbers negative? I did not hook up input-b of the encoder. My encoder just has one phase and the index signal.
The counts are also negative. So I have to make input-b true to make sure the encoder counts positive.

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

More
10 years 9 months ago #69339 by PCW
Replied by PCW on topic 7i76E one PWM needed
Either set the B input to TTL mode and (I think) tie it low or reverse the encoder scale
The following user(s) said Thank You: sirhc

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

Moderators: PCW, jmelson
Time to create page: 0.071 seconds
Powered by Kunena Forum