Data transfer LinuxCNC to / from custom board - Solved

More
2 years 2 months ago - 2 years 2 months ago #306705 by Aciera
You seem to have a lot going on there.
First thing I would suggest is to simplify things by choosing which jog method you actually want to use and then test this method in the 'Halshow' tool without all the connections in your hal.
For example this situation should jog the x-axis:

 

Alternatively this should also jog your x axis:
 


Also, posting your hal and ini files might give us a better idea of what you have going on.
Last edit: 2 years 2 months ago by Aciera.
The following user(s) said Thank You: tommylight, slowpoke

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

More
2 years 2 months ago #306810 by slowpoke

You seem to have a lot going on there.
First thing I would suggest is to simplify things by choosing which jog method you actually want to use and then test this method in the 'Halshow' tool without all the connections in your hal.
For example this situation should jog the x-axis:

 

Alternatively this should also jog your x axis:
 


Also, posting your hal and ini files might give us a better idea of what you have going on.
 

 
I commented out the 3 lines related to the Arduino stuff in io.hal and postgui.hal to make sure that they are not doing something strange. I then tried both your suggestions and assuming that "setting" all three in the first example or just halui.axis.x.plus (in HalShow -watch), should cause a jog, it does not in either case. So I think there is something missing between those parameters in halshow and the real time thread causing then to be ineffective. I have attached my configuration files.
 

File Attachment:

File Name: io_2024-08-02.hal
File Size:1.31 KB

File Attachment:

File Name: postgui_20...8-02.hal
File Size:2.84 KB

File Attachment:

File Name: A1S-ClosedLoop.ini
File Size:4.31 KB

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

More
2 years 2 months ago #306811 by Aciera
The only thing I can think of at the moment is that your x axis is not homed which would inhibit axis jogging.
The following user(s) said Thank You: slowpoke

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

More
2 years 2 months ago #307642 by slowpoke
After a bit of trial and error I found the problem, I can now jog from the Arduino board. The fundamental problem was that I was not homing all axis's, I assumed because I was trying to jog x that homing x was sufficient.

I did a little test where I banged in 10 jog increments as fast as I could and none were lost. I'm not using a MPG so I can't comment on the slow response of the ArduinoConnector as noted by blazini36 when using a MPG, however for regular button presses it seems to be doing the job for me.

I have attached the relevant portion of my postgui.hal

Thanks for the help getting this working.
Jeff
 

File Attachment:

File Name: postguiArd...tial.hal
File Size:645 B

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

More
2 years 2 months ago #307689 by Cant do this anymore bye all
You can jog without homing if add jogging, enable & counts for each joint.
The following user(s) said Thank You: slowpoke

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

More
2 years 2 months ago #307691 by Mecanix
This is like a century ago I forgot but was it in the naming of the nets that defines whether you can jog with and/or without homing?

axis.x.jog-enable -vs- axis.joint0.jog-enable

An HAL expert would know...
The following user(s) said Thank You: slowpoke

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

Time to create page: 0.217 seconds
Powered by Kunena Forum