NEWS CENTER

News Center

PLC custom time countdown program design ideas

  • Categorize:Industry Information
  • Author:China Industrial control network
  • Source:China Industrial control network
  • Release time:2023-11-15
  • pageviews:0

Summary

PLC custom time countdown program design ideas

Summary

  • Categorize:Industry Information
  • Author:China Industrial control network
  • Source:China Industrial control network
  • Release time:2023-11-15
  • pageviews:0

Speaking of time timing is the PLC necessary instructions and program design, but if the reverse through the countdown to drive the program, but the timer is first set the time and then arrive at the time, rather than the countdown function of the operation, if you want to achieve how to operate? Next I will take you to write a design how to customize the time countdown program design.

1. Write variable scale

 

Enter the required symbol name based on the corresponding variable type and data type

 

1.jpg

2, design the subroutine with parameters

Step 1: (Start the countdown and input the countdown time to output the countdown marker)

2.jpg

Step 2: (Start the countdown and compare if the set value is less than 0 or equal to 0 do not run the countdown)

3.jpg

Step 3: (Press the reset button to reset the countdown time and countdown marker)

4.jpg

3, call the subroutine

Step 1: Call the countdown subroutine in the main program, and then fill in the external corresponding pin)

5.jpg

Step 2: After the countdown is complete, output Q0.0 coil by comparing instructions when the countdown time is equal to or less than 0.

6.jpg

Step 3: (Make the second call multiple calls, while filling in the external pin)

7.jpg

Step 4: (After the countdown is complete, output Q0.1 coil by comparing instructions when the countdown time is equal to or less than 0)

 

8.jpg

4. Demonstration effect

Step 1: Enter the countdown time in VW0 and press I0.0 to trigger the countdown

9.jpg

Step 2: Countdown time to trigger Q0.0 coil output

10.jpg

Popular news

The

The wide application of grid boxes

Fuzhou Zhuokai Electronic Technology Co., Ltd. specializes in selling various automation products from European, Japanese and American brands. We have established long-term and stable business partnerships with manufacturers of industrial control products. Our core agency and sales products include modules, mainboards, motors, drives, power supplies, sensors, inverters, relays, solenoid valves and more. These products are widely adopted across numerous industries such as shipbuilding, coal mining, steelmaking, semiconductors, metallurgy, power generation, logistics, textiles, printing, transportation and packaging. We continuously update our product inventory and deliver efficient, high-quality services to meet the demands of customers from all sectors.
2025-04-01
Advantages

Advantages and Disadvantages of Temperature Controllers

Fuzhou Zhuokai Electronic Technology Co., Ltd. specializes in selling various automation products from European, Japanese and American brands. We have established long-term and stable business partnerships with manufacturers of industrial control products. Our core agency and sales products include modules, mainboards, motors, drives, power supplies, sensors, inverters, relays, solenoid valves and more. These products are widely adopted across numerous industries such as shipbuilding, coal mining, steelmaking, semiconductors, metallurgy, power generation, logistics, textiles, printing, transportation and packaging. We continuously update our product inventory and deliver efficient, high-quality services to meet the demands of customers from all sectors.
2025-03-26
Wide

Wide application of temperature controller

Fuzhou Zhuokai Electronic Technology Co., Ltd. specializes in selling various automation products from European, Japanese and American brands. We have established long-term and stable business partnerships with manufacturers of industrial control products. Our core agency and sales products include modules, mainboards, motors, drives, power supplies, sensors, inverters, relays, solenoid valves and more. These products are widely adopted across numerous industries such as shipbuilding, coal mining, steelmaking, semiconductors, metallurgy, power generation, logistics, textiles, printing, transportation and packaging. We continuously update our product inventory and deliver efficient, high-quality services to meet the demands of customers from all sectors.
2025-02-10

卓凯电子 卓凯电子

-
  • Phone:18859151762

  • Email:sales@fzzk-dcs.cn

微信咨询

WeChat

Copyright © Fuzhou Zhuokai Electronic Technology Co., Ltd. All rights reserved | Powered by 233 Technology