Changes for page 01 Program execution

Last modified by Jiahao Lai on 2025/07/18 17:39

From version 18.1
edited by Stone Wu
on 2022/09/23 16:36
Change comment: There is no comment for this version
To version 34.1
edited by Mora Zhou
on 2024/12/05 16:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Stone
1 +XWiki.Mora
Content
... ... @@ -1,27 +1,24 @@
1 1  = **Summary** =
2 2  
3 -This manual has a comprehensive introduction to the basic functions of WECON PLC Editor and the actual use. This book is completely aimed at zero-based readers, is an essential reference book for entry-level readers to quickly and fully grasp WECON PLC and WECON PLC Editor.
3 +This manual provides a comprehensive introduction to the basic functions and actual use of WECON PLC Editor. It is completely aimed at zero-based readers and is an essential reference book for entry-level readers who want to quickly and fully grasp WECON PLC and WECON PLC Editor. 
4 +This book starts with the basic product of WECON PLC and the basic concept and operation of WECON PLC Editor. It then uses a large number of cases and graphic analysis to comprehensively and deeply explain the use of WECON PLC Editor Software and the PLC program.
5 +WECON Technology Co., Ltd. All rights reserved.
4 4  
5 -This book starts from the basic product of WECON PLC and the basic concept and operation of WECON PLC Editor. It combines with a large number of cases and graphic analysis to comprehensively and deeply explain the use of WECON PLC Editor Software, as well as PLC program.
6 -
7 -WECON technology Co., Ltd. All rights reserved.
8 -
9 9  = Precautions =
10 10  
11 -Before the installation, operation, maintenance and repair of the micro programmable control, please read this manual and other related manuals to ensure correct use. Please use it after you have mastered the operation method, safety information and all
9 +Before the installation, operation, maintenance and repair of the micro programmable control, please read this manual and other related manuals to ensure correct use. Please use it after you have mastered the operation method, and safety information.
12 12  
13 13  == Design ==
14 14  
15 -In the event of an abnormality in the external power supply or failure of the programmable controller, to ensure the safe operation of the entire system, be sure to install a safety circuit outside the programmable controller.
16 16  
17 17  1. Be sure to install an emergency brake circuit, a protection circuit, an interlock circuit for reverse operation, such as an emergency brake circuit, a protection circuit, a forward and reverse circuit, and an interlock circuit for the upper and lower positioning limits to prevent machine damage, in the external circuit of the programmable controller.
18 -1. When the programmable controller CPU detects abnormal conditions such as WDT errors through self-diagnosis, all outputs are shut off. In addition, when the programmable controller CPU cannot detect abnormalities in the input/output control part, etc., it cannot control the output. At this time, in order to make the machine operate safely, please design the external circuit and mechanism.
19 -1. Due to the failure of the relay and transistor of the output unit, it is impossible to control the state of the output to ON or OFF. In order to ensure the safe operation of the machine, please design external circuits and mechanisms for output signals related to major accidents.
15 +1. When the programmable controller CPU detects abnormal conditions such as WDT errors through self-diagnosis, all outputs are shut off. In addition, when the programmable controller CPU cannot detect abnormalities in the input/output control part, etc., it cannot control the output. At this time, please design the external circuit and mechanism so that the machine can operate safely.
16 +1. Due to the failure of the relay and transistor of the output unit, it is impossible to control the state of the output to ON or OFF. To ensure the safe operation of the machine, please design external circuits and mechanisms for output signals related to major accidents.
20 20  
21 21  == Installation ==
22 22  
23 23  * Please use it in the general specification environment described in the manual.
24 -** Do not use in the following places: places with dust, oily smoke, conductive dust, corrosive gas, flammable gas; places  exposed to high temperature, condensation, wind and rain; places with vibration or impact. Electric shock, fire, and misoperation can also cause product damage.
21 +** Do not use in the following places: places with dust, oily smoke, conductive dust, corrosive gas, or flammable gas; places exposed to high temperature, condensation, wind, and rain; places with vibration or impact. Electric shock, fire, and misoperation can also cause product damage.
25 25  * When processing screw holes and wiring, do not let iron filings or wire ends fall into the ventilation window of the programmable controller. It may cause fire, malfunction, or misoperation.
26 26  * Please insert the connecting cable and display module accurately into the specified sockets. Poor contact may cause misoperation.
27 27  
... ... @@ -29,8 +29,8 @@
29 29  (((
30 30  **✎Note:**
31 31  
32 -* To prevent the temperature from rising, do not install at the bottom, top or vertical direction.Be sure to install it horizontally on the wall as shown on the right.
33 -* Please leave a space of more than 50mm between the host and other equipment or structures.Try to avoid high-voltage lines, high-voltage equipment, and power equipment.
29 +* To prevent the temperature from rising, do not install at the bottom, top or vertical direction. Be sure to install it horizontally on the wall as shown on the right.
30 +* Please leave a space of more than 50mm between the host and other equipment or structures. Try to avoid high-voltage lines, high-voltage equipment, and power equipment.
34 34  )))
35 35  
36 36  == Wiring ==
... ... @@ -74,7 +74,7 @@
74 74  
75 75  * Please connect the AC power supply to the dedicated terminal according to the content in the manual.
76 76  * If the AC power supply is connected to the DC input/output terminal or the DC power supply terminal, the programmable controller will be burnt out.
77 -* Please do not supply power to the 24+ terminal of the basic unit from the external power supply, and to the empty terminal    . Do not wire from the outside, otherwise the product will be damaged.
74 +* Please do not supply power to the 24+ terminal of the basic unit from the external power supply and to the empty terminal. Do not wire from the outside, otherwise the product will be damaged.
78 78  * Please ground the ground terminal of the basic unit according to the third method. But please do not share the ground with the strong current system.
79 79  
80 80  **Attached**
... ... @@ -111,12 +111,12 @@
111 111  
112 112  Regular inspection: Whether the programmable controller is equipped with consumables with a shorter life.
113 113  
114 -For relay output type, if the output relay works abnormally at a high frequency or drives a large-capacity load, you must pay attention to its impact on the service life.
111 +For the relay output type, if the output relay works abnormally at a high frequency or drives a large-capacity load, you must pay attention to its impact on the service life.
115 115  
116 116  Check with other equipment, please pay attention to the following points:
117 117  
118 118  * Whether there is an abnormal increase in the temperature inside the machine due to other heating elements or direct sunlight.
119 -* Whether dust or conductive dust has penetrated into the machine.
116 +* Whether dust or conductive dust has penetrated the machine.
120 120  * Whether there are loose wiring and terminals or other abnormalities
121 121  
122 122  = Scan structure =
... ... @@ -131,7 +131,7 @@
131 131  The initialization based on the status of the CPU module is as follows.
132 132  
133 133  * **√**: execute
134 -* **×**: not execute
131 +* **×**: not execute
135 135  
136 136  (% class="table-bordered" %)
137 137  |=(% rowspan="2" %)**Processing item**|=(% colspan="3" %)**Status of the CPU module**
... ... @@ -247,7 +247,7 @@
247 247  *1: Scan program paging: multiple scan programs are established, and each scan program is called a paging. After scan program A is executed, before scan program B is executed, it will be judged whether an event program needs to be executed.
248 248  
249 249  (% style="text-align:center" %)
250 -[[image:1652247397997-492.png||class="img-thumbnail"]]
247 +[[image:image-20220926104203-1.jpeg||class="img-thumbnail"]]
251 251  
252 252  When it is the turn of the execution sequence of event execution type program C and Y50 is ON, the program is executed.
253 253  
... ... @@ -434,7 +434,7 @@
434 434  [[image:1-20.png||class="img-thumbnail"]]
435 435  
436 436  (% class="table-bordered" %)
437 -|(% colspan="2" %)**Project**|**Content**|**Setting range**|**Default**
434 +|=(% colspan="2" %)**Project**|=**Content**|=**Setting range**|=**Default**
438 438  |(% colspan="2" %)Execution type|Select the type of interrupt|Not set/External input interrupt/Timer event/high-speed counter interrupt|Not set
439 439  |(% rowspan="2" %)Timer interrupt|Time|Set the interval time for interrupt triggering|1 to 2147483647 (100us unit)|
440 440  |priority|When multiple interrupts arrive at the same time, the order of priority execution, the smallest value is executed first|0 to 2|0
... ... @@ -472,7 +472,7 @@
472 472  [[image:1-23.png||class="img-thumbnail"]]
473 473  
474 474  (% class="table-bordered" %)
475 -|(% colspan="2" %)**Project**|**Content**|**Setting range**|**Default**
472 +|=(% colspan="2" %)**Project**|=**Content**|=**Setting range**|=**Default**
476 476  |(% colspan="2" %)Execution type|Select the type of interrupt|Not set, External input interrupt, Timer event, high-speed counter interrupt|Not set
477 477  |(% rowspan="5" %)High count interrupt|Mode|(((
478 478  Select the type of high-speed counter interrupt:
... ... @@ -503,7 +503,7 @@
503 503   Description of triggering rules
504 504  
505 505  (% class="table-bordered" %)
506 -|(% style="width:135px" %)**Mode**|(% style="width:187px" %)**Configuration**|(% style="width:128px" %)**The current value**|(% style="width:324px" %)**Action**
503 +|=(% style="width: 135px;" %)**Mode**|=(% style="width: 187px;" %)**Configuration**|=(% style="width: 128px;" %)**The current value**|=(% style="width: 324px;" %)**Action**
507 507  |(% rowspan="2" style="width:135px" %)High-speed compare interrupt (INT0)|(% rowspan="2" style="width:187px" %)Comparison value: 10000|(% style="width:128px" %)9999 → 10000|(% style="width:324px" %)Execute all programs in interrupt INT0
508 508  |(% style="width:128px" %)10001 → 10000|(% style="width:324px" %)Execute all programs in interrupt INT0
509 509  |(% rowspan="2" style="width:135px" %)High-speed comparison set (INT1)|(% rowspan="2" style="width:187px" %)(((
... ... @@ -596,38 +596,38 @@
596 596  
597 597  (% class="table-bordered" %)
598 598  |=(% colspan="4" %)**Timer interrupt mask register**
599 -|=**Special register number**|=(% style="width: 311px;" %)**Type of interrupt**|=(% style="width: 391px;" %)**Instruction**|=(% style="width: 110px;" %)**Default**
600 -|SD350|(% style="width:311px" %)1st to 16th timer interrupt|(% style="width:391px" %)(((
596 +|=(% style="width: 262px;" %)**Special register number**|=(% style="width: 309px;" %)**Type of interrupt**|=(% style="width: 394px;" %)**Instruction**|=(% style="width: 110px;" %)**Default**
597 +|(% style="width:262px" %)SD350|(% style="width:309px" %)1st to 16th timer interrupt|(% style="width:394px" %)(((
601 601  Each bit can control the mask of an interrupt.
602 602  
603 603  ON: shield interrupts; OFF: interrupt allowed
604 604  )))|(% style="width:110px" %)0
605 -|SD351|(% style="width:311px" %)17th to 32th timer interrupt|(% style="width:391px" %)(((
602 +|(% style="width:262px" %)SD351|(% style="width:309px" %)17th to 32th timer interrupt|(% style="width:394px" %)(((
606 606  Each bit can control the mask of an interrupt.
607 607  
608 608  ON: shield interrupts; OFF: interrupt allowed
609 609  )))|(% style="width:110px" %)0
610 -|SD352|(% style="width:311px" %)33th to 48th timer interrupt|(% style="width:391px" %)(((
607 +|(% style="width:262px" %)SD352|(% style="width:309px" %)33th to 48th timer interrupt|(% style="width:394px" %)(((
611 611  Each bit can control the mask of an interrupt.
612 612  
613 613  ON: shield interrupts; OFF: interrupt allowed
614 614  )))|(% style="width:110px" %)0
615 -|SD353|(% style="width:311px" %)49th to 64th timer interrupt|(% style="width:391px" %)(((
612 +|(% style="width:262px" %)SD353|(% style="width:309px" %)49th to 64th timer interrupt|(% style="width:394px" %)(((
616 616  Each bit can control the mask of an interrupt.
617 617  
618 618  ON: shield interrupts; OFF: interrupt allowed
619 619  )))|(% style="width:110px" %)0
620 -|SD354|(% style="width:311px" %)65th to 80th timer interrupt|(% style="width:391px" %)(((
617 +|(% style="width:262px" %)SD354|(% style="width:309px" %)65th to 80th timer interrupt|(% style="width:394px" %)(((
621 621  Each bit can control the mask of an interrupt.
622 622  
623 623  ON: shield interrupts; OFF: interrupt allowed
624 624  )))|(% style="width:110px" %)0
625 -|SD355|(% style="width:311px" %)81st to 96th timer interrupt|(% style="width:391px" %)(((
622 +|(% style="width:262px" %)SD355|(% style="width:309px" %)81st to 96th timer interrupt|(% style="width:394px" %)(((
626 626  Each bit can control the mask of an interrupt.
627 627  
628 628  ON: shield interrupts; OFF: interrupt allowed
629 629  )))|(% style="width:110px" %)0
630 -|SD356|(% style="width:311px" %)97th to 100th timer interrupt|(% style="width:391px" %)(((
627 +|(% style="width:262px" %)SD356|(% style="width:309px" %)97th to 100th timer interrupt|(% style="width:394px" %)(((
631 631  Each bit can control the mask of an interrupt.
632 632  
633 633  ON: shield interrupts; OFF: interrupt allowed
image-20220926104203-1.jpeg
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Stone
Size
... ... @@ -1,0 +1,1 @@
1 +105.7 KB
Content