Changes for page 04 Program flow

Last modified by Devin Chen on 2024/01/28 11:38

From version 6.6
edited by Stone Wu
on 2022/07/28 16:17
Change comment: Update document after refactoring.
To version 8.1
edited by Mora Zhou
on 2023/11/22 15:48
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
... ... @@ -38,6 +38,8 @@
38 38  1. Each scan is executed.
39 39  1. One scan is executed.
40 40  
41 +(% class="box infomessage" %)
42 +(((
41 41  **✎Note: **
42 42  
43 43  After turning ON the coil of the timer, if the timer whose coil is ON is jumped by the CJ(P) instruction, the measurement will not be performed normally.
... ... @@ -45,6 +45,7 @@
45 45  When the OUT instruction is jumped by the CJ(P) instruction, the scan time will be shorter.
46 46  
47 47  When the CJ(P) instruction is used to jump backward, the scan time will be longer.
50 +)))
48 48  
49 49  For the CJ(P) instruction, you can jump to a step smaller than the step number being executed. However, in order to avoid the time limit of the watchdog timer, a method of jumping out of the loop during this period should be considered.
50 50  
... ... @@ -238,6 +238,8 @@
238 238  (% style="text-align:center" %)
239 239  [[image:4_html_29c8e378dfb34066.png||class="img-thumbnail"]]
240 240  
244 +(% class="box infomessage" %)
245 +(((
241 241  **✎Note: **
242 242  
243 243  • Multiple CALL(P) instructions can call the same subprogram, but subprograms with the same program name are not allowed.
... ... @@ -247,6 +247,7 @@
247 247  • If the 1ms accumulative timer is used in a subroutine (the same in an interrupt program), when it reaches the set value, the output contact will act when the first coil instruction is executed (when the subroutine is executed), so be careful.
248 248  
249 249  • The devices that are turned on in the subprogram (the same in the interrupt program) will be retained after the program ends. Therefore, these devices should be reset in the main program after the end of the program.
255 +)))
250 250  
251 251  **Error code**
252 252