0% found this document useful (0 votes)
53 views8 pages

Modbus Setup for PLC M340 Communication

Uploaded by

d.putra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views8 pages

Modbus Setup for PLC M340 Communication

Uploaded by

d.putra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

How to read device register trough Modbus serial port PLC

M340

What is the To understand how to use Modbus serial port PLC M340 to communicate with other
purpose Modbus device

What units are 1. PLC M340


effected

Details This application is divided into several parts

Section Title
1 Parts List
2 Topology Overview
3 Step by step link setup
4 Offline testing
5 Remarks

Section 1; Parts list

Parts List table Items used in the test

Items Part numbers Description


PLC M340  BMXP341000 PLC M340 with Modbus port c/w
power supply and backplane
Unity Pro  UNYSPUSFUV1X Software for unity PLC
Software ( M340,M580,Premium,
Quantum )

Continued on next page


Section 2; Topology overview

Topology overview Physical Topology Connection


diagram

Modbus Serial /
RTU

Continued on next page


Section 1; Parts liststep by step configuration on Unity Pro

Unity Program

1. Open the unity pro application

2. Configure the hardware (CPU, backplane and power supply)

3. Configure serial port on cpu, by double click on Modbus port picture

Double click

4. Select function as Modbus Link

5. Select type as Master


6. Select physical line to RS-485

7. Configure communication parameter exactly similar with device communication


parameter
8. Create Unity Pro logic program
a. Create New Section
b. Select programming language, and name the program section ( ex.: FBD)

c. Create the logic program as below


Function block explanation :

Rack No. where CPU BMXP341000

Slot No. at backplane where CPU


P341000 installed

Modbus Port No. at CPU BMXP341000


Modbus ID of the slave device

Modbus register type: Number of Unity internal register


 %MW for INT register to read (Array type) to receive
 %M for Bool data from slave
device. Number of
Unity internal variable array must be equal
(Array type) to store with NB parameter
Address of First
communication status (ex. : 2)
register to read
(must consist of 4 Int
( ex.: 40010)
register)
Section 4; Online Testing

Online testing :
1. Compile the project
2. Connect Unity Pro to the PLC via USB cable
3. Download the project to PLC and RUN
4. Connect RS485 kabel from Modbus port PLC to modbus port slave
device
5. Test your project

Section 5; Remark

Modbus serial port is a common feature that Schneider PLC has, and it can
be connected to various device that support modbus protocol up to 31 slave
device per Modbus port.

You might also like