Design of universal industrial wireless remote control system based on single chip microcomputer and PLC

Publisher:温柔的爱情Latest update time:2014-02-10 Source: dqjswKeywords:MCU  PLC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

    1. Introduction

    Industrial wireless remote control system can digitally process the control instructions of the operator or machine, transmit them to the remote receiving system through the transmitting system, and then convert them into control instructions through decoding to realize the control of various mechanical equipment. At the same time, it requires the ability to resist interference in industrial environments with strong magnetic fields, strong electric fields and complex radio signal environments. Industrial radio technology is a comprehensive technical system that combines modern digital communication technology with traditional radio communication.

    In actual industrial sites, especially for mobile equipment and complete sets of equipment, if a wireless remote control system is used, the operator only needs to carry a lightweight transmitting system, move freely and choose the best (safe) visual position for operation, eliminating the potential accidents caused by unclear vision, harsh environment or improper command, ensuring safe operation, and various operations can be undertaken by one person without the need for command from others, saving human resources. The operator makes independent judgments, and the accuracy and consistency of operations are significantly improved compared with the past, thereby greatly improving production efficiency.

    2. System design

    The wireless remote control system can be divided into a transmitting system and a receiving system. We make the transmitting system the transmitting end and the receiving system the receiving end, and perform data transmission and communication through the wireless data transmission module.

    Various buttons and joysticks for on-site control are designed on the transmitter of the remote control system, so that the remote operation transmitter can control the operation of the on-site equipment. By pressing the operation button on the transmitter control panel, the microcontroller will start the corresponding serial port transmission program after detecting it. The wireless data transmission module transmits data, and the receiving end controls the operation of the on-site equipment. It is composed of a wireless data transmission module, PLC and on-site equipment. When the wireless data transmission module receives the data from the transmitter, it uses the free port communication method to start the corresponding PLC control program to control the operation of the on-site equipment.

    2.1 MCU transmitter design

    The overall design of the transmitter adopts the structure shown in Figure 1.


Figure 1 Transmitter hardware configuration diagram

    The single-chip microcomputer module uses the xc164 single-chip microcomputer, which is a 16-bit microcontroller product of Infineon. Its excellent structure, efficient instruction set, and continuously expanding and updating product lines make it widely used in automotive electronics, industrial control and information technology. This series of single-chip microcomputers has rich interface modes, such as 14-channel 10-bit AD converter, synchronous/asynchronous serial channel USART, high-speed synchronous serial channel SPI, CAN module, 79 IO pins, etc., and can form a communication network with various devices. At the same time, this series of single-chip microcomputers is suitable for harsh industrial environments, and the industrial temperature can be between -40 and 125℃. In view of the functions of our transmitter, at the same time, the remote control has the advantages of stable working performance and easy function expansion. Taking into account the on-site environment of industrial applications.

    The project design adopts the following method: for example, when the switch button is pressed (such as start, stop, etc., different control systems have different function buttons), the microcontroller detects the change in its port potential, starts its corresponding program, and then sends the corresponding data to the wireless data transmission module through the serial port. The program flow chart shown in Figure 2 can be used for programming the microcontroller button input program processing.


Figure 2 Flowchart of wireless transmission program

    2.2 PLC free port receiving end design

    The overall design of the receiving end adopts the structure shown in Figure 3.


Figure 3 Receiver hardware configuration diagram

    The on-site operation equipment is controlled by PLC. The PLC program can control various operation modes of the equipment. Siemens S7-200 has one or two RS-485 standard interfaces, so the wireless data transmission module can be directly connected to the RS-485 interface of the PLC. After the receiving module receives the data, the PLC starts the corresponding interrupt program and starts to run the corresponding control program. [page]

    The communication port of the S7-200 series PLC supports multiple communication protocols, and two of them can be used here. One is the Siemens PPI master-slave protocol, which allows the master station to directly issue instructions to the slave station, that is, the PLC in the control system, to control the ports and functions of the slave station. This method is simple to program the PLC and does not require modification of the original slave station program. However, the PPI protocol is not a public protocol. Reference 4 mentions a method of obtaining the PPI protocol through serial port monitoring and using the master station programming to control the slave station. Another communication mode is the free port mode, which uses a custom PLC program to control the communication port of the S7-200 CPU and uses the user-defined communication protocol to achieve communication with the outside world. This mode supports ASCII and binary protocols. The free port mode is simple and flexible to use, but it requires special programming for the PLC. Because the amount of data required for wireless remote control is not large, the free port communication mode was selected through comparison to transmit commands and feedback information between the handheld operator and the PLC in the form of ASCII code. A special wireless control program is written in the PLC to realize data communication and control of the robot under wireless control. We use the free port communication of S7-200. Using free port communication, users can customize the communication protocol to communicate with the intelligent device used.

    After adopting the free port communication protocol, the receiving end receives the data and transmits it to the PLC through the wireless data transmission module, and starts the corresponding program. The program is compiled using the flow chart shown in Figure 4.


