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

From version 1.1
edited by Iris
on 2025/10/21 11:38
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
Title
... ... @@ -1,1 +1,1 @@
1 -6.14
1 +6.14 Data Table Operation instructions
Content
... ... @@ -1,6 +1,6 @@
1 -=== **6.14.1 SFRD/Shift Read** ===
1 +=== **SFRD/Shift Read** ===
2 2  
3 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps1.png]]**SFRD(P)**
3 +**SFRD(P)**
4 4  
5 5  Data read instructions for first-in, first-out and control.
6 6  
... ... @@ -35,8 +35,10 @@
35 35  
36 36  The content of (s)+1 is transferred (read) to (d). At the same time, the content of the pointer (s) decreases, and the data is shifted up by 1 word each. (In the continuous execution instruction SFRD, each operation cycle will shift, so the pulse execution instruction SFRDP should be used for programming).
37 37  
38 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps2.jpg]]
38 +(% style="text-align:center" %)
39 +[[image:1761018188037-771.png]]
39 39  
41 +
40 40  **Related device **
41 41  
42 42  |**Devices**|**Name**|**Content**
... ... @@ -62,22 +62,25 @@
62 62  
63 63  (1) Action content
64 64  
65 -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.
66 -1. The product number is a hexadecimal number with 4 digits or less, and the maximum inventory is below 99 points.
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 67  
69 + 2) The product number is a hexadecimal number with 4 digits or less, and the maximum inventory is below 99 points.
70 +
68 68  (2) Program
69 69  
70 -1. Program 1
73 + 1) Program 1
71 71  
72 -[[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]]
73 73  
74 -[[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"]]
75 75  
76 -1. Program 2
81 + 2) Program 2
77 77  
78 -[[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]]
79 79  
80 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps10.jpg]]
81 81  
82 82  Turn X0 from OFF to ON, and this instruction acts according to the following numbers 1 to 3. (The content of D10 remains unchanged),
83 83  
... ... @@ -85,13 +85,11 @@
85 85  * D10 to D3 all shift one register to the right.
86 86  * The contents of pointer D1 are reduced by 1.
87 87  
93 +=== **POP/Read From the Back of the Data Table** ===
88 88  
89 -
90 -=== [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps11.png]]**6.14.2 POP/Read From the Back of the Data Table** ===
91 -
92 92  **POP(P)**
93 93  
94 -Read the last data written by the shift write instruction (SFWR) for first in first out/first in last out control.
97 +Read the last data written by the shift write instruction (SFWR) for first in first out/first in last out control. 
95 95  
96 96  -[POP  (s)  (d)  (n)]
97 97  
... ... @@ -136,8 +136,11 @@
136 136  |(S)+(n)-2
137 137  |(S)+(n)-1
138 138  
139 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps12.jpg]]
140 140  
143 +
144 +(% style="text-align:center" %)
145 +[[image:1761018592821-392.png]]
146 +
141 141  **✎Note: **
142 142  
143 143  **✎**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".
... ... @@ -157,7 +157,8 @@
157 157  
158 158  **Example**
159 159  
160 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps13.jpg]]
166 +(% style="text-align:center" %)
167 +[[image:1761018612253-455.png]]
161 161  
162 162  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.
163 163  
... ... @@ -171,13 +171,15 @@
171 171  |D105|H0000
172 172  |D106|H0000
173 173  
174 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps14.png]]
175 175  
176 176  
177 -=== **6.14.3 SFWR/Shift Write** ===
183 +(% style="text-align:center" %)
184 +[[image:1761018751619-514.png]]
178 178  
179 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps15.png]]**SFWR(P)**
186 +=== **SFWR/Shift Write** ===
180 180  
188 +**SFWR(P)**
189 +
181 181  Data writing instructions for first-in-first-out and control.
182 182  
183 183  -[SFWR (s)  ( d) (n)]
... ... @@ -209,8 +209,9 @@
209 209  
210 210  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).
211 211  
212 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps16.jpg]]
221 +[[image:1761018913263-720.png]]
213 213  
223 +
214 214  **Related device**
215 215  
216 216  |**Devices**|**Name**|**Content**
... ... @@ -307,7 +307,6 @@
307 307  |4085H|When the device specified in the read application instruction (s), (d) and (n) exceeds the corresponding device range.
308 308  |4086H|When the device specified in the write application instruction (d) exceeds the corresponding device range.
309 309  
310 -
311 311  **Example**
312 312  
313 313  [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7696\wps27.jpg]]
1761018177599-850.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Iris
Size
... ... @@ -1,0 +1,1 @@
1 +75.7 KB
Content
1761018188037-771.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Iris
Size
... ... @@ -1,0 +1,1 @@
1 +75.7 KB
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