Instrument Control (GPIB, Serial, VISA, IVI)

Showing results for 
Search instead for 
Did you mean: 
Reply

Serial com with USB485 - ModBUS

Re: Serial com with USB485 - ModBUS

Hi Eric,

 

Maybe you can try to read an address and see what your slave returns.

 

The CRC calculation method is always the same.

 

Kees

0 Kudos
Message 21 of 30 (288 Views)
Reply
0 Kudos
Highlighted

Re: Serial com with USB485 - ModBUS

Hi Kees,

 

I decided to try with the MODBUS library from labview because i was becoming crazy trying to write my own cmd...

 

Good news... I can read and write SOME registers...

 

I don't understant why, if you look at the register table i sent to you recently, I can do what ever I want from the list from page 72 to 85 (what they seem to call legacy parameters table).

 

But whenever I try to do read/write another address higher then 760 (40761), i have an illegal address error code. Any idea why?

 

Example: If I try to read the address 44804 (4803 from labview) I got the error.

 

Slowly... getting through it...

 

Thanks

 

Eric

0 Kudos
Message 22 of 30 (275 Views)
Reply
0 Kudos

Re: Serial com with USB485 - ModBUS

Hi Eric,

 

Had a long weekend. No computer no forums ... no NI

 

Now it is getting device specific. I see no reason why you cannot communicate with the mentioned addresses.

 

Kees

Message 23 of 30 (250 Views)

Re: Serial com with USB485 - ModBUS

Hi Kees,

 

Yes, long and hot weekend (here in Canada). Warn weather is finally coming up.

 

Ok well thx a lot for your help, it helped me a lot.

 

You are good Smiley Wink

 

Bye,

 

Eric

 

 

0 Kudos
Message 24 of 30 (247 Views)
Reply
0 Kudos

Re: Serial com with USB485 - ModBUS

Could you please convert it to 2009SP1. I can't open 2011.


Yasemin Barutçu
Electrical And Electronics Engineer
0 Kudos
Message 25 of 30 (230 Views)
Reply
0 Kudos

Re: Serial com with USB485 - ModBUS

Hi Yasemin,

 

Which file do you need converted?

 

Best,

0 Kudos
Message 26 of 30 (218 Views)
Reply
0 Kudos

Re: Serial com with USB485 - ModBUS

Hi

 

This one? Let me know if it works.

 

Eric

0 Kudos
Message 27 of 30 (216 Views)
Reply
0 Kudos

Re: Serial com with USB485 - ModBUS

Hello Courtney,

 

and Test2.vi would be great.

Yasemin Barutçu
Electrical And Electronics Engineer
0 Kudos
Message 28 of 30 (205 Views)
Reply
0 Kudos

Re: Serial com with USB485 - ModBUS

Hey Yasemin,

 

These should do the trick.

 

Best,

 

0 Kudos
Message 29 of 30 (195 Views)
Reply
0 Kudos

Re: Serial com with USB485 - ModBUS

Thank you very much, they worked.


Yasemin Barutçu
Electrical And Electronics Engineer
0 Kudos
Message 30 of 30 (193 Views)
Reply
0 Kudos
//this script is to ensure MY ACCOUNT is loaded and then paste the info into the nav