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.
Connection diagram of FX2N-485-BD and n inverters
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:
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.
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
- Popular Resources
- Popular amplifiers
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Phased Array Antenna Simulation Considering the Effect of TR Components
- Received a Children's Day gift from EEW
- STM32MP157A-DK1 review——by freebsder
- AC/DC output grounding issues
- (Transfer) How Python big integers work
- Introduction on how to encapsulate functions into libraries
- "FPGA Primer" Chinese Edition_Author: Andrew Moore of Altera Corporation
- Some experience in porting from μCOS-Ⅱ to the recently popular RT-Thread
- How much do you know about gallium nitride? Come and learn about it.
- TMS320F28377 triggers ADC continuous sampling via timer