S7-200Smart PLC instruction entry application

Publisher:QianfengLatest update time:2023-07-14 Source: elecfansKeywords:S7-200Smart  PLC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

S7-200Smart PLC Instruction Entry Application

Normally open and normally closed coil instruction principle explanation

The relationship between bit logic instruction symbols and relay circuit symbols:

wKgZomQZVa2ARQC4AAHzB8qQYe4954.png

Bit Logic Instructions

Note: The relationship between the normally open and normally closed external signals of input and output and the normally open and normally closed applications in the program

Normally open and normally closed coil case application (workpiece puncher) Workpiece puncher (inching):

(1) Example scenario description: drilling holes in small workpieces in a factory.

(2) Instructions for use: switch contacts, coils

(3) Case application description: When the start button is pressed, the solenoid valve is energized to control the cylinder to extend. When the button is released, the solenoid valve is de-energized and the cylinder automatically retracts.

(4) I/O allocation table

wKgaomQZVa2AK3Y1AABNi5rvi5o523.png

Workpiece punching machine I/O allocation table

Workpiece punching machine PLC control circuit and programming

wKgZomQZVa2AYSxmAACx9hBIJ4g856.png

Wiring diagram of workpiece punching machine

wKgZomQZVa2ADbtWAABcBtfB3RQ849.png

Workpiece punching machine program

Explanation of the principle of rising and falling edge instructions

Rising Edge: A positive transition contact command (rising edge) allows energy to flow for one scan cycle after each off-to-on transition.

Falling Edge: A negative transition contact instruction (falling edge) allows energy to flow for one scan cycle after each on-to-off transition.

wKgaomQZVa2ACr_aAADk565b5KI106.png

Rising and falling edge instruction program

Because the positive and negative transition instructions require an off-to-on or on-to-off transition, it is not possible to detect a rising or falling edge transition on the first scan.

Application scenarios: For example, individual communication instructions are only called once/counter counting, etc.

Reset bit instruction

Network 4: I0.3 is pressed, Q0.4 starts to be set to 1 bit continuously (Q0.4 status: always 1). Network 5: I0.4 is pressed, Q0.4 starts to be reset to 1 bit continuously (Q0.4 status: always 0). Network 6: I0.5 is pressed, Q0.4 starts to be set to 1 bit continuously once.

(Q0.4 status: always set to 1, pressing I0.6 can reset Q0.4 status to 0) Network 7: When I0.6 is pressed, Q0.4 starts to be reset once continuously.

(Q0.4 status: always set to 1, pressing I0.6 can reset Q0.4 status to 0)

wKgZomQZVa2AR5MCAABxuGlpRE0541.png

Set reset instruction program

S7-200SMART PLC Dual Coil

wKgaomQZVa2AZ-dSAACZiWOCkyY283.png

Double coil procedure

! Programming to avoid

During programming, we avoid double coils when using regular coil instructions.

Timer instruction application

1. Function of the timer

The timer can accumulate time on the time base to achieve timing control (for example: star-delta time switching). Timer classification On-delay timer (TON): used to time a single time interval.

On-delay timer with memory (TONR): used to accumulate the time values ​​of multiple timing time intervals.

Off-delay timer (TOF): Used to extend a certain time interval after an OFF (or FALSE) condition, such as the delay for cooling a motor. See Table 4-6.

wKgaomQZVa2AKPBnAABJ0YkKS1k509.png

wKgZomQZVa2AHGnfAAEk4ALagaA807.png

Timer Number and Resolution Table

Related Notes:

(1) There are two types of addressing for counters: Word and Bit.

(2) Avoid timer number conflicts: The same timer number cannot be used for both TON and TOF timers. For example, TON T32 and TOF T32 cannot be used at the same time.

(3) The time bases for the timer are: 1ms, 10ms, 100ms (When selecting a smaller time base, be sure to select one that is larger than the PLC scan cycle). To ensure the minimum time interval, increase the preset value (PV) by 1. For example: When using a 100 ms timer, to ensure the minimum time interval is at least 2100 ms, set the PV to 22.

