Mb2hal speed irregular timing of reversing of spindle

More
9 years 7 months ago #90622 by Charlieslasher
I am having trouble with fwd/rev spindle delays 0-2sec variance when using modbus 2 hal userspace progam.
I have baud rate as high as i can for the x200 vfd. But it seems like the internal timing of the user space mb2hal is too slow.

Is there a way to get linuxcnc to output fwd/reverse over rs485 at consistant sub second speed. Rigid tap dose not like delays in reversing.

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

More
9 years 7 months ago #90625 by Todd Zuercher
Have you tried checking the debugging messages for mb2hal while Linuxcnc is running? Large delays can be caused by communication errors (I have seen this myself, but haven't been able to do much about it.)

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

More
9 years 7 months ago - 9 years 7 months ago #90627 by Charlieslasher
Havnt seen any debug messages. I look into it. I have started to look at the mb2hal file to try understand how it works.

I checked ther mb2hal.num_error pins in hal and they all change 0 to 1. So i guess this means illegal function.
Last edit: 9 years 7 months ago by Charlieslasher.

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

More
9 years 7 months ago #90640 by Todd Zuercher
You set the debuging level in the mb2hal.ini file, then the messages are printed out in the terminal when you start Linuxcnc from the command prompt.

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

More
9 years 7 months ago #90652 by VNR
For maximum speed check this:
SLOWDOWN=0.0
MAX_UPDATE_RATE=0.0

also for serial link check this
SERIAL_BAUD= highest as posible
SERIAL_DELAY_MS=0

set the debug levels to see information
INIT_DEBUG
DEBUG

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

More
9 years 7 months ago #90653 by VNR

Charlieslasher wrote: But it seems like the internal timing of the user space mb2hal is too slow.

The problem is not mb2hal, it is as fast as your link throughput or VFD response.

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

Time to create page: 0.261 seconds
Powered by Kunena Forum