Modbus RTU Master Comm from M340

Join Date
Feb 2008
Location
Walnuc Creek, CA
Posts
31
I'm trying to communicate to a Modbus RTU slave device using an M340 as the Modbus master using READ_VAR and WRITE_VAR.

I'm connecting directly to the slave device from the serial port of a M340 P342020 processor over RS-232. To address the device, do I use the ADDM function block, like this:

ADDM(’0.0.0.x’)

Where x is the slave Modbus ID?

I know that Modbus TCP requires specifying a network interface. Is this not necessary with Modbus RTU?

Thanks for any help.
 
From Unity help it should be as follows, so it looks like you have it correct assuming you have got everything at 0 ?

Otherwise it may be your READ_VAR not configured correctly ?

For addressing a device using Modbus protocol, parameter IN takes the form:

‘r.m.c.e.MBS’

Where:

r: rack number (rack)

m: module position

c: channel number (channel) of Modbus port (0)

e: Modbus slave number (equipment) (range 1 to 247)

MBS: for addressing a Modbus server
 
Last edited:

Similar Topics

Hi Guys, I am a new member and this is my first post! I have a little PLC experience but it is mostly with siemens logo and using ladder...
Replies
4
Views
890
Currently I'm working in a project, and there is a problem, we need to show what is going on with the CR30 through an app developed in VB.NET, we...
Replies
2
Views
605
Hello all, I am trying to setup my MicroLogix 1100 as a modbus RTU master for a modbus network containing multiple modbus RTU slaves. I currently...
Replies
7
Views
3,914
I successfully got a Micro 820 (Slave) and Red Lion HMI (Master) to work together using Modbus TCP. But now I need to add an Automation Direct...
Replies
3
Views
2,649
Hello, I am using the Micro830 (2080-LC30-24QWB) with the 2080-SERIALISOL in slot 1. I am having an issue setting up the Micro830 to communicate...
Replies
5
Views
3,189
Back
Top Bottom