2. Understanding and analysis of timer instructions

wKgZomQZVa2AenC6AAAthUYyeWQ544.png

Timer instructions

a. Txx timer number: range T0~T255;

b. IN access enable: cannot be directly connected to the power flow bus;

c. PT preset value: range 1~32767, determines the maximum range of the set time;

d. TON/TONR/TOF: timer type (related to the timer number);

e. ??? ms time base (resolution): 1MS; 10MS; 100MS;

Programming example:

wKgaomQZVa2AMMdGAABcjdL_rpg558.png

Timer instruction program

Timing diagram:

wKgaomQZVa2AYFKPAACyyZMklPk526.png

Timing diagram

Application of bit instructions and timer instructions

Star-delta starting control relay circuit for motor

wKgZomQZVa2AFMBtAAKbnIvZy8c248.png

Star-delta wiring diagram

Star-delta starting control PLC program for motors

wKgaomQZVa2AMoDgAAC0AII_b5s576.png


Keywords:S7-200Smart  PLC Reference address:S7-200Smart PLC instruction entry application

Previous article:Explanation of the Y-△ drag control circuit of three-phase asynchronous motor
Next article:What is PLC? What are the common PLCs?

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

Reasonable selection and use of Siemens PLC power supply
A large part of the failure of PLC control system comes from the power supply. It is very important to choose and use the power supply properly. This article uses Siemens PLC as a reference to explain. The CPU module of the PLC contains a power board, an interface board and a main control board. It uses t
[Embedded]
Reasonable selection and use of Siemens PLC power supply
Siemens S7-200 SMART series PLC wiring summary
The load current of a relay is larger than that of a transistor, but the output frequency cannot be too fast due to the influence of the mechanical device, and there is also a limit on the mechanical life. The load current of a transistor is smaller than that of a relay, but the output frequency is fast and can be u
[Embedded]
Siemens S7-200 SMART series PLC wiring summary
Introduction to the communication methods of mainstream PLC equipment abroad
1. Rockwell ABRockwell's PLCs mainly include: PLC2, PLC3, PLC5, SLC500, ControlLogix and other models. PLC2 and PLC3 are early models. The most commonly used small PLCs are SLC500, medium-sized ones are generally ControlLogix, and large ones use PLC5 series. DF1 protocol is a communication protocol supported by all
[Embedded]
Comparison between PLC and motion controller
"Nowadays, the motion control function of PLC is getting stronger and stronger. Circular interpolation, spiral interpolation, and electronic cam can all be easily competent. So what is the difference between motion controller and PLC with motion control function? What are the advantages of motion controller in the f
[Embedded]
Comparison between PLC and motion controller
Siemens commonly used PLC instruction table
Siemens commonly used PLC instruction table Calculates the time difference between the current time and the time provided by IN and stores the time difference in ouT. The maximum time interval for a double-word millisecond value is 2 to the power of 32, or 49.7 days. Depending on when the BGN_ITIMB instruction
[Embedded]
Siemens commonly used PLC instruction table
The difference between PLC and various sensor connection methods
In industrial sites, various analog sensors such as pressure, displacement, temperature, flow, and speed are designed with different technical methods. The working power distribution methods of sensors are mainly divided into two-wire and four-wire systems, and the analog signals they output are also different. The
[Embedded]
The difference between PLC and various sensor connection methods
Wiring method of PLC connecting PNP and NPN sensors
Hello everyone, we have talked about NPN sensors and PNP sensors many times before. What is the difference between these two sensors? PNP sensor is also called "source input", the current flows out from the terminal, that is, high level is effective. Then its output voltage is 24V in 24V.
[Embedded]
Wiring method of PLC connecting PNP and NPN sensors
PLC analog input conversion process
PLC analog input collects data, and after calculation-conversion, it gets MD double word, and finally the host computer monitor displays the address DB.DBW single word. How is this process converted and what instructions are used? Please give me some advice, preferably with detailed examples, thank you! H
[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号