RS485 For Hypertherms

More
08 Sep 2019 14:45 #144521 by Mike_Eitel
Replied by Mike_Eitel on topic RS485 For Hypertherms
If you are talking MoBus RTU there is no CR/Lf. It is pure hex.
( With some high level languages you have to watch carefully that they really send out the hex. In windows I had once the problem that the lower hex ones had been automatically transformed to control sequences. Grrrrr)

Only in the very old ModBus-ASCI have been with CR/LF. But that is not used often anymore...
M5C
Mike

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

More
08 Sep 2019 20:10 #144544 by rodw
Replied by rodw on topic RS485 For Hypertherms

Mike_Eitel wrote: Only in the very old ModBus-ASCI have been with CR/LF. But that is not used often anymore...
M5C
Mike


But in this case its Modbuus ASCII

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

More
08 Sep 2019 20:21 #144545 by Mike_Eitel
Replied by Mike_Eitel on topic RS485 For Hypertherms
Old fishermen never die, they just smell that way
;-(

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

More
08 Sep 2019 20:38 - 08 Sep 2019 20:39 #144546 by rodw
Replied by rodw on topic RS485 For Hypertherms

phillc54 wrote: In the Hypertherm docs they mention a CR/LF at the end of transmission from master to slave but when they mention the reply there is no CR/LF. Is this correct?

Edit: Hey Rod I see one of Toms links is from your neck of the woods.


Phill, I think the answer is on page 4. They assume your software strips out the CRLF terminator

CR/LF Carriage return, line feed in hexadecimal: 0D0A. The end characters are typcially removed on incoming messages by the CNC.


And yes, I lived in Toowoomba where USQ is for a few years.
Last edit: 08 Sep 2019 20:39 by rodw.

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

More
08 Sep 2019 23:33 #144553 by phillc54
Replied by phillc54 on topic RS485 For Hypertherms

rodw wrote: Phill, I think the answer is on page 4. They assume your software strips out the CRLF terminator

CR/LF Carriage return, line feed in hexadecimal: 0D0A. The end characters are typcially removed on incoming messages by the CNC.

Well, I have read that doc a gazillion times (or I thought I had) and didn't see that bit. I think this is frustrating me, I'll take a short break...

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

More
08 Sep 2019 23:38 #144554 by thefabricator03

phillc54 wrote: Well, I have read that doc a gazillion times (or I thought I had) and didn't see that bit. I think this is frustrating me, I'll take a short break...


That was my experience learning Modbus RTU/ASCII as well,

What makes things more fun is the way the register values start, It can either start with a 0 or 1 depending on vendor it could be one of either! I have a servo drive that I programed a PLC to control and setting up the Modbus code first time was a real head fuck.

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

More
08 Sep 2019 23:45 #144555 by phillc54
Replied by phillc54 on topic RS485 For Hypertherms
It is even harder when you spend a day and a half trying to get your virtual machine talking to a USB-RS485 converter. In the end I gave up and downloaded VirtualBox, converted the VMware appliance and imported it as a VirtualBox appliance and it worked.
Now I need to make me an Arduino PM-XP emulator so I can talk to something...

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

More
09 Sep 2019 16:13 #144613 by Mike_Eitel
Replied by Mike_Eitel on topic RS485 For Hypertherms
The best is to get one of the free serial analyzers and sniff both sides of your communication with a second pc... One look on the screen and you win lot of time..

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

More
09 Sep 2019 23:20 #144635 by phillc54
Replied by phillc54 on topic RS485 For Hypertherms
Yeah, I have an 8 channel logic analyser but the problem I was having with a VMware guest was that it wouldn't open the port consistently.

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

More
10 Sep 2019 00:51 #144637 by bevins
Replied by bevins on topic RS485 For Hypertherms

phillc54 wrote: Yeah, I have an 8 channel logic analyser but the problem I was having with a VMware guest was that it wouldn't open the port consistently.


You trying to get the Hyperterm to talk rs-485 for THC?

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

Moderators: phillc54
Time to create page: 0.107 seconds
Powered by Kunena Forum