Jump to content

Recommended Posts

 

Hello friends, I am having trouble developing the program for rs485 communication with a danfoss inverter and a softstarter weg ssw07. I am doing a logic of SET and RESET, after communicating with a condition equipment to the next and at the end RESET both. However it is presenting a number 4 and 5 fault. Someone would have a program that could serve as an example for me where I can communicate with several slave, automatically forming a loop cycle.

Share this post


Link to post
Share on other sites

Your Modbus block is timing out. 

Take a look at this post-

 

Also, post your .vlp file rather than trying to describe your problem.  It's much easier to look at your code.

 

Joe T.

 

Share this post


Link to post
Share on other sites

You need to separate your networks.  You have several networks that have multiple rungs, each of which is a logical statement.  There's no memory cost for additional nets- move your logic into pieces.

You also have rungs that initialize values, such as Main:Net 3 where you write 50 to SI 104.  It's better practice to use the power-up value feature for all of this-

image.png.974e686e84ec4d956b604f6f4175f660.png

This applies to SB 168 and SI 108 as well.

In net 2, don't put conditions on the SCAN block.  Just put a NC of SB 2 on the rail and hang it from that.

I would start by talking to one device at a time first and getting that working.  Then we can switch between them.  We need to solve the Modbus going to 4 and 5.

RS485 can be tricky on the older models such as the V230.  You may have to play with moving the terminator resistors around or eliminating them.  Make sure you have your RS485 polarity right, too. 

Even though the official Unitronics documentation shows a terminator at both ends, on these old models I have looked at the signal with a scope and found the terminators attenuate the signal too much.  Try removing one or both of the terminators while you're trying to get successful communication.

Joe T.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...