4th Axis rotation angle limit problem

More
10 years 1 month ago #81078 by toplakd
Solved it by adding sleep 2.0 into M101 file :)

halcmd setp stepgen.5.velocity-cmd 0

sleep 2.0

halcmd setp stepgen.5.enable FALSE

halcmd unlinkp stepgen.5.step
halcmd unlinkp stepgen.5.dir

halcmd net astep stepgen.3.step
halcmd net adir stepgen.3.dir
exit 0

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

More
8 years 11 months ago - 8 years 11 months ago #101503 by eFalegname
Hi Jonh, Hi Andy!
guys I really need your help please, without you I couldn't get the cnc running,I can't find my mistake...mux is making me crazy.
I attached my configuration bellow. Thanks
Floris

File Attachment:

File Name: XYZA-T.ini
File Size:2.7 KB

File Attachment:

File Name: XYZA-T.hal
File Size:4.81 KB

File Attachment:

File Name: custom.hal
File Size:563 B
Last edit: 8 years 11 months ago by eFalegname.

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

More
8 years 11 months ago #101507 by andypugh
What isn't working? It looks basically OK.

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

More
8 years 11 months ago - 8 years 11 months ago #101509 by eFalegname
Hi Andy
Thanks for your prompt answer. I use the Iso experimental version debian stretch, when linuxcnc doesn't reboot there is not error window that tells what problems there are. After I compile the custom.hal file with mux component linuxcnc doesn't run anymore and I can't see what is the problem. Please take a look to the files I attached because I can't find my errors.
Thank you
Floris
Last edit: 8 years 11 months ago by eFalegname.

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

More
8 years 11 months ago #101510 by andypugh
If you start Linuxcnc from the command line (command "linuxcnc") then you should get at least _some_ output giving a hint as to the nature of the problem.

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

More
8 years 11 months ago - 8 years 11 months ago #101511 by eFalegname
Hi Andy
I did as you told me. The errors were these two lines below
net astep <= stepgen.3.step
net adir <= stepgen.3.dir
disconnecting these two functions linuxcnc started as normal (I don't try to run it on the cnc yet)
Code:
setp stepgen.3.position-scale [AXIS_3]SCALE setp stepgen.3.steplen 1 setp stepgen.3.stepspace 1 setp stepgen.3.dirhold 27000 setp stepgen.3.dirsetup 27000 setp stepgen.3.maxaccel [AXIS_3]STEPGEN_MAXACCEL net apos-cmd axis.3.motor-pos-cmd => stepgen.3.position-cmd net apos-fb stepgen.3.position-fb => axis.3.motor-pos-fb ################################################ #net astep <= stepgen.3.step #net adir <= stepgen.3.dir ################################################ net aenable axis.3.amp-enable-out => stepgen.3.enable

I have another question, how can I command the rpm of the A axis with M66 P0 ?
Thanks very much for your time and dedication
Last edit: 8 years 11 months ago by eFalegname.

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

Time to create page: 0.072 seconds
Powered by Kunena Forum