Analysis of key points of examples on Siemens S7-300PLC analog quantity

Publisher:HarmonyInLifeLatest update time:2023-09-21 Source: elecfansKeywords:Siemens Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Today I will share with you an example of Siemens S7-300PLC analog quantity, which includes the following points:

1. Take the value of the transmitter and control it

2. Call the modulus function block FC105

3. Set up the AI ​​module

4. Select the AI ​​range block


In this example, a flow control loop is debugged. The flow transmitter outputs a 2-2-MA DC signal to the SM331 analog input module. The module converts the signal into a floating point number. Then, FC105 is called in the program to convert the value into an engineering quantity. We can then monitor the flow value in the actual project.

67250504-ed42-11ed-90ce-dac502259ad0.jpg

The analog AI uses the SM311 module, which is 8x12Bit (8 channels, 12 bits). The corresponding part number is 6ES7 331-7KF02-OABO. In analog-to-digital conversion, the voltage or current value taken out by the sensor or transmitter is converted to the AI ​​module, and then the value is transmitted to the Siemens CPU for processing, so as to detect the value of the control sensor, as shown in the figure.

6738afdc-ed42-11ed-90ce-dac502259ad0.png

Analog Input Modules

Analog input is used to connect voltage and current sensors, thermocouples, resistors and thermal resistors, and to connect PLC to analog process signals. The analog input module is shown in Figure 2-1, which converts the analog signal sent from the process into a digital signal for internal processing of the PLC. The SM311 input module used in this project is shown in the figure. This module has the following features: Resolution is 9 to 15 bits + sign bit (for different conversion times), and different measurement ranges can be set. The basic measurement range of current/voltage can be mechanically adjusted through the range module. Fine-tuning can be performed using the STEP 7 hardware configuration tool.

The module sends diagnostic and limit-exceeding interrupts to the CPU of the programmable controller. The module sends detailed diagnostic information to the CPU.

Wiring method of analog input module

Both the two-wire current and the four-wire current have only two signal wires. The main difference between them is that the two signal wires of the two-wire current not only supply power to the sensor or transmitter, but also provide current signals, while the two signal wires of the four-wire current only provide current signals. Therefore, sensors or transmitters that usually provide two-wire current signals are passive, while sensors or transmitters that provide four-wire current signals are active.

Therefore, when the template input channel of the PLC is set to connect a four-wire sensor, the PLC only collects analog signals from the terminals of the template channel, as shown in Figure 2-3. When the template input channel of the PLC is set to connect a two-wire sensor, as shown in Figure 2-2, the channel of the PLC analog input template also outputs a DC 24V power supply to drive the two-wire sensor to work.

675bed44-ed42-11ed-90ce-dac502259ad0.png

6770afcc-ed42-11ed-90ce-dac502259ad0.png

