Jump to content

Several Slaves Modbus RS485 Config


Recommended Posts

Hello there,

I am working on a ladder program for a Vision130 as master. It has a built-in RS485 expansion comm in Port 2. Two devices are connected by RS485 in the same port 2. Both devices use Modbus RTU communication and they have the same baudrate and other settings (38400,8,n,2).

One of the slaves is a keypad with a display and several LEDs. I have programmed one P.H.R (40 bytes), one R.I.R (3 bytes) and F.C (8bits). The information is requested sequentially, when a request is successful, the P.H.R net is disabled and the R.I.R is enabled and so on.

The other slave only requests a R.H.R (2bits).

Both slaves work fine separately (when only one is configured in port 2). However, when I configure them in the same port at the same time, they don't work.

I think there is some comm configuration issue that causes a conflict in the communication.

Thank in advance,

 

configModbus.png

MCB.png

Modbus Encoder.png

Link to comment
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...