Detailed explanation of the composition and principle of PLC

Publisher:电子艺术大师Latest update time:2022-08-22 Source: elecfansKeywords:PLC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The block diagram of a typical programmable controller is shown in Figure 6-17.

pYYBAGL7UfeAVEtSAACbL9Bd2cQ203.png

Figure 6-17 Typical PLC block diagram

Circuit Configuration

A programmable controller usually consists of an input unit, an output unit, a central processing unit, an input/output (I/O) interface, a peripheral interface, and a power supply.


Input unit

The function of the input unit is to process the input signal into a signal that can be received by the central processing unit. PLC often uses switch quantities as signal elements of the input unit. Input units are divided into DC input type and AC input type. Each PLC has several input units with the same circuit structure, and they have a common terminal COM. The typical circuit of the PLC DC input unit is shown in Figure 6-18 (a).

pYYBAGL7UgaAPxs1AABkzChmi5Y758.png

poYBAGL7U0SAYEPJAABM2pCqqUM53.jpeg?token=fff77de09175db5dde191213eeca0408

Figure 6-18

The DC input unit is composed of a control power supply (such as 24V), a level conversion circuit (R1, R2 voltage divider), a filter circuit (R2, C), a switch status indicator LED, a photocoupler PEB, a directional diode VD, and an internal circuit. The power supply of the input unit can be supplied from within the PLC or configured from outside the PLC.


Each DC input unit can be equivalent to an input relay as shown in Figure 6-18 (b). The input relay is a storage unit inside the PLC, with the storage unit states "0" and "1" (representing the "off" and "on" of the relay coil, respectively). This input relay can provide any number of normally open contacts and normally closed contacts for programming the PLC internal control circuit. Since the input relay can only be driven by external signals and cannot be driven by instructions inside the program, in the PLC control schematic diagram compiled using ladder diagrams, the input relay only has contacts but no coils. The on-off state of the input relay contacts is stored in the PLC internal register. When the switch S is closed, the input relay is turned on, its normally open contacts are closed, and its normally closed contacts are disconnected. Since there is no wire connection between the coil of the input relay and the circuit and between the contacts and the circuit, it is called a "soft relay".


Output unit

The function of the output unit is to convert the PLC output signal into the output signal required by the external load. PLC has multiple output modes such as relay output, transistor output and bidirectional thyristor output. The typical circuit of the PLC relay output unit is shown in Figure 6-19 (a).

poYBAGL7UhWACl-HAAC6gqddsIY337.png

Figure 6-19

The resistor R and the light-emitting diode LED in the circuit form an output status display circuit. When the internal circuit outputs a signal, the LED is lit, the coil of the output relay is energized, its normally closed contact opens, and its normally open contact closes. The relay, as a switching device, completes the connection between the load and the load power supply; the relay, as an isolation device, isolates the load circuit from the internal circuit of the PLC.


Each output unit can be equivalent to an output relay as shown in Figure 6-19 (b), and the output relay is driven by the internal program of the PLC. There are two types of contacts of the output relay: one is the internal contact constituted by software, namely the soft contact; the other is the external contact constituted by the output module, namely the hard contact. The output relay can provide any number of normally open soft contacts and normally closed soft contacts for programming of the internal control circuit of the PLC. The on-off state of the output relay soft contact is saved in the internal register of the PLC. The external hard contact constituted by the output module has a certain load capacity and can only be used to drive external components.


CPU

The central processing unit includes a microprocessor (CPU) and memory, etc.

The microprocessor is the core component of the PLC, coordinating the work of various parts within the control system. The CPU receives and stores the user program and data input by the programmer according to the functions assigned by the system program, monitors and receives field input signals, reads and executes the user program from the memory one by one, and then implements output control based on the operation results, and diagnoses the power supply status, the internal working status of the PLC, and the programming syntax status.


The memory is the unit where the PLC stores system programs, user programs and operating data. The memory includes read-only memory ROM and random access memory RAM. ROM is used to store system programs, and its content is customized by the PLC manufacturer during the manufacturing process of the device and cannot be changed. RAM is used to store user programs, and its content can be compiled according to the user's requirements for the equipment control process, and can meet the user's requirements through debugging and modification.


Input/Output Interface

The input/output interface is the conversion interface between the input signal and the output control signal when the PLC performs industrial control. The internal signal of the PLC CPU adopts the standard level of the microcomputer, while the electrical signals of the PLC control object vary greatly. Different signal sensing elements (such as buttons, switches, sensors, etc.) and different actuators (such as solenoid valves, relays, contactors, motors, lights, etc.) have different levels and signal quality. Therefore, it is necessary to convert the state signal of the control object into the standard level of the CPU through the input interface, and convert the standard level of the CPU processing result input into the signal form required by the actuator through the output interface.


When the number of input and output points required by the user exceeds the number of input and output points of the PLC, the number of input and output points can be expanded through the I/O expansion port.

power supply

There are four types of PLC power supplies, namely input power supply 1, output power supply 3, PLC internal working power supply 2 and backup power supply (not shown in Figure 6-17). Input power supply 1 is the power supply for PLC field input signals; output power supply 3 is used to drive the load at the PLC output end; power supply 2 is mainly used for the central processing unit; backup power supply (lithium battery) is used to prevent information loss in RAM when the system is shut down or suddenly loses power. The service life of lithium power supply is 3 to 5 years.


