Changes for page 04 Program Flow

Last modified by Iris on 2026/04/08 11:43

From version 1.1
edited by Wecon
on 2025/09/03 21:02
Change comment: Imported from XAR
To version 2.1
edited by Iris
on 2026/04/08 11:43
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Wecon
1 +XWiki.Iris
Content
... ... @@ -176,7 +176,7 @@
176 176  
177 177  3) The relationship between CJ instruction and MC to MCR jump
178 178  
179 -The relationship between the main control instruction and the jump instruction and the action content are as follows.
179 +The relationship between the main control instruction and the jump instruction and the action content is as follows.
180 180  
181 181  However, since the operation of ②, ④, and ⑤ will become complicated, please avoid using them.
182 182  
... ... @@ -223,7 +223,7 @@
223 223  
224 224  **Features**
225 225  
226 -When the CALL(P) instruction is executed, the subroutine of the pointer (P) will be executed. (P) can only write the name of the newly created subprogram, if the program name does not exist, the ladder diagram compilation fails.
226 +When the CALL(P) instruction is executed, the subroutine of the pointer (P) will be executed. (P) can only be written with the name of the newly created subroutine, if the program name does not exist, the ladder diagram compilation fails.
227 227  
228 228  (% style="text-align:center" %)
229 229  [[image:100.png]]
... ... @@ -239,13 +239,13 @@
239 239  {{info}}
240 240  **✎Note: **
241 241  
242 -• Multiple CALL(P) instructions can call the same subprogram, but subprograms with the same program name are not allowed.
242 +• Multiple CALL(P) instructions can call the same subroutine, but subroutines with the same program name are not allowed.
243 243  
244 244  • Use program timers in subroutines (the same applies to interrupt programs). This timer counts when the coil instruction or the END instruction is executed. If it reaches the timer setting value, the output contact will act when the coil instruction or END instruction is executed. Generally, the timer only counts when the coil instruction is executed, so if it is used in a subroutine that executes the coil instruction under certain conditions, it will not count.
245 245  
246 246  • 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.
247 247  
248 -• 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.
248 +• The devices that are turned on in the subroutine (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.
249 249  {{/info}}
250 250  
251 251