SIMATIC S7-1500 PLC Application Examples

Publisher:CaptivatingEyesLatest update time:2024-05-30 Source: elecfansKeywords:SIMATIC  S7-1500  PLC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

[Example] There is a control system, the controller is CPU 1511C-IPN, the pressure sensor measures the oil pressure, the oil pressure range is 0 ~ 10MPa, when the oil pressure is higher than 8MPa, an alarm will be triggered. Please design this system.

[Answer] CPU 1511C-1PN integrates analog input/output and digital input/output. Its wiring is shown in Figure 1. Terminals 1 and 2 of the analog input are respectively connected to the current signal + and current signal - of the sensor.

be084cda-45b9-11ee-a2ef-92fbcf53809c.png

Figure 1

Numeric Conversion (FC105) The SCALE function accepts an integer value (IN) and converts it to a real value between the lower and upper limits (LO_LIM and HI_LIM) of the engineering units table.

① Create a new project. Create a new project "Alarm". In the project tree of the TIA Portal software project view, click "Add New Block" to create a new program block. The block name is "Pressure Acquisition". Select the programming language as "LAD" and the block type as "Function FC". Then click the "OK" button, as shown in Figure 2, to generate function FC1, whose programming language is LAD.

be23a91c-45b9-11ee-a2ef-92fbcf53809c.png

Figure 2

② Define the variables of the function. Open the newly created function "FC1" and define the input variable (Input), output variable (Output) and temporary variable (Temp) of function FC1, as shown in Figure 3. Note: These variables are local variables and are only valid within this function.

be95495a-45b9-11ee-a2ef-92fbcf53809c.png

Figure 3

③Insert the SCALE instruction. Click "Instructions" → "Basic Instructions" → "Original" → "SCALE" to insert the SCALE instruction.

④ Write the LAD program of function FC1 as shown in Figure 4.

bebcf04a-45b9-11ee-a2ef-92fbcf53809c.png

Figure 4

⑤ Add loop organization block OB30 and write LAD program, as shown in Figure 5. The pin of FC1 is very similar to CALE in the instruction, and the pressure variable range collected is within 0~10MPa.

bee3bab8-45b9-11ee-a2ef-92fbcf53809c.png

Figure 5


Keywords:SIMATIC  S7-1500  PLC Reference address:SIMATIC S7-1500 PLC Application Examples

Previous article:What are the main reasons for the axial movement of the motor rotor?
Next article:Application of Xinsen AN3V PB50 programmable Hall current sensor in permanent magnet synchronous servo motor

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

Connection techniques between PLC and 7 peripheral devices
Common input devices of PLC include buttons, travel switches, proximity switches, conversion switches, encoders, various sensors, etc. Output devices include relays, contactors, solenoid valves, etc. Correctly connecting input and output circuits is the prerequisite for ensuring the safe and reliable operation of PL
[Embedded]
Connection techniques between PLC and 7 peripheral devices
Analysis of several problems that may occur during the use of PLC
As the core of the industrial field, PLC is widely used in many products. In-depth understanding of the use and solution knowledge will greatly promote the promotion and service improvement of PLC. This article selects ladder diagram as the programming language in terms of hardware and software. This article selects
[Embedded]
Analysis of several problems that may occur during the use of PLC
Five communication methods between PLC and sensors
PLC (Programmable Logic Controller) is a device specialized in industrial automation control, used to control and monitor machines and processes. Sensors are devices used to detect and measure physical quantities, such as temperature, pressure, humidity, etc. The communication between PLC and sensors is very importa
[Embedded]
What is the response time of PLC?
What is the response time of a PLC? What is the difference in response time when the output uses cyclic refresh and direct refresh? The time required from when the PLC receives an input signal to when the PLC outputs a control signal to the output terminal is the PLC response time. When using cyclic
[Embedded]
Characteristics and structural analysis of ladder diagram in PLC control system
1. Characteristics of ladder diagram of PLC control system (1) Input signal and output load of PLC control system The AC contactors and solenoid valves in the relay circuit diagram are controlled by the output relays of the PLC, and their coils are connected to the output terminals of the PLC. Buttons, con
[Embedded]
Characteristics and structural analysis of ladder diagram in PLC control system
PLC interrupt instructions and routines
1. Concepts of Interrupts and Interrupt Events In our daily work, we work according to the normal process. If an emergency occurs in the middle of the work or we need to take care of another task after a certain period of time, we must stop the work at hand to deal with the emergency or another task. This stop
[Embedded]
PLC interrupt instructions and routines
SIMATIC S7-1500 PLC Shift Left Instruction (SHL)
The TIA Portal software shift instruction can shift the contents of the accumulator bit by bit to the left or right. The number of bits to be shifted is determined by N. Shifting N bits to the left is equivalent to multiplying the contents of the accumulator by 2N, and shifting right is equivalent to processing the
[Embedded]
SIMATIC S7-1500 PLC Shift Left Instruction (SHL)
How to prevent input pulse loss in Siemens PLC
(1) When using the high-speed counter function to collect data, as long as the maximum operating frequency of the high-speed counter is ensured to be higher than the pulse frequency, pulses will not be lost. (2) When using timer interrupts and pulse acquisition subroutines to collect data, pulses will not
[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号