Working Principle of Programmable Controller

How PLCs Work

PLC works in scanning mode, and its working process is divided into five stages: local diagnosis stage, communication request detection stage, input sampling stage, program execution stage and output refresh stage, as shown in Figure 6-20.

(1) Local diagnosis stage

The self-diagnosis program is executed first during each scan, and its diagnostic content includes checking the I/O part, CPU processor, and peripheral interface, etc. If an abnormality is found, the machine will stop and display an error.

(2) Communication request detection phase

This stage mainly detects whether the programmer or computer has a communication request. If there is a communication request, it will perform corresponding processing, such as receiving the programmer's program, commands and various data, and sending the status, data, error information, etc. to the programmer or computer for display.

(3) Input sampling stage

pYYBAGL7UiWAAk7sAABBvV6wvbQ357.png

Figure 6-20 PLC working mode block diagram

Once the PLC is running, regardless of whether the input terminals are connected or not, it reads the status of all input terminals in sequence in a scanning manner, saves it in the input status register area of ​​the memory, and then enters the program execution stage.

(4) Program execution phase

The PLC executes the program according to the input status and its related parameters, and passes the execution result to the next step, and writes the execution result into the output status table register area of ​​the memory for storage.

(5) Output refresh phase

After the program is executed, all output status signals in the output status table register area are sent to the output latch circuit so that the output unit can convert the digital signal into a field signal and transmit it to the actuator.


The PLC will continue to repeat the above five steps until the system issues a shutdown command.

Ladder diagram working principle

PLC uses virtual relays (soft relays) with logical relationships between input and output signals to achieve circuit control requirements. Soft relays include input relays, output relays, auxiliary relays, temporary storage relays, holding relays, auxiliary memory relays, link relays, timers and counters, etc.


The auxiliary relay is a program relay that cannot read external input signals or directly drive external loads. It only acts as an intermediate relay.


The PLC control relationship diagram composed of the contact symbols, coil symbols and the codes (or operands) on these symbols of the soft relay is called a ladder diagram. The ladder diagram is similar to the electromagnetic relay control circuit. The control between the input and output in the electromagnetic relay control circuit is realized by the actual switch contacts, coils and their connections of various relays. The control between the input and output signals in the PLC is realized by the user program stored in the PLC and some external circuits. The language list that expresses the control relationship in the ladder diagram is called an instruction table. Entering the instructions and data in the instruction table into the PLC is an application program.

Figure 6-21 is a wiring diagram for direct starting of a motor controlled by a PLC, which includes a ladder diagram and an instruction table.

[1] [2]
Keywords:PLC Reference address:Detailed explanation of the composition and principle of PLC

Previous article:What is an R-type step-up transformer and how does it help boost electrical voltage?
Next article:Features and applications of MS8829 brushless DC motor

Recommended ReadingLatest update time:2024-11-16 10:51

A comprehensive analysis of the PLC ladder diagram programming process
1. The number of times the PLC internal software contacts can be used is unlimited. 2. Each branch of the ladder diagram should be drawn from left to right with the left busbar as the starting point. The front of each line is the working condition composed of the contact group, and the rightmost is the working
[Embedded]
A comprehensive analysis of the PLC ladder diagram programming process
PLC control motor forward stop and reverse control control system design case
According to the main circuit of the three-phase AC motor forward and reverse control in the figure below, design a PLC control system for the motor forward, stop and reverse. The control requirements are as follows: (1) Under normal circumstances, press the start button SB1, the motor rotates forward, and press the
[Embedded]
PLC control motor forward stop and reverse control control system design case
PLC Control Application of RO System
1. Control of high pressure pump The inlet and outlet pressure limits are set to control the operation status of the high-pressure pump. The variable frequency high-pressure pump controls the operation status of the pump through frequency regulation. Seawater desalination should be equipped with energy recovery
[Embedded]
PLC and touch screen connection methods in three different situations
In the actual project application process, PLC+HMI (touch screen) is often used in combination. In this section, we will introduce the connection methods of PLC and touch screen in three different situations. Whether there is hardware or not, I believe this section can provide help to readers. 1 No P
[Embedded]
PLC and touch screen connection methods in three different situations
Mitsubishi PLC and inverter communication case
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-s
[Embedded]
Mitsubishi PLC and inverter communication case
PLC serial communication and communication interface knowledge summary
When using PLC, you will come into contact with many communication protocols and communication interfaces. Do you understand the most basic PLC serial port communication and basic communication interfaces? 1. What is serial communication? Serial port is an interface standard, which is a very common d
[Embedded]
PLC serial communication and communication interface knowledge summary
12 Tips on PLC Programming
Programming suggestions 1. When PLC and host computer (or touch screen) form a monitoring system, there are often control modes such as "manual" and "automatic" on the screen (generally, only one can be selected when there are multiple). You can use the "MOV" instruction in the program. For example, when "manua
[Embedded]
Working principle of PLC counter
1) When the PLC is in RUN mode, K20 is sent to the preset value register SV100. If the reset behavior is OFF at this time, K20 in SV100 is sent to the elapsed value register EV100. 2) Every time a rising edge (OFF→ON state change) of counter logic line X0 is detected, the value in EV100 is counted down by
[Embedded]
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号