Sensor model: ● Two-wire system (needs to supply 24vDC power, output signal is 4-20MA, current) that is, + is connected to 24vdc, negative output is 4-20mA current. ● Four-wire system (has its own power supply, generally 220vac, signal line output + is 4-20ma positive, - is 4-20ma negative.

1. PLC: (Take 2 positive and 3 negative as an example), in two-wire system, positive pole 2 outputs 24VDC voltage, and 3 receives current, so when encountering a two-wire sensor, one connection method is to connect 2 to the positive of the sensor and 3 to the negative of the sensor; the jumper is a two-wire current signal. The other connection method is to leave 2 suspended and connect 3 to the negative of the sensor, and at the same time, the positive of the sensor should be connected to the 24vdc in the cabinet; the jumper is a two-wire current signal.

2. (Take 2 positive and 3 negative as an example), in the four-wire system, the positive pole 2 is the receiving current, and 3 is the negative pole. (The advantage of the four-wire system is that when the negative pole signal of the sensor and the M in the cabinet are at different levels, it will not affect the accuracy greatly, because it is the current loop of the sensor itself) When encountering a four-wire sensor, one method is to connect 2 to the positive of the sensor, 3 to the negative of the sensor, and the PLC jumper is a four-wire current.

"The sensor is connected to 3 of the PLC, 2 is left floating, and the jumper is for two-wire current." This rule is applicable to both four-wire and two-wire sensors. You can try it yourself and post a recommendation if you find it useful.

3. (Take 2 positive and 3 negative as an example), the jumper connection method between the four-wire sensor and the PLC two-wire system: the negative signal line is connected to the M line in the cabinet. Connect the positive sensor to the 3 of the PLC, leave 2 hanging, and the jumper is a two-wire current.

4. (Take 2 positive and 3 negative as an example), voltage signal: 2 is connected to the positive of the sensor, 3 is connected to the negative of the sensor, and the PLC jumper is a voltage signal.

Setting the range card The range card is installed on the left side of the template. The allowed settings are "A", "B", "C" and "D", which are suitable for different measurement types and ranges. It must be set correctly before installing the template. The analog template without range card has different wiring terminals for voltage and current measurement. In this way, the type of measurement can be set by correctly connecting the relevant terminals. Brief instructions on setting different measurement types and measurement ranges are printed on the template. For this project, the water level measurement uses a two-wire transmitter, so "D" is selected, as shown in Figure 2-4.

6786e940-ed42-11ed-90ce-dac502259ad0.jpg

679bd15c-ed42-11ed-90ce-dac502259ad0.jpg

Input module settings After setting up the rack in the "Hardware" interface, double-click the input module "ATBx12bit", as shown below:

67b68e20-ed42-11ed-90ce-dac502259ad0.jpg

Double-click the input module and an execution box will pop up. Click "Address" and change the start address to "256" as shown below:

67cba2ba-ed42-11ed-90ce-dac502259ad0.jpg

After changing the address, click "Input" and click "2DMU" in "Measurement Model" to set the sensor type. (This time, a two-wire transmitter is used). As shown below: AI system Create a Siemens hardware module After adding the power supply and CPU, select the AI ​​module in the configuration file as shown in Figure 4-1

67dfe2fc-ed42-11ed-90ce-dac502259ad0.jpg

When the addition is complete, this module will appear in the hardware system as shown in Figure 4-2

67f32f6a-ed42-11ed-90ce-dac502259ad0.jpg

After this operation is successful, double-click to select and enter the settings in the dialog box. See Figure 4-3

68108bb4-ed42-11ed-90ce-dac502259ad0.jpg

After completing the selection, click OK, and then you can write the program.

AI program The AI ​​module program in S7-300 has been written by the manufacturer. You only need to call the function module. The calling method is shown in Figure 4-4.

6820a4c2-ed42-11ed-90ce-dac502259ad0.jpg

Find the FC105 function block in the lower dialog box of Figure 4-4, as shown in Figure 4-5

683d3628-ed42-11ed-90ce-dac502259ad0.jpg

IN: Enable terminal. HI_LIM: High line. L0_LIM: Low line. BIPOLAR: Polarity. RET_VAL: Error storage. OUT: Output value (liquid level).


Keywords:Siemens Reference address:Analysis of key points of examples on Siemens S7-300PLC analog quantity

Previous article:Analysis of VR control application of SEW-movifit inverter
Next article:Application of PoE Technology in Industrial Systems

Recommended ReadingLatest update time:2024-11-16 11:36

Profinet communication example between two SMART PLCs
In modern highly intelligent projects, there are many communication protocols used between PLCs, such as Modbus, canope, profinet, etc. Today we will use Siemens Smart200 PLC to introduce how to make them "shake hands" using Profinet. The following conditions need to be met: 1.) A computer with STEP
[Embedded]
Profinet communication example between two SMART PLCs
Translation of 94 instructions for Siemens PLC
Instruction (full English name): Meaning of instruction 1. LD (Load): normally closed contact 2. LDN (Load Not): Break contact 3. A (And and normally closed): used for normally closed contacts in series 4. AN (And Not and break): used for connecting break contacts in series 5. O (Or or norma
[Embedded]
The difference between industrial computers and PLCs
Automation is one of the key factors in increasing factory output and reducing manufacturing costs. Technological advances such as relays, PLCs, and industrial PCs (IPCs) are driving industrial automation that is changing the way machines and humans interact. This article will discuss the dual control system hardwar
[Embedded]
The difference between industrial computers and PLCs
Siemens PLC Introduction - Forward and Reverse Circuit Diagram
Control requirements: Press SB1 and the motor rotates forward. Press SB2 and the motor will reverse. Press SB3 to stop the motor. As the most basic circuit, the forward and reverse rotation of the motor must be understood when studying electrical engineering. To learn the forward and r
[Embedded]
Siemens PLC Introduction - Forward and Reverse Circuit Diagram
Analysis of ModbusRTU communication example of Siemens S7 1214C PLC
PLC programmer Modbus is a commonly used communication method in PLC applications. Polling is a commonly used programming method when a controller is connected to multiple slaves. Due to the advantages of ST language in data processing, this method becomes simpler. The following takes the ModbusRTU communication of
[Embedded]
Analysis of ModbusRTU communication example of Siemens S7 1214C PLC
Multi-speed setting controlled by PLC
The manual speed setting method using the basic operation panel is simple and consumes less resources, but this speed setting method is more troublesome for the operator and it is not easy to achieve automatic control. The multi-stage speed setting and communication speed setting of PLC control are easy to achieve a
[Embedded]
Multi-speed setting controlled by PLC
Siemens S7-200SMART FAQ
How to control two stepper motors with one 200SMART? S7-200SMART CPU can output up to 3 high-speed pulses (except ST20), which means that up to 3 stepper motors can be controlled simultaneously. The corresponding motion control subroutine can be configured through the motion wizard, and then the stepper motor c
[Embedded]
What is the Siemens PLC variable table? Introduction to the structure of the PLC variable table
Introduction Each PLC tag table contains a tags tab and a user constants tab. The default tag table and the "All tags" table also include a "System constants" tab. Structure of the "PLC tags" tab In the "Tags" tab, you declare the global PLC tags required in your program. The following f
[Embedded]
What is the Siemens PLC variable table? Introduction to the structure of the PLC variable table
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号