Changes for page 12 Clock operation

Last modified by Mora Zhou on 2023/11/21 17:27

From version 1.2
edited by Joey
on 2022/06/09 15:22
Change comment: (Autosaved)
To version 1.6
edited by Joey
on 2022/06/09 15:42
Change comment: (Autosaved)

Summary

Details

Page properties
Content
... ... @@ -74,38 +74,38 @@
74 74  **Example**
75 75  
76 76  (((
77 -(1) When the current value of counter C10 is 200, Y10 is set
77 +(1) LD£ instruction:
78 78  
79 -When the content of D200 is above -29, and X1 is ON, Y11 is set
80 -
81 -LD£ instruction:
82 -
83 83  (% style="text-align:center" %)
84 84  [[image:07-5 Basic instructions_html_1309199eccc7134.png]]
85 85  )))
86 86  
87 -(2) AND£ instruction
83 +When the current value of counter C10 is 200, Y10 is set
88 88  
89 -(((
90 -When X0 is ON, or when the current value of counter C10 is 200, Y10 is set
85 +When the content of D200 is above -29, and X1 is ON, Y11 is set
91 91  
92 -When X1 is OFF, and the content of data counter D0 is not -10, Y11 is set
87 +(2) AND£ instruction:
93 93  
94 94  (% style="text-align:center" %)
95 95  [[image:07-5 Basic instructions_html_1c966f74b0bd808e.png]]
96 96  
92 +(((
93 +When X0 is ON, or when the current value of counter C10 is 200, Y10 is set
94 +
95 +When X1 is OFF, and the content of data counter D0 is not -10, Y11 is set
96 +
97 97  
98 98  )))
99 99  
100 100  (3) OR£ instruction:
101 101  
102 +(% style="text-align:center" %)
103 +[[image:07-5 Basic instructions_html_8b000809015ea436.png]]
104 +
102 102  (((
103 103  When X1 is ON, or when the current value of counter C10 is 200, Y0 is set
104 104  
105 105  When X2 and M30 are ON, or the content of register D100 is K10000 and above, M60 is set
106 -
107 -(% style="text-align:center" %)
108 -[[image:07-5 Basic instructions_html_8b000809015ea436.png]]
109 109  )))
110 110  
111 111  == **Signed 32-bit contact comparison instruction** ==
... ... @@ -135,30 +135,30 @@
135 135  
136 136  **Device used**
137 137  
138 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="14" %)**Devices**|(((
138 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="13" %)**Devices**|(((
139 139  **Offset modification**
140 140  )))|(((
141 141  **Pulse extension**
142 142  )))
143 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
144 -|LDD=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
145 -|LDD>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
146 -|LDD<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
147 -|LDD>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
148 -|LDD<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
149 -|LDD<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
150 -|ANDD=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
151 -|ANDD>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
152 -|ANDD<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
153 -|ANDD>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
154 -|ANDD<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
155 -|ANDD<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
156 -|ORD=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
157 -|ORD>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
158 -|ORD<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
159 -|ORD>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
160 -|ORD<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
161 -|ORD<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
143 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP**
144 +|LDD=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
145 +|LDD>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
146 +|LDD<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
147 +|LDD>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
148 +|LDD<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
149 +|LDD<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
150 +|ANDD=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
151 +|ANDD>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
152 +|ANDD<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
153 +|ANDD>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
154 +|ANDD<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
155 +|ANDD<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
156 +|ORD=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
157 +|ORD>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
158 +|ORD<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
159 +|ORD>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
160 +|ORD<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
161 +|ORD<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|
162 162  
163 163  **Features**
164 164  
... ... @@ -183,12 +183,16 @@
183 183  
184 184  (1) LDD£ instruction:
185 185  
186 +(% style="text-align:center" %)
187 +[[image:07-5 Basic instructions_html_8acf0d489297c561.png]]
188 +
186 186  When the data of LC10 is 200000, Y10 is set, otherwise Y10 is reset.
187 187  
188 188  When the 32-bit data composed of D201 and D200 exceeds -5000, and X1 is ON, Y11 is turned ON.
189 189  
190 -1. ANDD£ instruction:
193 +(2) ANDD£ instruction:
191 191  
195 +(% style="text-align:center" %)
192 192  [[image:07-5 Basic instructions_html_38be93eec0ced6c.png]]
193 193  
194 194  When X0 is ON and the value of LC10 is 200000, Y10 is set, otherwise it is reset.
... ... @@ -195,8 +195,9 @@
195 195  
196 196  When X1 is OFF and the 32-bit data composed of D1 and D0 is not equal to K-50000, Y11 is set.
197 197  
198 -1. ORD£ instruction:
202 +(3) ORD£ instruction:
199 199  
204 +(% style="text-align:center" %)
200 200  [[image:07-5 Basic instructions_html_8ebfc7b0562cf370.png]]
201 201  
202 202  When X1 is ON, or the data of LC10 is equal to the data of LC10 is equal to 200000, Y0 is set.
... ... @@ -203,21 +203,22 @@
203 203  
204 204  When X2 and M30 are set, or the double word data composed of D101 and D100 is greater than or equal to 100000, M60 is set.
205 205  
206 -{{id name="_Toc28789"/}}{{id name="_Toc29577"/}}**Single precision real number contact comparison instruction**
211 +== **Single precision real number contact comparison instruction** ==
207 207  
208 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **LDE £, ANDE £, ORE £**
213 +**LDE £, ANDE £, ORE £**
209 209  
210 210  The single precision real number of the device specified in (s1) and the single precision real number of the device specified in (s2) are compared by normal open contact processing.
211 211  
212 -LDE: Normally open contact comparison command
217 +LDE£: Normally open contact comparison command
213 213  
214 -ANDE: Normally open contact series link comparison instruction
219 +ANDE£: Normally open contact series link comparison instruction
215 215  
216 -ORE: Normally open contact parallel link comparison instruction
221 +ORE£: Normally open contact parallel link comparison instruction
217 217  
218 218  **Ladder diagram**
219 219  
220 -[[image:07-5 Basic instructions_html_6ac28f30e24ad296.png]]
225 +(% style="text-align:center" %)
226 +[[image:07-5 Basic instructions_html_6ac28f30e24ad296.png||height="352" width="550"]]
221 221  
222 222  “=”, “<>”, “>”, “<”, “>=”, “<=” can be input in “£”
223 223  
... ... @@ -224,39 +224,35 @@
224 224  **Content, range and data type**
225 225  
226 226  |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
227 -|(s1)|{{id name="OLE_LINK28"/}}Comparison data or the device start number storing the comparison data|{{id name="OLE_LINK339"/}}0, 2^^-126^^ ≤~|(s)~|< 2^^128^^|Single precision real number|ANYREAL_32
233 +|(s1)|Comparison data or the device start number storing the comparison data|0, 2^^-126^^ ≤~|(s)~|< 2^^128^^|Single precision real number|ANYREAL_32
228 228  |(s2)|Comparison data or the device start number storing the comparison data|0, 2^^-126^^ ≤~|(s)~|< 2^^128^^|Single precision real number|ANYREAL_32
229 229  
230 230  **Device used**
231 231  
232 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
233 -**Offset**
234 -
235 -**modification**
238 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="8" %)**Devices**|(((
239 +**Offset modification**
236 236  )))|(((
237 -**Pulse**
238 -
239 -**extension**
241 +**Pulse extension**
240 240  )))
241 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
242 -|LDE=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
243 -|LDE>|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
244 -|LDE<|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
245 -|LDE>=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
246 -|LDE<=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
247 -|LDE<>|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
248 -|ANDE=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
249 -|ANDE>|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
250 -|ANDE<|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
251 -|ANDE>=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
252 -|ANDE<=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
253 -|ANDE<>|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
254 -|ORE=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
255 -|ORD>|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
256 -|ORE<|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
257 -|ORE>=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
258 -|ORE<=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
259 -|ORE<>|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
243 +|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**E**|**[D]**|**XXP**
244 +|LDE=|s1, s2|●|●|●|●|●|●|●|●|●|
245 +|LDE>|s1, s2|●|●|●|●|●|●|●|●|●|
246 +|LDE<|s1, s2|●|●|●|●|●|●|●|●|●|
247 +|LDE>=|s1, s2|●|●|●|●|●|●|●|●|●|
248 +|LDE<=|s1, s2|●|●|●|●|●|●|●|●|●|
249 +|LDE<>|s1, s2|●|●|●|●|●|●|●|●|●|
250 +|ANDE=|s1, s2|●|●|●|●|●|●|●|●|●|
251 +|ANDE>|s1, s2|●|●|●|●|●|●|●|●|●|
252 +|ANDE<|s1, s2|●|●|●|●|●|●|●|●|●|
253 +|ANDE>=|s1, s2|●|●|●|●|●|●|●|●|●|
254 +|ANDE<=|s1, s2|●|●|●|●|●|●|●|●|●|
255 +|ANDE<>|s1, s2|●|●|●|●|●|●|●|●|●|
256 +|ORE=|s1, s2|●|●|●|●|●|●|●|●|●|
257 +|ORD>|s1, s2|●|●|●|●|●|●|●|●|●|
258 +|ORE<|s1, s2|●|●|●|●|●|●|●|●|●|
259 +|ORE>=|s1, s2|●|●|●|●|●|●|●|●|●|
260 +|ORE<=|s1, s2|●|●|●|●|●|●|●|●|●|
261 +|ORE<>|s1, s2|●|●|●|●|●|●|●|●|●|
260 260  
261 261  **Features**
262 262  
... ... @@ -275,13 +275,14 @@
275 275  **Error code**
276 276  
277 277  |**Error code**|**Content**
278 -|4084H|{{id name="OLE_LINK340"/}}When the content of the specified device by (s1) and (s2) is an irregular number, a non-number, or ±∞
279 -|4085H|{{id name="OLE_LINK343"/}}The read address of (s1) and (s2exceeds the device range
280 +|4084H|When the content of the specified device by (s1) and (s2) is an irregular number, a non-number, or ±∞
281 +|4085H|The read address of (s1) and (s2exceeds the device range
280 280  
281 281  **Example**
282 282  
283 -1. LDE£ instruction:
285 +(1) LDE£ instruction:
284 284  
287 +(% style="text-align:center" %)
285 285  [[image:07-5 Basic instructions_html_c4c820cf59601493.png]]
286 286  
287 287  When the real number input in D0 is equal to E1.23, Y10 is ON, otherwise Y10 is OFF.
... ... @@ -290,33 +290,36 @@
290 290  
291 291  If the input in D0, R0, LC0 is not a real number, it will report H4084 error.
292 292  
293 -1. ANDE£ instruction:
296 +(2) ANDE£ instruction:
294 294  
298 +(% style="text-align:center" %)
295 295  [[image:07-5 Basic instructions_html_7cdd2117360e179b.png]]
296 296  
297 297  Only when M0 is ON and D2 real number is not equal to E1.23 and R2 real number is less than real number LC2 , Y12 is ON, otherwise all are OFF.
298 298  
299 -1. ORE£ instruction:
303 +(3) ORE£ instruction:
300 300  
305 +(% style="text-align:center" %)
301 301  [[image:07-5 Basic instructions_html_3eba0bd56176441d.png]]
302 302  
303 303  When the real number of R4 is less than or equal to the real number of R15, or the real number R6 is equal to the real number R20, Y13 is ON, otherwise Y13 is OFF.
304 304  
305 -{{id name="_Toc16295"/}}{{id name="_Toc20251"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **String comparison**
310 +== **String comparison** ==
306 306  
307 307  **LDS£、ANDS£、 ORS£**
308 308  
309 -{{id name="OLE_LINK27"/}}Compare the string stored after the device number specified in (s1) with the string stored after the device number specified in (s2).
314 +Compare the string stored after the device number specified in (s1) with the string stored after the device number specified in (s2).
310 310  
311 311  LDS£: String comparison instruction
312 312  
313 313  ANDS£: String serial connection comparison instruction
314 314  
315 -{{id name="OLE_LINK341"/}}ORS£: String parallel connection comparison instruction
320 +ORS£: String parallel connection comparison instruction
316 316  
317 317  **Ladder diagram**
318 318  
319 -[[image:07-5 Basic instructions_html_5fb3b3b70645fef5.png]]
324 +(% style="text-align:center" %)
325 +[[image:07-5 Basic instructions_html_5fb3b3b70645fef5.png||height="371" width="550"]]
320 320  
321 321  “=” and “<>” could be entered in “£”
322 322  
... ... @@ -323,27 +323,23 @@
323 323  **Content, range and data type**
324 324  
325 325  |**Parameter**|**Content**|**Range**|**Date type**|**Date type(label)**
326 -|(S1)|{{id name="OLE_LINK342"/}}Connection data or the device start number storing the data or the string specified directly|-|String|ANYSTRING_SINGLE
327 -|(S1)|Connection data or the device start number storing the data or the string specified directly|-|{{id name="OLE_LINK29"/}}String|ANYSTRING_SINGLE
332 +|(S1)|Connection data or the device start number storing the data or the string specified directly|-|String|ANYSTRING_SINGLE
333 +|(S1)|Connection data or the device start number storing the data or the string specified directly|-|String|ANYSTRING_SINGLE
328 328  
329 329  **Device used**
330 330  
331 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
332 -**Offset**
333 -
334 -**modification**
337 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|(((
338 +**Offset modification**
335 335  )))|(((
336 -**Pulse**
337 -
338 -**extension**
340 +**Pulse extension**
339 339  )))
340 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
341 -|LDS=|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
342 -|LDS<>|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
343 -|ANDS=|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
344 -|ANDS<>|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
345 -|ORS=|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
346 -|ORS<>|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
342 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
343 +|LDS=|s1、s2|●|●|●|●|●|●|●|●|●|●|
344 +|LDS<>|s1、s2|●|●|●|●|●|●|●|●|●|●|
345 +|ANDS=|s1、s2|●|●|●|●|●|●|●|●|●|●|
346 +|ANDS<>|s1、s2|●|●|●|●|●|●|●|●|●|●|
347 +|ORS=|s1、s2|●|●|●|●|●|●|●|●|●|●|
348 +|ORS<>|s1、s2|●|●|●|●|●|●|●|●|●|●|
347 347  
348 348  **Features**
349 349  
... ... @@ -352,7 +352,7 @@
352 352  • The comparison operation result of each instruction is shown below.
353 353  
354 354  |**Instruction sign**|**Condition**|**Comparison operation result**|**Instruction sign**|**Condition**|**Comparison operation result**
355 -|= |(s1)=(s2)|(% rowspan="2" %)On stat|= |(s1)≠(s2)|(% rowspan="2" %)Non-conduction state
357 +|==|(s1)=(s2)|(% rowspan="2" %)On stat|==|(s1)≠(s2)|(% rowspan="2" %)Non-conduction state
356 356  |<>|(s1)≠(s2)|<>|(s1)=(s2)
357 357  
358 358  **Error code**
... ... @@ -364,21 +364,24 @@
364 364  
365 365  **Example**
366 366  
367 -1. 1、LDS£ instruction
369 +(1) LDS£ instruction:
368 368  
371 +(% style="text-align:center" %)
369 369  [[image:07-5 Basic instructions_html_449a071f61ff5b58.png]]
370 370  
371 -1. ANDS£ instruction
374 +(2) ANDS£ instruction:
372 372  
376 +(% style="text-align:center" %)
373 373  [[image:07-5 Basic instructions_html_dd6aa995d193bdd2.png]]
374 374  
375 -1. ORS£ instruction
379 +(3) ORS£ instruction:
376 376  
381 +(% style="text-align:center" %)
377 377  [[image:07-5 Basic instructions_html_4f8fb7c94f87c58d.png]]
378 378  
379 -{{id name="_Toc11737"/}}[[image:07-5 Basic instructions_html_a2e3294e01b2f206.gif]] **7.12 Clock operation instruction**
384 += **Clock operation instruction** =
380 380  
381 -{{id name="_Toc9100"/}}{{id name="_Toc26958"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TADD/The addition of clock data**
386 +== **TADD/The addition of clock data** ==
382 382  
383 383  **TADD(P)**
384 384  
... ... @@ -389,7 +389,7 @@
389 389  **Content, range and data type**
390 390  
391 391  |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
392 -|(s1)|{{id name="OLE_LINK345"/}}The device start number that stores the added time data|-|Signed BIN 16 bit|(((
397 +|(s1)|The device start number that stores the added time data|-|Signed BIN 16 bit|(((
393 393  ANY16_ARRAY
394 394  
395 395  (number of elements: 3)
... ... @@ -407,35 +407,34 @@
407 407  
408 408  **Device used**
409 409  
410 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
411 -**Offset**
412 -
413 -**modification**
415 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="5" %)**Devices**|(((
416 +**Offset modification**
414 414  )))|(((
415 -**Pulse**
416 -
417 -**extension**
418 +**Pulse extension**
418 418  )))
419 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
420 -|(% rowspan="3" %)TADD|Parameter 1| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
421 -|Parameter 2| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
422 -|Parameter 3| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
420 +|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
421 +|(% rowspan="3" %)TADD|Parameter 1|●|●|●|●|●|●|●
422 +|Parameter 2|●|●|●|●|●|●|●
423 +|Parameter 3|●|●|●|●|●|●|●
423 423  
424 424  **Features**
425 425  
426 426  Add the time data specified in (s1) and the time data specified in (s2), and store the result of the addition in the device number specified in (d) or later.
427 427  
428 -[[image:07-5 Basic instructions_html_37222a6e282347f9.png]]
429 +(% style="text-align:center" %)
430 +[[image:07-5 Basic instructions_html_37222a6e282347f9.png||height="79" width="750"]]
429 429  
430 430  **Example**
431 431  
432 432  When 6:32:40 and 7:48:10 are added together
433 433  
434 -[[image:07-5 Basic instructions_html_90138670198ab422.png]]
436 +(% style="text-align:center" %)
437 +[[image:07-5 Basic instructions_html_90138670198ab422.png||height="94" width="750"]]
435 435  
436 436  When the calculation result time exceeds 24 o'clock, the carry flag turns ON, and the value after 24 hours is subtracted becomes the calculation result. For example, when 14:20:30 and 20:20:20 are added, the result is not 34:40:50, but 10:40:50.
437 437  
438 -[[image:07-5 Basic instructions_html_bac419ce2dc0dc2.png]]
441 +(% style="text-align:center" %)
442 +[[image:07-5 Basic instructions_html_bac419ce2dc0dc2.png||height="91" width="750"]]
439 439  
440 440  When the calculation result is 0 (0 hour, 0 minute, 0 second), the zero flag turns on.
441 441  
... ... @@ -447,7 +447,7 @@
447 447  |SM151|Carry|It is ON when the result of the TADD(P) instruction exceeds the maximum clock data value of 23:59:59
448 448  |SM153|Zero|It is ON when the result of the TADD(P) instruction is 0:00:00
449 449  
450 -✎**Note**
454 +✎**Note:**
451 451  
452 452  The devices specified in (s1), (s2), (d) occupy 3 points respectively. Be careful not to overlap with the device used for machine control.
453 453  
... ... @@ -456,7 +456,7 @@
456 456  **Error code**
457 457  
458 458  |**Error code**|**Content**
459 -|4085H|{{id name="OLE_LINK344"/}}When reading the specified device range exceeds the corresponding device range
463 +|4085H|When reading the specified device range exceeds the corresponding device range
460 460  |4086H|When writing the specified device range exceeds the corresponding device range
461 461  |4084H|(((
462 462  When the values specified in (s1) and (s2) are other than 0 to 23
... ... @@ -466,24 +466,26 @@
466 466  
467 467  **Example**
468 468  
469 -[[image:07-5 Basic instructions_html_4f75eedee7172bbb.png]]
473 +(% style="text-align:center" %)
474 +[[image:07-5 Basic instructions_html_4f75eedee7172bbb.png||height="35" width="349"]]
470 470  
471 471  Set D0 time to 16:30:00 and D10 time to 4:30:0
472 472  
478 +(% style="text-align:center" %)
473 473  [[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]]
474 474  
481 +(% style="text-align:center" %)
475 475  [[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]]
476 476  
477 477  After the coil is turned on, the D20 time is 21:0:0
478 478  
486 +(% style="text-align:center" %)
479 479  [[image:07-5 Basic instructions_html_a9b235835aa41200.png]]
480 480  
489 +== **TSUB/The subtraction of clock data** ==
481 481  
491 +**TSUB(P)**
482 482  
483 -{{id name="_Toc6604"/}}{{id name="_Toc16422"/}}**TSUB/The subtraction of clock data**
484 -
485 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TSUB(P)**
486 -
487 487  Subtract the time data stored after the device number specified in (s1) and the time data stored after the device number specified in (s2), and store the subtraction result in the device number specified in (d) or later .
488 488  
489 489  -[TSUB (s1) (s2) (d)]
... ... @@ -509,24 +509,21 @@
509 509  
510 510  **Device used**
511 511  
512 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
513 -**Offset**
514 -
515 -**modification**
518 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="5" %)**Devices**|(((
519 +**Offset modification**
516 516  )))|(((
517 -**Pulse**
518 -
519 -**extension**
521 +**Pulse extension**
520 520  )))
521 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
522 -|(% rowspan="3" %)TSUB|Parameter 1| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
523 -|Parameter 2| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
524 -|Parameter 3| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
523 +|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
524 +|(% rowspan="3" %)TSUB|Parameter 1|●|●|●|●|●|●|●
525 +|Parameter 2|●|●|●|●|●|●|●
526 +|Parameter 3|●|●|●|●|●|●|●
525 525  
526 526  **Features**
527 527  
528 528  Subtract the time data specified in (s1) and the time data specified in (s2), and store the subtraction result in the device number specified in (d) or later.
529 529  
532 +(% style="text-align:center" %)
530 530  [[image:07-5 Basic instructions_html_5a93455e4cd8a27.png]]
531 531  
532 532  **Example**
... ... @@ -533,10 +533,12 @@
533 533  
534 534  When subtracting 10:40:20 and 3:50:10
535 535  
539 +(% style="text-align:center" %)
536 536  [[image:07-5 Basic instructions_html_2473f03fc493780c.png]]
537 537  
538 538  When the calculation result time is a negative number, the borrow flag turns on and the data +24 is the calculation result. For example, in the case of subtracting 4:50:32 and 10:42:12, the result is not -6:8:20, but 18:8:20.
539 539  
544 +(% style="text-align:center" %)
540 540  [[image:07-5 Basic instructions_html_24b998b4c3c4ec73.png]]
541 541  
542 542  When the calculation result is 0 (0 hour, 0 minute, 0 second), the zero flag turns on.
... ... @@ -547,7 +547,7 @@
547 547  |SM152|Borrow|It is ON when the result of the TSUB(P) instruction is less than 0:00:00
548 548  |SM153|Zero|It is ON when the result of the TSUB(P) instruction is at the time of 0:00:00:00
549 549  
550 -✎**Note**
555 +✎**Note:**
551 551  
552 552  • The devices specified in (s1), (s2), and (d) occupy 3 points respectively. Be careful not to overlap with the device used for machine control.
553 553  
... ... @@ -566,19 +566,23 @@
566 566  
567 567  **Example**
568 568  
569 -[[image:07-5 Basic instructions_html_e3a5d4793d3ccd2d.png]]
574 +(% style="text-align:center" %)
575 +[[image:07-5 Basic instructions_html_e3a5d4793d3ccd2d.png||height="36" width="372"]]
570 570  
571 571  Set D0 time to 16:30:00 and D10 time to 4:30:0
572 572  
579 +(% style="text-align:center" %)
573 573  [[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]]
574 574  
582 +(% style="text-align:center" %)
575 575  [[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]]
576 576  
577 577  After the coil is turned on, the D20 time is 12:00:00
578 578  
587 +(% style="text-align:center" %)
579 579  [[image:07-5 Basic instructions_html_8f93ea19ba10652b.png]]
580 580  
581 -{{id name="_Toc10358"/}}{{id name="_Toc12073"/}}[[image:07-5 Basic instructions_html_501fb256fd034ca6.gif]] **TRD/Clock data reading**
590 +**TRD/Clock data reading**
582 582  
583 583  **TRD(P)**
584 584  
... ... @@ -597,17 +597,13 @@
597 597  
598 598  **Device used**
599 599  
600 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
601 -**Offset**
602 -
603 -**modification**
609 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="4" %)**Devices**|(((
610 +**Offset modification**
604 604  )))|(((
605 -**Pulse**
606 -
607 -**extension**
612 +**Pulse extension**
608 608  )))
609 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
610 -|TRD|Parameter 1| | | | | | | | | | | | | | |●|●|●|●| | | | | | |●|●
614 +|**T**|**C**|**D**|**R**|**[D]**|**XXP**
615 +|TRD|Parameter 1|●|●|●|●|●|●
611 611  
612 612  **Features**
613 613  
... ... @@ -633,7 +633,7 @@
633 633  |SD105|The year data of the clock data is stored in a 4-digit BIN code of the Gregorian calendar.
634 634  |SD106|The week data of the clock data is stored in BIN code. (0: day, 1: one, ..., 6: six) are stored in BIN code.
635 635  
636 -✎**Note**
641 +✎**Note:**
637 637  
638 638  • The device specified in (d) occupies 7 points. Be careful not to overlap with the device used for machine control.
639 639  
... ... @@ -644,15 +644,17 @@
644 644  
645 645  **Example**
646 646  
647 -[[image:07-5 Basic instructions_html_b81c1991fec5b4b1.png]]
652 +(% style="text-align:center" %)
653 +[[image:07-5 Basic instructions_html_b81c1991fec5b4b1.png||height="68" width="250"]]
648 648  
649 649  After the M0 coil is turned on, the current date and time are read as 2020-2-19 13:10:38 Wednesday
650 650  
651 -[[image:07-5 Basic instructions_html_fe82ecd18ebfd787.png]]
657 +(% style="text-align:center" %)
658 +[[image:07-5 Basic instructions_html_fe82ecd18ebfd787.png||height="48" width="602"]]
652 652  
653 -{{id name="_Toc24237"/}}{{id name="_Toc487"/}}**TWR/Clock data writing**
660 +== **TWR/Clock data writing** ==
654 654  
655 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TWR(P)**
662 +**TWR(P)**
656 656  
657 657  Write the clock data of the built-in real-time clock of the CPU module.
658 658  
... ... @@ -665,17 +665,13 @@
665 665  
666 666  **Device used**
667 667  
668 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
669 -**Offset**
670 -
671 -**modification**
675 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="4" %)**Devices**|(((
676 +**Offset modification**
672 672  )))|(((
673 -**Pulse**
674 -
675 -**extension**
678 +**Pulse extension**
676 676  )))
677 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
678 -|TWR|Parameter 1| | | | | | | | | | | | | | |●|●|●|●| | | | | | |●|●
680 +|**T**|**C**|**D**|**R**|**[D]**|**XXP**
681 +|TWR|Parameter 1|●|●|●|●|●|●
679 679  
680 680  **Features**
681 681  
... ... @@ -710,7 +710,7 @@
710 710  |SD105|The year data of the clock data is stored in a 4-digit BIN code of the Gregorian calendar.
711 711  |SD106|The week data of the clock data is stored in BIN code. (0: day, 1: one, ..., 6: six) are stored in BIN code.
712 712  
713 -✎**Note**
716 +✎**Note:**
714 714  
715 715  The device specified in (s) occupies 7 points. Be careful not to overlap with the device used for machine control.
716 716  
... ... @@ -723,13 +723,15 @@
723 723  
724 724  Set D0 date and time to 2020-2-19 12:36:00 in advance
725 725  
726 -[[image:07-5 Basic instructions_html_994c66d1a4cbd45f.png]]
729 +(% style="text-align:center" %)
730 +[[image:07-5 Basic instructions_html_994c66d1a4cbd45f.png||height="57" width="305"]]
727 727  
728 728  At the moment when the time 12:36:00 arrives, turn on the M0 coil and write the time.
729 729  
730 -[[image:07-5 Basic instructions_html_bf3e906ee5265598.png]]
734 +(% style="text-align:center" %)
735 +[[image:07-5 Basic instructions_html_bf3e906ee5265598.png||height="42" width="586"]]
731 731  
732 -{{id name="_Toc5357"/}}{{id name="_Toc6196"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **HTOS/16-bit data conversion of time data (hour, minute, second → second)**
737 +== **HTOS/16-bit data conversion of time data (hour, minute, second → second)** ==
733 733  
734 734  **HTOS(P)**
735 735  
... ... @@ -745,26 +745,26 @@
745 745  
746 746  **Device used**
747 747  
748 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
749 -**Pulse**
750 -
751 -**extension**
753 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|**Offset modification**|(((
754 +**Pulse extension**
752 752  )))
753 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
754 -|(% rowspan="2" %)HTOS|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|●
755 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
756 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
757 +|(% rowspan="2" %)HTOS|Parameter 1|●|●|●|●|●|●|●|●|●|●|●
758 +|Parameter 2| |●|●|●|●|●|●|●|●|●|●
756 756  
757 757  **Features**
758 758  
759 759  Convert the time data stored after the device number specified in (s) into seconds and store the conversion result in the device specified in (d).
760 760  
761 -[[image:07-5 Basic instructions_html_a84b7741fd5bef2f.png]]
764 +(% style="text-align:center" %)
765 +[[image:07-5 Basic instructions_html_a84b7741fd5bef2f.png||height="130" width="550"]]
762 762  
763 763  **Example**
764 764  
765 765  When 4 hours, 29 minutes and 31 seconds are specified in (s)
766 766  
767 -[[image:07-5 Basic instructions_html_5effb7bc9b8e5cf7.png]]
771 +(% style="text-align:center" %)
772 +[[image:07-5 Basic instructions_html_5effb7bc9b8e5cf7.png||height="162" width="550"]]
768 768  
769 769  **Error code**
770 770  
... ... @@ -772,7 +772,7 @@
772 772  |4085H|When reading the specified device range exceeds the corresponding device range
773 773  |4086H|When writing the specified device range exceeds the corresponding device range
774 774  |4084H|(((
775 -{{id name="OLE_LINK348"/}}When the calculation result is not in the range of 0 to 32767
780 +When the calculation result is not in the range of 0 to 32767
776 776  
777 777  When the value specified in (s) is not in the range of 0 to 9
778 778  
... ... @@ -781,19 +781,22 @@
781 781  
782 782  **Example**
783 783  
784 -[[image:07-5 Basic instructions_html_e23e38c4ba4c34bb.png]]
789 +(% style="text-align:center" %)
790 +[[image:07-5 Basic instructions_html_e23e38c4ba4c34bb.png||height="43" width="338"]]
785 785  
786 786  D0 time is set to 5:36:53
787 787  
794 +(% style="text-align:center" %)
788 788  [[image:07-5 Basic instructions_html_2866a121e5ca5713.png]]
789 789  
790 790  The time of D10 after the M0 coil is turned on is as below.
791 791  
799 +(% style="text-align:center" %)
792 792  [[image:07-5 Basic instructions_html_1dd6c5de05890797.png]]
793 793  
794 -{{id name="_Toc13431"/}}{{id name="_Toc5278"/}}**DHTOS/32-bit data conversion of time data (hour, minute, second → second)**
802 +== **DHTOS/32-bit data conversion of time data (hour, minute, second → second)** ==
795 795  
796 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DHTOS(P)**
804 +**DHTOS(P)**
797 797  
798 798  Convert the time data stored after the device number specified in (s) into seconds and store the conversion result as BIN 32-bit data in the device specified in (d).
799 799  
... ... @@ -807,30 +807,28 @@
807 807  
808 808  **Device used**
809 809  
810 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
811 -**Offset**
812 -
813 -**modification**
818 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|(((
819 +**Offset modification**
814 814  )))|(((
815 -**Pulse**
816 -
817 -**extension**
821 +**Pulse extension**
818 818  )))
819 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
820 -|(% rowspan="2" %)DHTOS|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|●
821 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
823 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
824 +|(% rowspan="2" %)DHTOS|Parameter 1|●|●|●|●|●|●|●|●|●|●|●
825 +|Parameter 2| |●|●|●|●|●|●|●|●|●|●
822 822  
823 823  **Features**
824 824  
825 825  Convert the time data stored after the device number specified in (s) into seconds and store the conversion result in the device specified in (d).
826 826  
827 -[[image:07-5 Basic instructions_html_f4be08508575ea01.png]]
831 +(% style="text-align:center" %)
832 +[[image:07-5 Basic instructions_html_f4be08508575ea01.png||height="99" width="550"]]
828 828  
829 829  **Example**
830 830  
831 831  When 35 hours, 10 minutes and 58 seconds are specified in (s)
832 832  
833 -[[image:07-5 Basic instructions_html_5b9ad230ed5e1fd0.png]]
838 +(% style="text-align:center" %)
839 +[[image:07-5 Basic instructions_html_5b9ad230ed5e1fd0.png||height="125" width="550"]]
834 834  
835 835  **Error code**
836 836  
... ... @@ -845,17 +845,20 @@
845 845  
846 846  **Example**
847 847  
848 -[[image:07-5 Basic instructions_html_ae8ab4379e8bdb91.png]]
854 +(% style="text-align:center" %)
855 +[[image:07-5 Basic instructions_html_ae8ab4379e8bdb91.png||height="45" width="263"]]
849 849  
850 850  D0 time is set to 15:33:24
851 851  
852 -[[image:07-5 Basic instructions_html_57a15d9e1045e93e.png]]
859 +(% style="text-align:center" %)
860 +[[image:07-5 Basic instructions_html_57a15d9e1045e93e.png||height="41" width="313"]]
853 853  
854 854  The second of D10 after the M0 coil is turned on is
855 855  
856 -[[image:07-5 Basic instructions_html_194e906b1dc12078.png]]
864 +(% style="text-align:center" %)
865 +[[image:07-5 Basic instructions_html_194e906b1dc12078.png||height="64" width="365"]]
857 857  
858 -{{id name="_Ref22686"/}}{{id name="_Toc11231"/}}{{id name="_Toc7401"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **HOUR/Hour measuring 16-bit**
867 +**HOUR/Hour measuring 16-bit**
859 859  
860 860  **HOUR(P)**
861 861  
... ... @@ -880,19 +880,15 @@
880 880  
881 881  **Device used**
882 882  
883 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
884 -**Offset**
885 -
886 -**modification**
892 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="17" %)**Devices**|(((
893 +**Offset modification**
887 887  )))|(((
888 -**Pulse**
889 -
890 -**extension**
895 +**Pulse extension**
891 891  )))
892 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
893 -|(% rowspan="3" %)HOUR|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
894 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|●
895 -|Parameter 3| |●|●|●|●| | | | |●| | | | | | | | | | | | | | |●|●
897 +|**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**E**|**[D]**|**XXP**
898 +|(% rowspan="3" %)HOUR|Parameter 1| | | | | |●|●|●|●|●|●|●|●|●|●|●| |●|●
899 +|Parameter 2| | | | | | | | | | | |●|●|●| | | |●|●
900 +|Parameter 3|●|●|●|●|●| | | | | | | | | | | | |●|●
896 896  
897 897  **Features**
898 898