欢迎图片
Last modified by Iris on 2025/10/21 14:06

From version 1.3
edited by Iris
on 2025/10/21 11:44
Change comment: There is no comment for this version
To version 1.4
edited by Iris
on 2025/10/21 11:55
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -64,23 +64,25 @@
64 64  
65 65  (1) Action content
66 66  
67 -1) While registering the product number, in order to realize the first-in-first-out principle, the following introduces an example of a ladder ladder diagram that outputs the current product number.
67 + 1) While registering the product number, in order to realize the first-in-first-out principle, the following introduces an example of a ladder ladder diagram that outputs the current product number.
68 68  
69 -2) The product number is a hexadecimal number with 4 digits or less, and the maximum inventory is below 99 points.
69 + 2) The product number is a hexadecimal number with 4 digits or less, and the maximum inventory is below 99 points.
70 70  
71 71  (2) Program
72 72  
73 -1. Program 1
73 + 1) Program 1
74 74  
75 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps3.png]][[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps4.png]][[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps5.png]][[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps6.png]] [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps7.jpg]]
75 +(% style="text-align:center" %)
76 +[[image:1761018361678-654.png]]
76 76  
77 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps8.jpg]]
78 +(% style="text-align:center" %)
79 +[[image:1761018410107-778.png||height="328" width="445"]]
78 78  
79 -1. Program 2
81 + 2) Program 2
80 80  
81 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps9.jpg]] First-in-first-out data read instruction
83 +(% style="text-align:center" %)
84 +[[image:1761018480645-416.png]]
82 82  
83 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps10.jpg]]
84 84  
85 85  Turn X0 from OFF to ON, and this instruction acts according to the following numbers 1 to 3. (The content of D10 remains unchanged),
86 86  
... ... @@ -88,10 +88,8 @@
88 88  * D10 to D3 all shift one register to the right.
89 89  * The contents of pointer D1 are reduced by 1.
90 90  
93 +=== **POP/Read From the Back of the Data Table** ===
91 91  
92 -
93 -=== [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps11.png]]**6.14.2 POP/Read From the Back of the Data Table** ===
94 -
95 95  **POP(P)**
96 96  
97 97  Read the last data written by the shift write instruction (SFWR) for first in first out/first in last out control. 
... ... @@ -139,8 +139,11 @@
139 139  |(S)+(n)-2
140 140  |(S)+(n)-1
141 141  
142 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps12.jpg]]
143 143  
143 +
144 +(% style="text-align:center" %)
145 +[[image:1761018592821-392.png]]
146 +
144 144  **✎Note: **
145 145  
146 146  **✎**If the POP(P) instruction is programmed in continuous execution type, the instruction will be processed per cycle. Therefore, it may not be possible to achieve the desired action. Generally, POP(P) instruction programming should be executed with "pulse execution type" or "pulse specified contact".
... ... @@ -160,7 +160,8 @@
160 160  
161 161  **Example**
162 162  
163 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps13.jpg]]
166 +(% style="text-align:center" %)
167 +[[image:1761018612253-455.png]]
164 164  
165 165  Each time M1 is ON, for the values of D20 input first in D101 to D106, the last saved value would be saved in D10, and then the data saved number (pointer D100) will be reduced by 1.
166 166  
... ... @@ -174,13 +174,15 @@
174 174  |D105|H0000
175 175  |D106|H0000
176 176  
177 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps14.png]]
178 178  
179 179  
180 -=== **6.14.3 SFWR/Shift Write** ===
183 +(% style="text-align:center" %)
184 +[[image:1761018751619-514.png]]
181 181  
182 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps15.png]]**SFWR(P)**
186 +=== **SFWR/Shift Write** ===
183 183  
188 +**SFWR(P)**
189 +
184 184  Data writing instructions for first-in-first-out and control.
185 185  
186 186  -[SFWR (s)  ( d) (n)]
... ... @@ -212,8 +212,9 @@
212 212  
213 213  If the content of (s) is changed and executed for the second time, the content of (s) is stored to (d)+2, and the content of (d)+2 becomes (s) (in the continuous execution instruction SFWR, each operation cycle will be stored sequentially, so the pulse execution instruction SFWRP should be used for programming). After that, the data will be filled in sequentially from the right, and the number of data storage points is displayed by the content of the pointer (d).
214 214  
215 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps16.jpg]]
221 +[[image:1761018913263-720.png]]
216 216  
223 +
217 217  **Related device**
218 218  
219 219  |**Devices**|**Name**|**Content**
1761018361678-654.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Iris
Size
... ... @@ -1,0 +1,1 @@
1 +36.0 KB
Content
1761018410107-778.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Iris
Size
... ... @@ -1,0 +1,1 @@
1 +107.0 KB
Content
1761018480645-416.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Iris
Size
... ... @@ -1,0 +1,1 @@
1 +31.0 KB
Content
1761018592821-392.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Iris
Size
... ... @@ -1,0 +1,1 @@
1 +60.7 KB
Content
1761018612253-455.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Iris
Size
... ... @@ -1,0 +1,1 @@
1 +13.3 KB
Content
1761018665534-268.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Iris
Size
... ... @@ -1,0 +1,1 @@
1 +13.3 KB
Content
1761018751619-514.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Iris
Size
... ... @@ -1,0 +1,1 @@
1 +63.8 KB
Content
1761018913263-720.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Iris
Size
... ... @@ -1,0 +1,1 @@
1 +68.0 KB
Content