Figure 4 PLC receiving flow chart

    2.3 Wireless data transmission module

    (1) zf02 series wireless data transmission module: The transmitter and receiver use wireless data transmission modules for data communication. There are many types of wireless data transmission modules on the market. According to actual needs, we directly use the zf02 series wireless data transmission module produced by Shanghai Zhaofu Communication Technology Co., Ltd. Its main features are: carrier frequency: 433mhz, 450mhz, 470mhz, 868mhz; a variety of optional communication interfaces: rs-232, ttl, rs-485; transmission rate: 1200, 2400, 4800, 9600, 19200, 38400bps; integrated transceiver, half-duplex working mode. zf02 is very suitable for the wireless remote control system designed in the project. Its appearance is shown in Figure 5.


Figure 5 Interface and dimensions

    (2) The wireless data transmission module has three communication interface modes: a TTL level serial communication interface, which can be directly connected to the serial pin of the microcontroller chip; a standard RS232 interface and a standard RS485 interface, where the standard RS232 interface and the standard RS485 interface are switched by jumpers. The Siemens S7-200 series has one or two RS485 standard interfaces, which can be directly connected to the 485 interface of the wireless data transmission module.

    3. Conclusion

    This system design is a universal design, which can be specifically designed for specific equipment by modifying the corresponding input function buttons or joysticks at the transmitter end, and modifying the software programs of the microcontroller system and the PLC system at the same time to make them meet the operational function requirements of the on-site equipment.

Keywords:MCU  PLC Reference address:Design of universal industrial wireless remote control system based on single chip microcomputer and PLC

Previous article:Implementation of C language in RS232 serial interface communication
Next article:Design and application of single chip microcomputer in vehicle battery alarm

Recommended ReadingLatest update time:2024-11-16 15:50

Simulation Design of PIC Microcontroller Source Program
When we edit the C language of PIC microcontroller, we often use the simulation technology of the source program, because the simulation of the program can replace the hardware production and debugging of part of the microcontroller. Even when we study the C language program of PIC microcontroller in depth, the simula
[Microcontroller]
Simulation Design of PIC Microcontroller Source Program
Design of real-time monitoring system for photovoltaic power generation based on single chip microcomputer
    A photovoltaic power generation monitoring system based on LabVIEW data acquisition and RS485 communication is designed, which can monitor the operating electrical parameters and environmental parameters of the photovoltaic power generation system in real time and count the power generation information. The system
[Microcontroller]
Design of real-time monitoring system for photovoltaic power generation based on single chip microcomputer
Based on MSP430 single chip microcomputer to drive NRF24L01 wireless module to receive C language program
In this program, the NRF24L01 wireless module can be directly connected to the MSP430 microcontroller. The voltage of the microcontroller and the voltage of the wireless module are both 3.3V. No need to add blocking resistor. The communication interface is the SP port simulated by the microcontroller, and the LC12864
[Microcontroller]
Part 1 of a casual talk on microcontroller peripheral modules, illustrating what Flash, SAR, and Sigma-Delta ADCs are
The analog-to-digital conversion module ADC is a bridge between analog quantities and digital quantities in the real world. Its conversion accuracy can often determine the quality of a product. Nowadays, ADCs are generally integrated into microcontrollers. How do we choose the appropriate product according to our appl
[Microcontroller]
ARV microcontroller addressing mode and addressing space
Rd/Rr means general register R0-R31, address is $00-$1F P represents I/O register 0-64, the address is $20-$5F k represents the address constant K represents the immediate value (0-255) Y is the 32-bit address general register consists of 2 general registers ($5D:$5C) 1. INC Rd Single register direct addressing R
[Microcontroller]
Solutions for different application situations of MCS-51 single chip microcomputer timing interrupt
The interrupt response delay time of the MCS-51 microcontroller depends on whether other interrupt service routines are in progress, or on what instruction is being executed. The interrupt response time in a single interrupt system is 3 to 8 machine cycles . Regardless of the cause of the error, their impact must be
[Microcontroller]
Solutions to optimize real-time performance and efficiency through intelligent motor control
For decades, most motor control applications have relied on general-purpose brushed DC and stepper motors that provide low cost and ease of implementation. However, with the continuous innovation and integration of microprocessor (MCU) architectures, developers today can use more advanced and intelligent motor types a
[Microcontroller]
Solutions to optimize real-time performance and efficiency through intelligent motor control
Electricity Meter (EM) Reference Design Based on the MAXQ3120 Microcontroller
The MAXQ3120 Electricity Meter (EM) reference design builds a multi-function, multi-rate electricity meter that complies with all applicable standards worldwide. The reference design forms a prototype of an electricity meter that can be adapted to local requirements and performance requirements. This document will g
[Power Management]
Electricity Meter (EM) Reference Design Based on the MAXQ3120 Microcontroller
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号