The programmable logic controller (PLC) host supports the connection of expansion modules through the backplane bus. The backplane bus is a high-speed data path between the PLC host and the I/O expansion module, supporting the I/O data refresh between the host and the expansion module. The technical level of the backplane bus determines the I/O expansion capability of the PLC product and is the core technology of PLC design and manufacturing. At present, most PLCs use serial communication technology to implement the backplane bus. The serial bus has fewer leads and lower hardware cost. Compared with the parallel bus, it is not easily interfered. The serial bus can improve the reliability of automation equipment in harsh factory and industrial environments. The optional types of serial communication technology include I2C, UART, SPI, USB and Ethernet. Generally speaking, many single-chip microcomputers as PLC main chips have integrated these peripheral components. However, the communication rate of the I2C, UART, and SPI peripherals integrated in the single-chip microcomputer is too slow to meet the communication speed requirements of the backplane bus. Although the communication speed of USB and Ethernet is very fast, since they are universal interfaces, the microcontroller needs to intervene in the communication protocol processing. The microcontroller processes data slowly, so the overall communication speed is still very slow. A large PLC generally takes less than 1ms to collect thousands of I/O data points. To meet such high-speed communication requirements, a special backplane bus must be designed.
1 Backplane bus working principle
As shown in Figure 1, the data communication process based on the backplane bus is as follows:
(1) The PLC host's command is sent to the backplane bus through the host protocol chip; (2) The slave protocol chip sends the received command to the expansion module's microcontroller. The microcontroller of one of the expansion modules responds and sends the response data to the backplane bus through the slave protocol chip; (3) The host protocol chip receives the response data and sends it to the microcontroller of the PLC host.
Figure 1 Backplane bus communication block diagram
The data sent by the PLC host to the backplane bus can be divided into two categories: one is I/O refresh data, which is periodic and data exchange is very frequent; the other is diagnostic data, which is non-periodic and has a low chance of occurrence.
2 Protocol Chip Design
This design defines that the backplane bus adopts specifications similar to SPI serial communication. There are 4 leads for communication, including clock signal SCLK, chip select signal SSEL, write data lead MISO and read data lead MOSI; it supports the host and slave to send and receive data at the same time. The data bit format is shown in Figure 2. The data frame is transmitted when the SSEL signal is low.
Figure 2 Backplane bus data specifications
The signals include data/address signal, reset signal Reset, and interrupt signal INT.
The internal structure block diagrams of the host and slave protocol chips are the same, as shown in Figure 3.
The protocol chip has a state machine controller, frame controller, shift register, receive/transmit FIFO and read/write cache inside. The periodic and non-periodic data frames sent by the microcontroller are first written to the write cache, queued and sent in the transmit FIFO, and the data frames are converted into serial data and sent to the backplane bus under the drive of the SPI clock SCLK; under the action of the SPI clock, the serial data from the backplane bus is received; under the coordination of the state machine and the frame controller, the valid data frames in the receive FIFO are extracted and put into the read cache area, waiting for the microcontroller to read. If it is non-periodic data, an interrupt signal is sent to notify the microcontroller to fetch the data. The periodic data in the read cache can be overwritten, and the newly received periodic data directly overwrites the old periodic data, while the non-periodic data is stored separately and cannot be overwritten. It is read and cleared by the microcontroller.
Figure 3: Internal structure diagram of the protocol chip
The protocol chip allows the external MCU to access the read cache and write cache when idle, so the MCU does not have to frequently process periodic data through interrupt technology, and the PLC host can access the periodic data of the slave without waiting.
3 CPLD-based protocol chip implementation
3.1 CPLD chip selection
This design uses the MachXO series chips from Lattice. This series of CPLDs integrates some FPGA functions. In addition to the built-in rich LUT resources, it also has a large number of distributed SRAM bits and embedded SRAM blocks dedicated to FIFO design. It also has an analog phase-locked loop (PLL) to support clock signal multiplication and division, etc. The I/O pins can be configured to be compatible with 1.2/1.5/1.8/3.3V levels.
Previous article:Novel LED dot matrix screen design based on Bluetooth technology (Part 2)
Next article:Design of PLC backplane bus protocol interface chip based on single chip microcomputer and CPLD (Part 2)
Recommended ReadingLatest update time:2024-11-16 19:33
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Siemens PLC Programming Technology and Application Cases (Edited by Liu Zhenquan, Wang Hanzhi, Yang Kun, etc.)
- Siemens PLC from Beginner to Mastery with Color Illustrations (Yang Rui)
- Siemens PLC Project Tutorial
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- 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
- The actual output voltage of the SEPIC circuit does not match the theoretical value.
- Transistor push-pull output circuit
- Sharing of national competition experience
- MCU debugging method: using serial port to realize simple shell function
- [ST MEMS waterproof pressure sensor LPS27HHW review] + serial communication based on STM32F411RE
- Last day! Prize-winning quiz: Let’s explore together - the hard-core technology behind energy storage applications
- Testing the Kalman Filter
- "Date with Spring" + Balcony Plants
- Ltspice .save
- SinlinxA33 development board uses MIPI DSI screen