Embedded programmable controller, which embeds the ladder diagram language commonly used in PLC into the development of single-chip microcomputer, realizes the single-chip microcomputerization of PLC. There are currently two ways. One is to directly embed the ladder diagram compiler into the single-chip microcomputer. The user can communicate directly with the single-chip microcomputer system through the ladder diagram editor and download the saved PMW file directly to the single-chip microcomputer system; the other is to separate the ladder diagram compiler, convert the PMW file into the target code of the single-chip microcomputer through the conversion software, and then burn it into the single-chip microcomputer. The instructions of the PLC used in these two methods are restricted by the ladder diagram compiler or conversion software. The former is like the conventional way of using PLC, and can be monitored and operated through the ladder diagram editing software, but the pin allocation of the single-chip microcomputer used in the PLC hardware cannot be changed once the hardware system design is finalized. The latter is more flexible, and the pin allocation of the single-chip microcomputer can be changed as needed as long as it is within the range allowed by the conversion software. Different hardware circuits can be customized according to application requirements, and the PMW file can be converted into target code according to the actual system. The development of single-chip microcomputer products has changed from using assembly language or C51 language to using ladder diagram language, so that front-line personnel who have no assembly language or C51 computer language programming foundation and understand the relay-contactor control principle can learn and apply single-chip microcomputer control technology through various powerful application functions provided by the ladder diagram programming platform. This article adopts the latter method and takes a 16-point input and 14-point output switch embedded programmable controller as an example to introduce its hardware composition, software resources, and application cases.
......
This section introduces the application examples of embedded PLC in escalator control, including the preparation of ladder diagram program, PMW-HEX conversion, downloading and operation of target code. An
escalator is a fixed electric drive device with circular running steps, used to transport passengers up or down. There are many types of escalators. According to the power supply method, there are two types: direct power supply and power supply by static components. The common dragging methods are Y-Δ switching type and inverter drive type. According to the lifting height, there are ordinary types below 6 meters and high-height types above 6 meters. According to whether the running speed changes, there are three types: fixed speed, variable speed energy saving, and multi-speed intelligent.
Keywords:Embedded
Reference address:
The production and application of embedded PLC
Recommended ReadingLatest update time:2024-11-16 13:42
Analysis of the conditions and causes of internal reset in PIC16F87X series microcontrollers
The reset function of the PIC16F87X series microcontrollers is relatively well designed. The conditions and reasons that cause the internal reset of the microcontroller can be roughly summarized into the following five types. 1. Power-on reset Every time the microcontroller is powered on, the power-on reset circuit
[Microcontroller]
How to read the existing program in PLC?
PLC (Programmable Logic Controller) is an important automation device used to control and monitor various industrial processes. Programs in PLC are written by users and they define the behavior of the PLC in operation. This article will detail how to read the programs that already exist in the PLC.
Reading the
[Embedded]
Ultrasonic distance measurement with voice broadcast based on 51 single chip JQ6500
Function Description: 1. This design uses STC89C52 microcontroller as the main controller; 2. LCD1602 liquid crystal displays the measured distance and temperature; 3. With temperature compensation function (DS18B20 sensor); 4. The measuring range is 0.02m~4m, and the accuracy is 0.01m; 5. With real-time voice broadca
[Microcontroller]
Detailed instructions for using microcontroller to realize dynamic digital display
As shown in the figure, the P0 port of the AT89S51 microcontroller is connected to the font code pen section of the dynamic digital tube, the P2 port is connected to the digital selection terminal of the dynamic digital tube, and P1.7 is connected to a switch. When the switch is connected to high level, the word "1234
[Microcontroller]
MCU dual-machine communication Very detailed UART serial port asynchronous communication
1. Overall design 1. Design requirements: Serial communication is carried out between the two microcontrollers. The sending end sends 0~f loop to the receiving end, and it is displayed on the receiving end. 2. Design plan: In this design, for two 89C51 chips, RS232 is used for dual-machine communication. The data of
[Microcontroller]
Using the 51 series single chip microcomputer timer function to measure pulse width
The STC12C series enhanced MCU expands the functions of the basic 51 MCU on-chip, such as providing a PCA/PWM interface, and the timer can work in 1T mode (the clock of the basic 51 MCU is 12-divided by Fosc, and 1-divided in 1T mode).
PCA can be used to measure pulse width. However, protues does not currently support
[Microcontroller]
Automatic measurement of tiny length based on single chip microcomputer-based reconstruction of Michaelis interferometer
0 Introduction
Thin film thickness is an important indicator of thin film performance parameters. How to measure film thickness accurately, quickly and conveniently is of great significance in experiments. Measuring laser wavelength with Michelson interferometer is an important part of university physics experiments.
[Microcontroller]
Use of MCU Timer 0
The function of this program is to make the PA port flash every 0.5 seconds. The program is as follows
include avr/io.h
#include avr/interrupt.h
#define F_CPU 8000000UL
int k;
int main(void)
{
DDRA=0XFF;
PORTA=0xff;
TCCR0=0X05;
TCNT0=256-F_CPU/1024*0.5;
TIMSK=0X01;
sei();
while(1
[Microcontroller]