Problem with homing ATC step motor

More
4 years 4 months ago #245856 by COFHAL
.Read a little more about the carousel function to understand a little better how it is used. Regarding the encoding, I think it is now clear to me that when using index only two sensors are needed. Regarding what you call strobe, in another thread I found that it is a signal that is used in conjunction with gray coding or another to know exactly the position of the tool, avoiding errors when the turret is rotating and gaps appear that could be interpreted as a pocket, I don't know if that's a wrong interpretation.

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

More
4 years 3 months ago #246826 by COFHAL
 

File Attachment:

File Name: TORNOCNC.hal
File Size:11.5 KB
 

File Attachment:

File Name: TORNOCNC.ini
File Size:4.47 KB
Andy I already have the gray encoder working for the tool changer for the lathe, simulating the movement with the sensors, everything works fine. Now I included the stepper motor, but now the problem is that after homing the X and Z axes and trying from the MDI make a tool change with M6 Tx, I get the error: cant issue MDI command when not home. I understand that as the motor I use for the carousel I have no way of doing homing for linuxcnc this motor is not in the home position. These are my configuration files. 

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

More
4 years 3 months ago #246827 by andypugh
I think that the only change you need is to reduce to two joints:
Code:
[KINS] JOINTS = 2 KINEMATICS = trivkins coordinates=XZ

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

More
4 years 3 months ago #246832 by COFHAL
Andy
No, if I only leave two joints I get an error: joint.2.amp-enable-it does not exist., and without that instruction the engine doesn't work.

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

More
4 years 3 months ago #246841 by andypugh
change
Code:
net a-enable <= joint.2.amp-enable-out net a-enable => hm2_7i96.0.stepgen.03.enable

to
Code:
net a-enable <= carousel.0.active net a-enable => hm2_7i96.0.stepgen.03.enable

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

More
4 years 3 months ago #246953 by COFHAL
Thank you very much for your support, the motor already works. The problem now is that despite having the carousel configured as bidirectional it always turns in the same direction, when verifying with the HALSHOW carousel.0.motor-fwd or carousel.0.motor-rev it is activated depending on which is the most it cuts to reach the tool it selects, despite that the motor always only turns in the same direction.

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

Time to create page: 0.215 seconds
Powered by Kunena Forum