Jump to content


Photo

Modbus Rtu On Danfoss


  • Please log in to reply
12 replies to this topic

#1 gmor

gmor

    Junior Member

  • Full Member
  • PipPip
  • 5 posts

Posted 29 December 2009 - 05:21 AM

I have an issue setting up a Horner XLe modbus rtu connection to a danfoss fc202. I am unable to achieve 6 digit addressing.
Does anyone know how to interface the Horner with the Danfoss FC202?
regards,

Glenn

#2 marke

marke

    Posting Freak

  • Moderator
  • PipPipPipPipPipPip
  • 2,603 posts
  • Gender:Male
  • Location:Christchurch, New Zealand

Posted 29 December 2009 - 05:54 AM

Hello Glenn

Welcome to the forum.

What version of CScape are you using?

Best regards,
Mark.

#3 gmor

gmor

    Junior Member

  • Full Member
  • PipPip
  • 5 posts

Posted 29 December 2009 - 09:26 PM

Version 8.8

#4 marke

marke

    Posting Freak

  • Moderator
  • PipPipPipPipPipPip
  • 2,603 posts
  • Gender:Male
  • Location:Christchurch, New Zealand

Posted 29 December 2009 - 11:16 PM

Hi Glenn

In version 8.8, you can set the modbus master to 6 digit addressing, it is an option.

Firstly, I hope that you are using the scanner option for Modbus Master. This is got to via the top menu, "program" then "Protocol configuration"
Select Modbus Master for the serial port that you are using. Set up the hardware configuration under the network button, then set up you device (FC202) under the device button (add device), set the network address (ID) to match the ID on the drive and select device type as "Modicon PLC 6-digit Addressing" then add your scan list under the scan list button.

You do not need any ladder logic to make this work, although I would normally set up a status register for each device and use that to indicate a comms error.

Make sense?
I am not sure what level you are at, so I appologise if I am stating the obvious. If you want more detail and sample code, let me know.

Best regards,
Mark.

#5 gmor

gmor

    Junior Member

  • Full Member
  • PipPip
  • 5 posts

Posted 30 December 2009 - 03:51 AM

Thanks Mark, the setup you mentioned I have previously tried, along with a few others. Sample code would be good, then I can see whether it is my setup or the cable & port connections. looking at the status register under Data Watch, I keep getting comm errors.

regards,
Glenn

#6 marke

marke

    Posting Freak

  • Moderator
  • PipPipPipPipPipPip
  • 2,603 posts
  • Gender:Male
  • Location:Christchurch, New Zealand

Posted 30 December 2009 - 04:00 AM

Hello Glen

I have attached some sample code, (not tested on a drive but should work) that will show the basic set up.
This requires that the drive is set up for MODBUS RTU and ID = 1 9600 baud, 8 bit, 1 stop and 0 parity.

The drive is connected to MJ2.
pins 1 and 3 are linked as TX+ and, 2 and 4 are linked as TX-, and pin 6 is earth.

Let me know hw you get on.

Best regards,
Mark.

Attached Files



#7 gmor

gmor

    Junior Member

  • Full Member
  • PipPip
  • 5 posts

Posted 30 December 2009 - 05:29 AM

Mark,

I'm unable to open the zip file you sent. Could you please re send.

Regards,

Glenn

#8 marke

marke

    Posting Freak

  • Moderator
  • PipPipPipPipPipPip
  • 2,603 posts
  • Gender:Male
  • Location:Christchurch, New Zealand

Posted 30 December 2009 - 06:01 AM

Hello Glenn

I am able to down load and open the file without problems.

I have uploaded the unzipped file to a directory on this site at : http://www.lmpforum....basic_comms.csp

Try this and let me know.

Best regards,
Mark.

#9 gmor

gmor

    Junior Member

  • Full Member
  • PipPip
  • 5 posts

Posted 04 January 2010 - 06:06 AM

Thanks Mark,

Your code verified that I was on the right track. Finally got it working, not to sure what the actual problem was.

Regards,

Glenn



#10 marke

marke

    Posting Freak

  • Moderator
  • PipPipPipPipPipPip
  • 2,603 posts
  • Gender:Male
  • Location:Christchurch, New Zealand

Posted 04 January 2010 - 06:42 AM

Hello Glenn

Thank you for the update.

One of the things to be careful of, is to make sure that you download as 32 bit (2 word) and 16bit as appropriate.
I would suggest that you add each parameter, one at a time and prove it before adding the next.
I have had issues with "16 bit" that had to be treated as 32bit to prevent errors.

Best regards,
Mark.

#11 Finetti

Finetti

  • Members
  • Pip
  • 1 posts

Posted 30 September 2016 - 10:55 AM

Hi,

I have problems with Danfoss FC 102 VFD-s.

I can t read anything from them in Vijeo designer.

Anyone can help me, please.

I want to read frequency, current, power and I want to write the frequency reference.

I'm able to read values with Mtester but I cant read them with other softwares.

 



#12 marke

marke

    Posting Freak

  • Moderator
  • PipPipPipPipPipPip
  • 2,603 posts
  • Gender:Male
  • Location:Christchurch, New Zealand

Posted 04 October 2016 - 08:05 AM

Hello Finetti

 

I have not used Vijeo, but the concept is the same as other Modbus devices.

The problem if you are using 40,000 based addressing, is that the correct range of this addressing is 40001 to 49999 and the registers that you want to read fall outside this range. (Danfoss function number times 1,000 plus 40,000)

 

If you use the 40001 based addressing, the registers that you want to read are typically in menus 15 and 16. For example, to read the frequency, you need to read 16.13  Using the Danfoss formula, the address to read is 16.13 x 1000 + 400000 = 16,130 + 40,000 = 56,130 which is greater than 49999 so it is outside the traditional range and will not be allowed by many systems.

 

Fortunately, there is also the possibility of using 6 digit addressing with some systems. The formula now becomes Danfoss function number times 1,000 plus 400,000, so to read the frequency, we read 416,130.

 

The alternative, is to use function and offset and the Danfoss offset is the Danfoss function number times 1,000 - 1

To read  the frequency, use function 3, offset 16129 (in decimal)

 

You need to determine the options that the software offers you and use the appropriate option.

 

Best regards

Mark.



#13 HornerOCS

HornerOCS

    Junior Member

  • Members
  • PipPip
  • 2 posts

Posted 06 November 2016 - 07:10 PM

Marke could you private message me when you're online?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users