Plc programming source code sharing

What is PLC programming?

PLC programming is an electronic system for digital computing operations designed for applications in industrial environments. It uses a programmable memory to store instructions for performing operations such as logic operations, sequence control, timing, counting, and arithmetic operations, and to control various types of machinery through digital and analog inputs and outputs. Or the production process. Programmable controllers and their associated equipment should be designed in such a way that it is easy to make the industrial control system a whole and easy to expand its functions.

Plc programming source code

The PLC program code is as follows:

Processing set input values

LD SM0.0

ITD AIW2, AC1

DTR AC1, AC1

/R 32000.0, AC1

MOVR AC1, VD136

MOVR VD136, VD138

/R 1.0, VD13

Set timing time

LDN M0.2

TON T50, 100

LDW"= T50, +99

= M0.1

LD T50

= M0.3

Running interrupt program

LD SM0.1

O M0.3

CALL SBR_0: SBR0

LD SM0.1 system initialization.

R M0.0, 2

R Q0.0, 8

Press the start button and M0.0 is the start flag.

LD I0.0

AN I0.1

EU

S M0.0, 1

R M0.1, 1

After pressing the stop button, turn off the inverter and 4 pumps, M0.1 is the stop sign.

LD I0.1

EU

S M0.1, 1

LD M0.1

R M0.0,1

R Q0.0,8

The No. 1 pump motor is operated in frequency conversion.

LD M0.0

EU

S Q0.0,1

S QO.7,1

The inverter has the upper frequency limit. The start timer T37 starts to count. After 15 seconds, the No. 1 pump motor and the inverter are turned off. At the same time, the timer T33 is started for 2 seconds to decelerate the inverter to 0.

LD I0.2

A Q0.0

TON T37, +150

LD T37

EU TON T33, +200

R Q0.0,1

R Q0.7,1

2 seconds to the time, the No. 1 pump motor is switched to the power frequency, and the No. 2 pump motor is frequency-controlled.

LD T33

S Q0.1, 2

S QO.7,1

The frequency limit of the inverter appears. Start the timer T38 for l5 seconds. After the timer is finished, turn off the No. 2 pump motor and inverter, and start the timer T34 for 2 seconds to decelerate the inverter to 0.

LD I0.2

A 0.1 TON T38, +150

LD T38

EU

TON T34, +200

R Q0.2,1

R Q0.7,1

2 seconds to the time, the 2nd pump motor is switched to the power frequency, and the 3rd pump motor is frequency-controlled.

LD T34

EU

S Q0.3, 2

S Q0.7,

The frequency converter has a lower frequency limit, and the timer T39 is started for 3 minutes. After the timer is finished, the No. 1 pump motor is turned off.

LD 10.3

A Q0.1

TON T39, +1800

LD T39

EU

R Q0.1,1

The inverter reaches the lower frequency limit and starts the timer T40 for 3 minutes. After the timer is finished, the No. 2 pump motor is turned off.

LD I0.3

A Q0.3

TON T40, +1800

The inverter reaches the lower frequency limit again, and the timer T41 is started for 3 minutes. When the timing is completed, the No. 3 pump motor and the inverter are turned off.

LD I0.3

EU

R Q0.3,1

LD I0.3

A Q0.4 TON T41, +1800

LD T41

EU

ZGAR AZ Vape Pods 5.0S

ZGAR AZ Vape Pods 5.0S

ZGAR electronic cigarette uses high-tech R&D, food grade disposable pod device and high-quality raw material. All package designs are Original IP. Our designer team is from Hong Kong. We have very high requirements for product quality, flavors taste and packaging design. The E-liquid is imported, materials are food grade, and assembly plant is medical-grade dust-free workshops.

From production to packaging, the whole system of tracking, efficient and orderly process, achieving daily efficient output. WEIKA pays attention to the details of each process control. The first class dust-free production workshop has passed the GMP food and drug production standard certification, ensuring quality and safety. We choose the products with a traceability system, which can not only effectively track and trace all kinds of data, but also ensure good product quality.



We offer best price, high quality Pods, Pods Touch Screen, Empty Pod System, Pod Vape, Disposable Pod device, E-cigar, Vape Pods to all over the world.

Much Better Vaping Experience!




Pods, Vape Pods, Empty Pod System Vape,Disposable Pod Vape Systems

ZGAR INTERNATIONAL TRADING CO., LTD. , https://www.zgarvapor.com