Changes for page 01 Program execution
Last modified by Leo Wei on 2024/12/24 22:42
To version 3.1
edited by Joey
on 2022/06/14 17:12
on 2022/06/14 17:12
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -01 1 +01 Execution of the program - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. admin1 +XWiki.Joey - Content
-
... ... @@ -3,7 +3,7 @@ 3 3 The scan configuration of the CPU module is as follows. 4 4 5 5 (% style="text-align:center" %) 6 -[[image:1-1.png|| class="img-thumbnail" height="455" width="700"]]6 +[[image:1-1.png||height="455" width="700" class="img-thumbnail"]] 7 7 8 8 == **Initialization** == 9 9 ... ... @@ -52,7 +52,7 @@ 52 52 The CPU module repeats the following processing, and the scan time is the total of the following processing and execution time. 53 53 54 54 (% style="text-align:center" %) 55 -[[image:1-2.png|| class="img-thumbnail" height="349" width="400"]]55 +[[image:1-2.png||height="349" width="400" class="img-thumbnail"]] 56 56 57 57 The initial scan time indicates the time including this processing. 58 58 ... ... @@ -69,7 +69,7 @@ 69 69 When the CPU module changes to the RUN state, the programs are executed in sequence according to the program execution type and execution sequence settings. 70 70 71 71 (% style="text-align:center" %) 72 -[[image:1652241271896-263.png|| class="img-thumbnail" height="344" width="500"]]72 +[[image:1652241271896-263.png||height="344" width="500" class="img-thumbnail"]] 73 73 74 74 **Key points** 75 75 ... ... @@ -86,7 +86,7 @@ 86 86 Each scan is executed only once from the next scan of the initial execution type program. 87 87 88 88 (% style="text-align:center" %) 89 -[[image:1-4.png|| class="img-thumbnail" height="325" width="700"]]89 +[[image:1-4.png||height="325" width="700" class="img-thumbnail"]] 90 90 91 91 When multiple scan execution type programs are executed, the execution time of the scan execution type program is the time until all scan execution type programs are executed. In addition, before the execution of the scan execution type program is completed, if an interrupt program/event execution type program/subroutine is executed, the execution time will also be included. 92 92 ... ... @@ -95,7 +95,7 @@ 95 95 "Project Management"→ "Program"→ "Scan"→ Right click to create 96 96 97 97 (% style="text-align:center" %) 98 -[[image:1-5.png|| class="img-thumbnail" height="372" width="300"]]98 +[[image:1-5.png||height="372" width="300" class="img-thumbnail"]] 99 99 100 100 * Scan the program name: the program name requires to match case, and the program name cannot use the same name with device name (the device name does not match case). 101 101 * The input of /%$@&=to`^<>?:{}[],;!*.~\~\'" is not supported. It cannot exceed 64 characters. The default name is MAINx. ... ... @@ -177,7 +177,7 @@ 177 177 1. Project management→ Program→ Parameter → Program parameter→Configuration 178 178 179 179 (% style="text-align:center" %) 180 -[[image:1-11.png|| class="img-thumbnail" height="419" width="500"]]180 +[[image:1-11.png||height="419" width="500" class="img-thumbnail"]] 181 181 182 182 Configuration instructions: 183 183 ... ... @@ -184,7 +184,7 @@ 184 184 1) Configuration interface 185 185 186 186 (% style="text-align:center" %) 187 -[[image:1-12.png|| class="img-thumbnail" height="372" width="300"]]187 +[[image:1-12.png||height="372" width="300" class="img-thumbnail"]] 188 188 189 189 2) Parameter content: 190 190 ... ... @@ -311,7 +311,7 @@ 311 311 Double-click the newly created interrupt program in the project management to start writing the interrupt execution program. As shown in the figure above, a newly created interrupt program is INT_X0_UP, and the trigger condition is configured to execute the interrupt program when the X0 rising edge is configured. If the EI instruction is used in the main program to allow interrupts, all programs in INT_X0_UP will be executed whenever X0 changes from OFF to ON , That is, D0 will increment once. 312 312 313 313 (% style="text-align:center" %) 314 -[[image:1652250056160-117.png|| class="img-thumbnail" height="215" width="500"]]314 +[[image:1652250056160-117.png||height="215" width="500" class="img-thumbnail"]] 315 315 316 316 **~ 2.Timer interrupt** 317 317