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.
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 scaleEnter the required symbol name based on the corresponding variable type and data type
2. Design a subroutine with parameters
Step 1: (Start the countdown and input the countdown time to output the countdown marker)
2.Step 2: (Start countdown and compare if the set value is less than 0 or equal to 0 do not
run countdown)
3. Step 3: (Press the reset button to reset the countdown time and countdown marker)
4.Third, call the subroutine
Step 1: Call the countdown subroutine in the main program, and then fill in the
external corresponding pin)
5.Step 2: When the countdown is complete, output Q0.0 coil by
comparing instructions when the countdown time is equal to or less than 0.
6. Step 3: (Make the second call multiple calls, while filling in the external pin)
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)
4.
Demonstration effectStep 1: Enter the countdown time in VW0 and press I0.0 to trigger the
countdown
9.Step 2: (Countdown time to trigger Q0.0 coil output)