Communication to CNC HASS from linux
- MFI-Spencer
- Offline
- New Member
- Posts: 2
- Thank you received: 0
Please Log in or Create an account to join the conversation.
I am trying to figure out how to use linux to communicate with a Hass Mill the connection is made using RS-232. I want to send already made G-code via the RS-232 cable, would it be overkill to install LinuxCNC just to do this?
Yes, and in fact LinuxCNC can't do what you require.
From Linux it might actually be possible to send the G-code with no third-party software at all.
echo mygcodefile.ngc > /dev/tty0
www.armadeus.com/wiki/index.php?title=Se...ports_usage_on_Linux
Please Log in or Create an account to join the conversation.
Sending anything though the serial port using the command line in linux (like Andy suggested), although it works, it is probably to much work without near results.
Please Log in or Create an account to join the conversation.
I am trying to figure out how to use linux to communicate with a Hass Mill the connection is made using RS-232. I want to send already made G-code via the RS-232 cable, would it be overkill to install LinuxCNC just to do this?
Hi
Before I converted my Denford Easimill to Linuxcnc, I used the PNC3 controller which came with it.
It used a primative RS232 DNC program to load files and remotely control it, which would only work with Windows 98
I wrote a specific linux dnc program for it which is here
www.mgware.co.uk/CNC/CNC/PNC3Comm_latest.tar.gz
If you are thinking of doing similar, it may help you.
It will not work with yours but will give an idea of the process of connecting, receiving and sending commands and acknowledgements etc
The important things to find out are the handshake protocols, baudrate etc
Often the windoze dnc programs will give you a heads up on that, I found a lot of the initial settings that way and then fortunately I tracked down a manual for the controller
Whilst I was testing the code, I used Cutecom to send the command strings to the controller and analyse the replies
Although it is a bit laborious, it does work, but if you have a text file with common command strings in it, you can just cut and paste and /or use Cutecoms history, so it gets faster
Depends how much you need to do with it
regards
Please Log in or Create an account to join the conversation.
- MFI-Spencer
- Offline
- New Member
- Posts: 2
- Thank you received: 0
I have been looking for free and somewhat easy to understand methods of communicating but have not really found anything yet.
ArcEye - Thanks also but honestly that was a little more complicated than I am ready for at this point.
emcPT - Thanks I tried it in wine under linux but it was a no-go.
Please Log in or Create an account to join the conversation.
so it can start drip feeding the gcode ( text file in reality )
check that you have the rs232 cable correct including any handshake line connections , they can be a pain
also the baud rate and stop bits in a lot of cases need to be slow i.e 1200 7n1 or 2400 etc , and using xon /xoff without handshake lines , as some machines dont need any more than just the usual tx/rx and gnd
on some machines i have had to manualy start the pc terminal and then select the start the download on the machine , again a pain but it worked .
i tend to use Ncnet under windows , but note the free version does not support drip feed .
you could try Easydnc under linux www.dnc-x.com
any resonable rs232 terminal program should do it , although you may need to script the start and stop codes if they are different on the HASS .
Please Log in or Create an account to join the conversation.
I wrote a specific linux dnc program for it which is here
www.mgware.co.uk/CNC/CNC/PNC3Comm_latest.tar.gz
The link seem to no not valid yet, have a new one?
It is possible have the source-code? it is open source?
Thank you
Regards
Dino
Please Log in or Create an account to join the conversation.
This is an old thread and I have changed servers since then
After the reorganisation the link is now
www.mgware.co.uk/CNC/PNC3Comm_latest.tar.gz
It IS the source code, there is no binary.
How much use it will be to you is uncertain, unless you have a Denford Easimill with a PNC3 controller.
But it is an example of serial programming in Qt3, so may be of use.
regards
Please Log in or Create an account to join the conversation.
I download it and study
Please Log in or Create an account to join the conversation.
programs to another type of CNC device. You will probably need to install this package with the
software manager menu.
Jon
Please Log in or Create an account to join the conversation.