Changes for page 01 Program execution
Last modified by Jiahao Lai on 2025/07/18 17:39
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Mora1 +XWiki.Stone - Content
-
... ... @@ -1,9 +1,11 @@ 1 1 = **Summary** = 2 2 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. 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. 6 6 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 + 7 7 = Precautions = 8 8 9 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, safety information and all ... ... @@ -27,8 +27,8 @@ 27 27 ((( 28 28 **✎Note:** 29 29 30 -* To prevent the temperature from rising, do not install at the bottom, top or vertical direction. 31 -* Please leave a space of more than 50mm between the host and other equipment or structures. 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. 32 32 ))) 33 33 34 34 == Wiring == ... ... @@ -129,7 +129,7 @@ 129 129 The initialization based on the status of the CPU module is as follows. 130 130 131 131 * **√**: execute 132 -* **×**: not execute 134 +* **×**: not execute 133 133 134 134 (% class="table-bordered" %) 135 135 |=(% rowspan="2" %)**Processing item**|=(% colspan="3" %)**Status of the CPU module** ... ... @@ -245,7 +245,7 @@ 245 245 *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. 246 246 247 247 (% style="text-align:center" %) 248 -[[image: image-20220926104203-1.jpeg||class="img-thumbnail"]]250 +[[image:1652247397997-492.png||class="img-thumbnail"]] 249 249 250 250 When it is the turn of the execution sequence of event execution type program C and Y50 is ON, the program is executed. 251 251 ... ... @@ -432,7 +432,7 @@ 432 432 [[image:1-20.png||class="img-thumbnail"]] 433 433 434 434 (% class="table-bordered" %) 435 -| =(% colspan="2" %)**Project**|=**Content**|=**Setting range**|=**Default**437 +|(% colspan="2" %)**Project**|**Content**|**Setting range**|**Default** 436 436 |(% colspan="2" %)Execution type|Select the type of interrupt|Not set/External input interrupt/Timer event/high-speed counter interrupt|Not set 437 437 |(% rowspan="2" %)Timer interrupt|Time|Set the interval time for interrupt triggering|1 to 2147483647 (100us unit)| 438 438 |priority|When multiple interrupts arrive at the same time, the order of priority execution, the smallest value is executed first|0 to 2|0 ... ... @@ -470,7 +470,7 @@ 470 470 [[image:1-23.png||class="img-thumbnail"]] 471 471 472 472 (% class="table-bordered" %) 473 -| =(% colspan="2" %)**Project**|=**Content**|=**Setting range**|=**Default**475 +|(% colspan="2" %)**Project**|**Content**|**Setting range**|**Default** 474 474 |(% colspan="2" %)Execution type|Select the type of interrupt|Not set, External input interrupt, Timer event, high-speed counter interrupt|Not set 475 475 |(% rowspan="5" %)High count interrupt|Mode|((( 476 476 Select the type of high-speed counter interrupt: ... ... @@ -501,7 +501,7 @@ 501 501 Description of triggering rules 502 502 503 503 (% class="table-bordered" %) 504 -| =(% style="width:;" %)**Mode**|=(% style="width:;" %)**Configuration**|=(% style="width:;" %)**The current value**|=(% style="width:;" %)**Action**506 +|(% style="width:135px" %)**Mode**|(% style="width:187px" %)**Configuration**|(% style="width:128px" %)**The current value**|(% style="width:324px" %)**Action** 505 505 |(% 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 506 506 |(% style="width:128px" %)10001 → 10000|(% style="width:324px" %)Execute all programs in interrupt INT0 507 507 |(% rowspan="2" style="width:135px" %)High-speed comparison set (INT1)|(% rowspan="2" style="width:187px" %)((( ... ... @@ -594,38 +594,38 @@ 594 594 595 595 (% class="table-bordered" %) 596 596 |=(% colspan="4" %)**Timer interrupt mask register** 597 -|= (% style="width: 262px;" %)**Special register number**|=(% style="width: 309px;" %)**Type of interrupt**|=(% style="width: 394px;" %)**Instruction**|=(% style="width: 110px;" %)**Default**598 -| (% style="width:262px" %)SD350|(% style="width:309px" %)1st to 16th timer interrupt|(% style="width:394px" %)(((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" %)((( 599 599 Each bit can control the mask of an interrupt. 600 600 601 601 ON: shield interrupts; OFF: interrupt allowed 602 602 )))|(% style="width:110px" %)0 603 -| (% style="width:262px" %)SD351|(% style="width:309px" %)17th to 32th timer interrupt|(% style="width:394px" %)(((605 +|SD351|(% style="width:311px" %)17th to 32th timer interrupt|(% style="width:391px" %)((( 604 604 Each bit can control the mask of an interrupt. 605 605 606 606 ON: shield interrupts; OFF: interrupt allowed 607 607 )))|(% style="width:110px" %)0 608 -| (% style="width:262px" %)SD352|(% style="width:309px" %)33th to 48th timer interrupt|(% style="width:394px" %)(((610 +|SD352|(% style="width:311px" %)33th to 48th timer interrupt|(% style="width:391px" %)((( 609 609 Each bit can control the mask of an interrupt. 610 610 611 611 ON: shield interrupts; OFF: interrupt allowed 612 612 )))|(% style="width:110px" %)0 613 -| (% style="width:262px" %)SD353|(% style="width:309px" %)49th to 64th timer interrupt|(% style="width:394px" %)(((615 +|SD353|(% style="width:311px" %)49th to 64th timer interrupt|(% style="width:391px" %)((( 614 614 Each bit can control the mask of an interrupt. 615 615 616 616 ON: shield interrupts; OFF: interrupt allowed 617 617 )))|(% style="width:110px" %)0 618 -| (% style="width:262px" %)SD354|(% style="width:309px" %)65th to 80th timer interrupt|(% style="width:394px" %)(((620 +|SD354|(% style="width:311px" %)65th to 80th timer interrupt|(% style="width:391px" %)((( 619 619 Each bit can control the mask of an interrupt. 620 620 621 621 ON: shield interrupts; OFF: interrupt allowed 622 622 )))|(% style="width:110px" %)0 623 -| (% style="width:262px" %)SD355|(% style="width:309px" %)81st to 96th timer interrupt|(% style="width:394px" %)(((625 +|SD355|(% style="width:311px" %)81st to 96th timer interrupt|(% style="width:391px" %)((( 624 624 Each bit can control the mask of an interrupt. 625 625 626 626 ON: shield interrupts; OFF: interrupt allowed 627 627 )))|(% style="width:110px" %)0 628 -| (% style="width:262px" %)SD356|(% style="width:309px" %)97th to 100th timer interrupt|(% style="width:394px" %)(((630 +|SD356|(% style="width:311px" %)97th to 100th timer interrupt|(% style="width:391px" %)((( 629 629 Each bit can control the mask of an interrupt. 630 630 631 631 ON: shield interrupts; OFF: interrupt allowed ... ... @@ -702,75 +702,78 @@ 702 702 703 703 == Positioning instructions == 704 704 705 -(% class="wikigeneratedid" %) 706 -**Event** 707 + ~1. Event 707 707 708 -(% class="wikigeneratedid" %) 709 -ON event 709 + 1.ON event 710 710 711 - *If the high-speed pulse instruction is turned on during the ON event, the high-speed pulse instruction will be sent as normal. If the ON contact of the trigger event in the scan period is turned OFF during the pulse sending, select whether to continue sending the pulse or stop the pulse according to the unscanned processing flag bit.711 +If the high-speed pulse instruction is turned on during the ON event, the high-speed pulse instruction will be sent as normal. If the ON contact of the trigger event in the scan period is turned OFF during the pulse sending, select whether to continue sending the pulse or stop the pulse according to the unscanned processing flag bit. 712 712 713 713 (% class="table-bordered" %) 714 -| =(% scope="row" %)**Output shaft**|Y0|Y1|Y2|Y3|Y4|Y5|Y6|Y7715 -| =**Not scanned flag bit**|SM899|SM959|SM1019|SM1079|SM1139|SM1199|SM1259|SM1319714 +|**Output shaft**|Y0|Y1|Y2|Y3|Y4|Y5|Y6|Y7 715 +|**Not scanned flag bit**|SM899|SM959|SM1019|SM1079|SM1139|SM1199|SM1259|SM1319 716 716 717 -* When the flag bit is 0 (continue to send pulse), if the instruction is not scanned in the current scan cycle, continue to send pulses until it stops. At this time, it should be noted that if the trigger event OFF contact turns ON after the pulse is sent, the pulse will be sent again. 718 -* When the flag bit is 1 (stop sending pulses), if the trigger event ON contact turns OFF in a certain scan period, it will decelerate and stop. 717 +When the flag bit is 0 (continue to send pulse), if the instruction is not scanned in the current scan cycle, continue to send pulses until it stops. At this time, it should be noted that if the trigger event OFF contact turns ON after the pulse is sent, the pulse will be sent again. 719 719 720 - TIMEevent719 +When the flag bit is 1 (stop sending pulses), if the trigger event ON contact turns OFF in a certain scan period, it will decelerate and stop. 721 721 722 - *Ifthehigh-speedpulseinstructionisturned on in theTIME event, the high-speed pulse instruction will be sent as normal. If the instruction is not scanned in a certain scan period during the pulse transmission, select whether to continue sending the pulse or stop the pulse according to the unscanned processing flag bit.721 + 2. TIME event 723 723 723 +If the high-speed pulse instruction is turned on in the TIME event, the high-speed pulse instruction will be sent as normal. If the instruction is not scanned in a certain scan period during the pulse transmission, select whether to continue sending the pulse or stop the pulse according to the unscanned processing flag bit. 724 + 724 724 (% class="table-bordered" %) 725 -| =(% scope="row" %)**Output shaft**|Y0|Y1|Y2|Y3|Y4|Y5|Y6|Y7726 -| =**Not scanned flag bit**|SM899|SM959|SM1019|SM1079|SM1139|SM1199|SM1259|SM1319726 +|**Output shaft**|Y0|Y1|Y2|Y3|Y4|Y5|Y6|Y7 727 +|**Not scanned flag bit**|SM899|SM959|SM1019|SM1079|SM1139|SM1199|SM1259|SM1319 727 727 728 -* When the flag bit is 0 (continue to send pulse), if the instruction is not scanned in the current scan cycle, the pulse will continue to be sent until it stops. In the TIME event, it is impossible to ensure that the instruction is scanned in every scan cycle, so you should avoid using high-speed pulse instructions in the TIME time, otherwise the pulse will be sent again after the pulse is sent. 729 -* When the flag bit is 1 (stop sending pulses), if the instruction is not scanned in the current scan cycle, it will decelerate and stop. In the TIME event, if the flag bit is set to 1 (stop sending pulses), there will be no pulse sending. 729 +When the flag bit is 0 (continue to send pulse), if the instruction is not scanned in the current scan cycle, the pulse will continue to be sent until it stops. In the TIME event, it is impossible to ensure that the instruction is scanned in every scan cycle, so you should avoid using high-speed pulse instructions in the TIME time, otherwise the pulse will be sent again after the pulse is sent. 730 730 731 - **Subroutine**731 +When the flag bit is 1 (stop sending pulses), if the instruction is not scanned in the current scan cycle, it will decelerate and stop. In the TIME event, if the flag bit is set to 1 (stop sending pulses), there will be no pulse sending. 732 732 733 + 2. Subroutine 734 + 733 733 If the high-speed pulse instruction is turned on in the subroutine, the high-speed pulse instruction will be sent as normal. If the scanning period is closed during pulse sending, select whether to continue sending or stop the pulse according to the unscanned processing flag. 734 734 735 735 (% class="table-bordered" %) 736 -| =(% scope="row" %)**Output shaft**|Y0|Y1|Y2|Y3|Y4|Y5|Y6|Y7737 -| =**Not scanned flag bit**|SM899|SM959|SM1019|SM1079|SM1139|SM1199|SM1259|SM1319738 +|**Output shaft**|Y0|Y1|Y2|Y3|Y4|Y5|Y6|Y7 739 +|**Not scanned flag bit**|SM899|SM959|SM1019|SM1079|SM1139|SM1199|SM1259|SM1319 738 738 739 739 When the flag bit is 0 (continue to send pulse), if the instruction is not scanned in the current scan cycle, the pulse will continue to be sent until it stops. At this time, it should be noted that if the subroutine is called again after the pulse is sent, the pulse will be sent again. 740 740 741 741 When the flag bit is 1 (stop sending pulses), if the subroutine is closed during high-speed pulse sending, the speed will decelerate and stop. If the subroutine is closed before sending the pulse, then no pulse is sent. 742 742 743 - **Interrupt**745 + 3. Interrupt 744 744 745 -External interrupt 747 +1. External interrupt 746 746 747 - *If the high-speed pulse instruction is enabled in the external interrupt, the high-speed pulse instruction selects whether the pulse continues to be sent or the pulse stops according to the unscanned processing flag bit.749 +If the high-speed pulse instruction is enabled in the external interrupt, the high-speed pulse instruction selects whether the pulse continues to be sent or the pulse stops according to the unscanned processing flag bit. 748 748 749 749 (% class="table-bordered" %) 750 -| =(% scope="row" %)**Output shaft**|Y0|Y1|Y2|Y3|Y4|Y5|Y6|Y7751 -| =**Not scanned flag bit**|SM899|SM959|SM1019|SM1079|SM1139|SM1199|SM1259|SM1319752 +|**Output shaft**|Y0|Y1|Y2|Y3|Y4|Y5|Y6|Y7 753 +|**Not scanned flag bit**|SM899|SM959|SM1019|SM1079|SM1139|SM1199|SM1259|SM1319 752 752 753 -* When the flag bit is 0 (continue to send pulse), continue to send high-speed pulses until it stops. 754 -* When the flag bit is 1 (stop sending pulse), the high-speed pulse decelerates and stops. 755 +When the flag bit is 0 (continue to send pulse), continue to send high-speed pulses until it stops. 755 755 756 - Timerinterrupt757 +When the flag bit is 1 (stop sending pulse), the high-speed pulse decelerates and stops. 757 757 758 - *Ifthehigh-speedpulseinstructionisturnedonin the timer interruption, the high-speed pulse instruction is sent as normal. If the instruction is not scanned in a certain scan period in the pulse transmission, the pulse continues to be sent or the pulse stops is selected according to the unscanned processing flag.759 + 2. Timer interrupt 759 759 761 +If the high-speed pulse instruction is turned on in the timer interruption, the high-speed pulse instruction is sent as normal. If the instruction is not scanned in a certain scan period in the pulse transmission, the pulse continues to be sent or the pulse stops is selected according to the unscanned processing flag. 762 + 760 760 (% class="table-bordered" %) 761 -| =(% scope="row" %)**Output axis**|Y0|Y1|Y2|Y3|Y4|Y5|Y6|Y7762 -| =**Not scanned flag bit**|SM899|SM959|SM1019|SM1079|SM1139|SM1199|SM1259|SM1319764 +|**Output axis**|Y0|Y1|Y2|Y3|Y4|Y5|Y6|Y7 765 +|**Not scanned flag bit**|SM899|SM959|SM1019|SM1079|SM1139|SM1199|SM1259|SM1319 763 763 764 -* When the flag bit is 0 (continue to send pulse), if the instruction is not scanned in the current scan cycle, continue to send pulses until it stops. In the timer interrupt, it is impossible to ensure that the instruction is scanned in every scan cycle, so it is necessary to avoid using high-speed pulse instructions in the T timer interrupt. Otherwise, after the pulse transmission is completed, the pulse will be sent again. 765 -* When the flag bit is 1 (stop sending pulses), if the instruction is not scanned in the current scan cycle, it will decelerate and stop. In the TIME event, if the flag bit is set to 1 (stop sending pulses), there will be no pulse sending. 767 +When the flag bit is 0 (continue to send pulse), if the instruction is not scanned in the current scan cycle, continue to send pulses until it stops. In the timer interrupt, it is impossible to ensure that the instruction is scanned in every scan cycle, so it is necessary to avoid using high-speed pulse instructions in the T timer interrupt. Otherwise, after the pulse transmission is completed, the pulse will be sent again. 766 766 767 - High-speedcomparison interrupt769 +When the flag bit is 1 (stop sending pulses), if the instruction is not scanned in the current scan cycle, it will decelerate and stop. In the TIME event, if the flag bit is set to 1 (stop sending pulses), there will be no pulse sending. 768 768 769 - *Ifthehigh-speedpulseinstructionisenabledin the high-speed comparison interrupt, the high-speed pulse instruction selects whether the pulse continues to be sent or the pulse stops according to the unscanned processing flag.771 + 3.High-speed comparison interrupt 770 770 773 +If the high-speed pulse instruction is enabled in the high-speed comparison interrupt, the high-speed pulse instruction selects whether the pulse continues to be sent or the pulse stops according to the unscanned processing flag. 774 + 771 771 (% class="table-bordered" %) 772 -| =(% scope="row" %)**Output axis**|Y0|Y1|Y2|Y3|Y4|Y5|Y6|Y7773 -| =**Not scanned flag bit**|SM899|SM959|SM1019|SM1079|SM1139|SM1199|SM1259|SM1319776 +|**Output axis**|Y0|Y1|Y2|Y3|Y4|Y5|Y6|Y7 777 +|**Not scanned flag bit**|SM899|SM959|SM1019|SM1079|SM1139|SM1199|SM1259|SM1319 774 774 775 -* When the flag bit is 0 (continue to send pulse), continue to send high-speed pulses until it stops. 776 -* When the flag bit is 1 (stop sending pulse), the high-speed pulse decelerates and stops. 779 +When the flag bit is 0 (continue to send pulse), continue to send high-speed pulses until it stops. 780 + 781 +When the flag bit is 1 (stop sending pulse), the high-speed pulse decelerates and stops.
- image-20220926104203-1.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Stone - Size
-
... ... @@ -1,1 +1,0 @@ 1 -105.7 KB - Content