Basic knowledge points of PLC programming

Publisher:Huayu8888Latest update time:2023-08-02 Source: elecfansKeywords:PLC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Calculation of switch quantity

Switching quantity, also known as logic quantity, has only two values, 0 or 1, ON or OFF. It is the most commonly used control. Controlling it is the advantage of PLC and also the most basic application of PLC.

1a73a3da-caa8-11ed-bfe3-dac502259ad0.png

The purpose of switch quantity control is to make the PLC generate corresponding switch quantity output according to the current input combination of the switch quantity and the historical input sequence, so that the system can work in a certain order. Therefore, the control of switch quantity is also called sequential control.

1ab70580-caa8-11ed-bfe3-dac502259ad0.png

The advantages of sequential control are as follows:

First, it can distribute the program actions more clearly and concisely, making programming easier;

Secondly, when monitoring a program, you can clearly monitor the operation of the program, quickly find the fault point, and facilitate maintenance.

1ae22710-caa8-11ed-bfe3-dac502259ad0.png

Calculation of analog quantities

Analog quantities are frequently used in industrial automation, and are generally used to detect and control digital quantities such as voltage, current, pressure, speed, temperature, and force. Advanced ones are also used in combination with PID. Since continuous production processes often involve analog quantities, analog quantity control is sometimes also called process control.

1b616b24-caa8-11ed-bfe3-dac502259ad0.png

01. Characteristics of analog quantity

Analog quantities are mostly non-electrical quantities, while PLC can only process digital quantities and electrical quantities. Therefore, to achieve the conversion between them, a sensor is required to convert the analog quantity into a digital quantity. If the quantity is not standard, it must pass through a transmitter to convert the non-standard quantity into a standard electrical signal, such as 4-20mA, 1-5V, 0-10V, etc.

1b89dde8-caa8-11ed-bfe3-dac502259ad0.png

02. Calculation of analog quantity

1. -10—10V. When the voltage is -10V—10V, it is converted to F448—0BB8Hex (-3000—3000) at 6000 resolution; it is converted to E890—1770Hex (-6000—6000) at 12000 resolution.

2. 0-10V. When the voltage is 0-10V, it is converted to 0-1770Hex (0-6000) at a resolution of 12000; it is converted to 0-2EE0Hex (0-12000) at a resolution of 12000.

3. 0-20mA. When the current is 0-20mA, it is converted to 0-1770Hex (0-6000) at 6000 resolution; it is converted to 0-2EE0Hex (0-12000) at 12000 resolution.

4. 4-20mA: When the current is 4-20mA, it is converted to 0-1770Hex (0-6000) at 6000 resolution; it is converted to 0-2EE0Hex (0-12000) at 12000 resolution.

Of course, different PLCs have different resolutions, so we still have to set them according to actual conditions.

1bb0221e-caa8-11ed-bfe3-dac502259ad0.png

03. Requirements for analog input wiring

1. Use shielded twisted pair cables, but do not connect the shielding layer.

2. When an input is not used, short-circuit the V IN and COM terminals.

3. The analog signal line is isolated from the power line (AC power line, high-voltage line, etc.).

4. When there is interference on the power line, install a filter between the input part and the power unit.

5. After confirming the correct wiring, first power on the CPU unit and then power on the load.

6. When powering off, first cut off the power to the load, and then cut off the power to the CPU.

1c343ce8-caa8-11ed-bfe3-dac502259ad0.png

Calculation of pulse quantity 01. What is pulse quantity

Pulse quantity is a digital quantity whose value is always changing between 0 (low level) and 1 (high level). The number of pulse changes per second is called frequency.

1c777fd0-caa8-11ed-bfe3-dac502259ad0.png

02. Characteristics of pulse quantity

The control purpose of PLC pulse quantity is mainly position control, motion control, trajectory control, etc.

1ca9c008-caa8-11ed-bfe3-dac502259ad0.png

03. Pulse quantity control method

The control of pulse quantity is mostly used for angle control, distance control, position control, etc. of stepper motors and servo motors. Take servo motors as an example:

1. Basic control idea: The total amount of pulses determines the motor displacement, and the pulse frequency determines the motor speed. Pulses are used to control the servo motor. When you open the user manual of the servo motor, you will generally find a table like the following:

1d1173b0-caa8-11ed-bfe3-dac502259ad0.png

2. Servo motor pulse control implementation method:

(1) The driver receives two high-speed pulses (A and B), and the phase difference between the two pulses determines the direction of rotation of the motor.

(2) The driver still receives two high-speed pulses, but the two high-speed pulses do not exist at the same time. When one pulse is in the output state, the other must be in the invalid state.

(3) Only one pulse signal is needed to be given to the driver, and the forward and reverse running of the motor is determined by one direction IO signal.


Keywords:PLC Reference address:Basic knowledge points of PLC programming

Previous article:Working principle of permanent magnet synchronous motor Structure of permanent magnet synchronous motor
Next article:Advantages and disadvantages of permanent magnet synchronous motor Parameters of permanent magnet synchronous motor

Recommended ReadingLatest update time:2024-11-16 09:54

Analysis of PROFIBUS-DP Communication Technology between FANUC Robot and SIEMENS PLC
This article mainly focuses on FANUC and introduces the PROFIBUS-DP communication between FANUC robot and SIEMENS, as well as the DEVICE NET communication between FANUC robot and FRONIUS welding machine. 1. PROFIBUS-DP communication between FANUC robot and SIEMENS PLC 1. Preparation The PLC used in th
[robot]
Mitsubishi PLC internal counter programming
Mitsubishi PLC counter soft element OUT, RST instruction mnemonics and functions Internal counter programming C0 counts the number of OFF-ON times of X011. When it reaches the set value K10, the output point C0 is activated. Thereafter, even if X011 is OFF-ON, the current value of the counter r
[Embedded]
Mitsubishi PLC internal counter programming
SIMATIC S7-1500 PLC S7-SCL addressing details
Addressing Addressing can be divided into direct addressing and indirect addressing, which are introduced below. (1) Direct addressing Direct addressing means that the address of the operation input is given directly without any transformation. Figure 1 shows direct addressing. Figure 1
[Embedded]
SIMATIC S7-1500 PLC S7-SCL addressing details
How much do you know about the 15 basics of PLC?
People engaged in power operations know that the development of industrial production and science and technology are inseparable from the automated control of PLC. PLC can be broadly understood as: a centralized relay extension control cabinet. In actual production applications, PLC greatly saves the cost of industr
[Embedded]
How much do you know about the 15 basics of PLC?
SIMATIC S7-1500 PLC communication and its application - PROFIBUS fiber optic interface network
(2) PROFIBUS**** optical fiber interface network For long-distance data transmission, electrical networks often cannot meet the requirements, while optical fiber networks can meet the requirements of long-distance data transmission and maintain high transmission rates. In addition, optical fiber networks have b
[Embedded]
SIMATIC S7-1500 PLC communication and its application - PROFIBUS fiber optic interface network
6 Practical Examples of PLC
01. An example of PLC communication port damage We have a project where the PLC port is burnt out. The PLC communication line is led out through the slip ring. Considering that it rained a few days ago, it is suspected that the PLC communication line is short-circuited due to water ingress into the slip ring, w
[Embedded]
6 Practical Examples of PLC
Analysis of water level control project based on PLC/frequency converter
Let me share with you a real case involving a water level control project with PLC, frequency converter and touch screen. Let’s take a look at the whole process and save it for future use! ● Project Description ● EM235 module ● Project realization ● Touch screen monitoring 1. Project D
[Embedded]
Analysis of water level control project based on PLC/frequency converter
The difference between PLC control and single chip microcomputer control
    PLC is actually a set of ready-made single-chip microcomputer (single-chip microcomputer has a wide range of range) system.     You can think of the ladder diagram of PLC as a programming language like assembly and other computer languages, but the scope of use is different! And the usual practice is that the PLC
[Microcontroller]
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号