Mitsubishi PLC and inverter communication case

Publisher:精品古钱斋Latest update time:2023-09-11 Source: elecfansKeywords:Mitsubishi Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Modbus is a serial communication protocol invented by Modicon for communication between its PLC and host. Its physical layer adopts asynchronous serial standards such as RS232 and 485. Due to its openness, it is adopted by a large number of PLC and RTU manufacturers. The Modbus communication method adopts a master-slave query-response mechanism. Only when the master station issues a query can the slave station respond, and the slave station cannot actively send data. The master station can issue a query to a certain slave station, or broadcast information to all slave stations. The slave station only responds to queries sent to it individually, not broadcast messages. The MODBUS communication protocol has two transmission modes: RTU mode and ASCII mode. Mitsubishi 700 series inverters can use the ModbusRTU communication protocol from the RS-485 terminal for communication operation and parameter setting.


Target:

1. Mitsubishi PLC: FX2N+FX2N-485-BD
2. Mitsubishi inverter: F700 series, A700 series.

The two are connected via a network cable, see the figure below for details.

be4d6ce2-dfc1-11ed-bfe3-dac502259ad0.jpg

Connection diagram of FX2N-485-BD and n inverters

be6e7d56-dfc1-11ed-bfe3-dac502259ad0.jpg

1. Mitsubishi inverter settings

When the PLC communicates with the inverter, the communication specifications must be set in the inverter. After each parameter initialization, the inverter must be reset or the inverter power must be turned on and off.


Parameter number name Settings illustrate
Pr331 Communication station number 1 Set the inverter station number to 1
Pr332 Communication speed 96 Set the communication speed to 9600bps
Pr334 Parity stop bit length 2 Even parity, stop bit length 1 bit
Pr539 Communication verification time 9999 No communication verification
Pr549 Protocol Selection 1 ModbusRTU protocol
Pr551 PU mode operation right selection 2 PU operation mode operation right as PU interface


When communicating with the ModbusRTU protocol, Pr551 must be set to 2, Pr340 to a value other than 0, and Pr79 to 0, 2, or 6. When communicating with the ModbusRTU protocol through the RS-485 terminal, it must be run in NET network mode.

2. Mitsubishi PLC settings

Set the communication format D8120

The setting value of D8120 is 0C87, that is, the data length is 8 bits, the parity check is 1 stop bit, the baud rate is 9600pbs, ​​and there is no header character and terminator character.

After modifying the D8120 setting, make sure to turn the PLC power on and off once.

3. Communication procedures

Some PLC programs that use the ModbusRTU protocol to communicate with the inverter are as follows:

be8c7752-dfc1-11ed-bfe3-dac502259ad0.jpg

bea8c0e2-dfc1-11ed-bfe3-dac502259ad0.jpg

bec286da-dfc1-11ed-bfe3-dac502259ad0.jpg

bee1b7ee-dfc1-11ed-bfe3-dac502259ad0.jpg

bef6d91c-dfc1-11ed-bfe3-dac502259ad0.jpg

bf184282-dfc1-11ed-bfe3-dac502259ad0.jpg

4.Procedure Description:

1. When X1 is connected once, the inverter enters the forward state.
2. When X2 is connected once, the inverter operating frequency 60HZ is written.
3. When X3 is connected once, the inverter enters the stop state.

When the inverter instruction address is 0 in the instruction, it is a broadcast instruction. All slave inverters only accept instructions from the PLC and do not send response information to the host.


Keywords:Mitsubishi Reference address:Mitsubishi PLC and inverter communication case

Previous article:Communication and programming of Mitsubishi PLC, with practical examples
Next article:Motor Driver Using LX7720: Connecting LX7720 to Bipolar Stepper Motors

Recommended ReadingLatest update time:2024-11-16 13:39

What are the types of PLC programming languages ​​and what are their characteristics?
PLC programming refers to the process of programming and debugging a programmable logic controller (PLC). PLC is an electrical device specifically used for automated control. Its main function is to receive input signals, process the input signals, execute control logic, and output corresponding signal control instr
[Embedded]
How to use PLC to realize simple handling actions
Today we will talk about how to use PLC to realize simple handling actions. This example perfectly uses the instructions of sequential control. It is really convenient to apply it in practice, and the program cycle control is also handy! Without further ado, let’s get into our topic today! The struct
[Embedded]
How to use PLC to realize simple handling actions
How to choose the right Siemens S7-1200 PLC
Choosing the right Siemens S7-1200 PLC for your project can be challenging, but with the right guide, it can be easy. This article will provide a step-by-step guide on selecting the right Siemens S7-1200 PLC and expansion modules for your project. We will also look at a small project example using the ste
[Embedded]
Differences and advantages of Mitsubishi and Siemens PLC
First of all, their programming concepts are different. Mitsubishi PLC is a Japanese brand, and the programming is intuitive and easy to understand, so it is easier to learn. Siemens PLC is a German brand, and the instructions are more abstract, making it more difficult to learn, but there are fewer instructions, wh
[Embedded]
Methods for reducing counting errors of PLC high-speed counters
When applying PLC high-speed counters, we often encounter the following series of problems: the pulse level of the counter does not match the input counting pulse signal. For example, the data output of the rotary encoder and grating ruler is TTL level, but the PLC high-speed counter requires to receive 0-24V transm
[Embedded]
PLC programming principles and scientific programming steps
Everyone has his or her own ideas when programming PLCs. Even if the same control logic is written by different engineers, different results will be obtained. Even the same engineer may have different ideas at different times. So when writing programs, two different sets of programs can achieve the same functio
[Embedded]
Scientific PLC programming steps
The scientific PLC programming steps are actually very simple, but most engineers often think it is simple and ignore many details. Ignoring details will inevitably lead to problems in the future. To avoid future problems, you can only follow the rules well. There is no order without rules. PLC programming also has
[Embedded]
Scientific PLC programming steps
PLC/DCS analog output modules for analog devices
Circuit Function and Advantages The circuit shown in Figure 1 is a full-featured, flexible, and programmable analog output solution that uses only two analog components and meets most of the requirements of programmable logic controller (PLC) and distributed control system (DCS) applications. The AD566
[Power Management]
PLC/DCS analog output modules for analog devices
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号