Changes for page 12 Clock operation

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

From version 17.1
edited by Bob
on 2022/11/23 11:40
Change comment: There is no comment for this version
To version 1.1
edited by Leo Wei
on 2022/06/08 12:57
Change comment: Imported from XAR

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,0 @@
1 -12 Clock operation
Parent
... ... @@ -1,1 +1,1 @@
1 -PLC Editor2.07 Basic instructions.WebHome
1 +PLC Editor2.1 User manual.2\.1 LX5V user manual.WebHome
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Bob
1 +XWiki.admin
Content
... ... @@ -1,7 +1,393 @@
1 -== ==
1 +{{id name="_Toc8837"/}}{{id name="_Toc27289"/}}[[image:07-5 Basic instructions_html_a2e3294e01b2f206.gif]] **7.11 Contact comparison instruction**
2 2  
3 -== **TADD/The addition of clock data** ==
3 +{{id name="_Toc4956"/}}{{id name="_Toc16100"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **Signed 16-bit contact comparison instruction**
4 4  
5 +**LD £, AND £, OR £**
6 +
7 +The BIN 16-bit data of the device specified in (s1) and the BIN 16-bit data of the device specified in (s2) are compared by normal open contact processing.
8 +
9 +LD£: Normally open contact comparison instruction
10 +
11 +AND£: Normally open contact series connection comparison instruction
12 +
13 +OR£: Normally open contact parallel connection comparison instruction
14 +
15 +**Ladder diagram**
16 +
17 +[[image:07-5 Basic instructions_html_63210db6b7e1512f.png]]
18 +
19 +(You can enter "=", "<>", ">", "<", ">=", "<=" in "£")
20 +
21 +**Content, range and data type**
22 +
23 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
24 +|(s1)|Comparison data or device storing comparison data|-32768 to 32767|Signed BIN 16 bit|ANY16_S
25 +|(s2)|Comparison data or device storing comparison data|-32768 to 32767|Signed BIN 16 bit|ANY16_S
26 +
27 +**Device used**
28 +
29 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
30 +**Offset**
31 +
32 +**modification**
33 +)))|(((
34 +**Pulse**
35 +
36 +**extension**
37 +)))
38 +|**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**
39 +|LD=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
40 +|LD>|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
41 +|LD<|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
42 +|LD>=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
43 +|LD<=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
44 +|LD<>|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
45 +|AND=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
46 +|AND>|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
47 +|AND<|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
48 +|AND>=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
49 +|AND<=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
50 +|AND<>|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
51 +|OR=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
52 +|OR>|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
53 +|OR<|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
54 +|OR>=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
55 +|OR<=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
56 +|OR<>|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|
57 +
58 +**Features**
59 +
60 +The BIN 16-bit data of the device specified in (s1) and the BIN 16-bit data of the device specified in (s2) are compared by normal open contact processing.
61 +
62 +The comparison operation result of each instruction is shown below.
63 +
64 +|**Instruction Sign**|**Condition**|**Comparison operation result**|**Instruction Sign**|**Condition**|**Comparison operation result**
65 +|=|(s1)=(s2)|(% rowspan="6" %)On state|=|(s1)≠(s2)|(% rowspan="6" %)Non-conduction state
66 +|<>|(s1)≠(s2)|<>|(s1)=(s2)
67 +|>|(s1)>(s2)|>|(s1)≤(s2)
68 +|<|(s1)<(s2)|<|(s1)≥(s2)
69 +|>=|(s1)≥(s2)|>=|(s1)<(s2)
70 +|<=|(s1)≤(s2)|<=|(s1)>(s2)
71 +
72 +**Error code**
73 +
74 +|**Error code**|**Content**
75 +|4085H|(s) read address exceeds the device range
76 +
77 +**Example**
78 +
79 +1. (((
80 +When the current value of counter C10 is 200, Y10 is set
81 +
82 +When the content of D200 is above -29, and X1 is ON, Y11 is set
83 +
84 +LD£ instruction:
85 +)))
86 +
87 +[[image:07-5 Basic instructions_html_1309199eccc7134.png]]
88 +
89 +1. AND£ instruction
90 +
91 +
92 +
93 +(((
94 +When X0 is ON, or when the current value of counter C10 is 200, Y10 is set
95 +
96 +When X1 is OFF, and the content of data counter D0 is not -10, Y11 is set
97 +
98 +[[image:07-5 Basic instructions_html_1c966f74b0bd808e.png]]
99 +)))
100 +
101 +1. OR□ instruction:
102 +
103 +
104 +
105 +(((
106 +When X1 is ON, or when the current value of counter C10 is 200, Y0 is set
107 +
108 +When X2 and M30 are ON, or the content of register D100 is K10000 and above, M60 is set
109 +
110 +[[image:07-5 Basic instructions_html_8b000809015ea436.png]]
111 +)))
112 +
113 +
114 +{{id name="_Toc29744"/}}{{id name="_Toc16499"/}}**Signed 32-bit contact comparison instruction**
115 +
116 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **LDD £, ANDD £, ORD £**
117 +
118 +The BIN 32-bit data of the device specified in (s1) and the BIN 32-bit data of the device specified in (s2) are compared by normal open contact processing.
119 +
120 +LDD£: Normally open contact comparison command
121 +
122 +ANDD£: Normally open contact series link comparison instruction
123 +
124 +{{id name="OLE_LINK337"/}}ORD£: Normally open contact parallel link comparison instruction
125 +
126 +**Ladder diagram**
127 +
128 +[[image:07-5 Basic instructions_html_63210db6b7e1512f.png]]
129 +
130 +“=”, “<>”, “>”, “<”, “>=”, “<=” can be input in “£”
131 +
132 +**Content, range and data type**
133 +
134 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
135 +|(s1)|Comparison data or device storing comparison data|-2147483648 to 2147483647|Signed BIN 32 bit|ANY32_S
136 +|(s2)|Comparison data or device storing comparison data|-2147483648 to 2147483647|Signed BIN 32 bit|ANY32_S
137 +
138 +**Device used**
139 +
140 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
141 +**Offset**
142 +
143 +**modification**
144 +)))|(((
145 +**Pulse**
146 +
147 +**extension**
148 +)))
149 +|**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**
150 +|LDD=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
151 +|LDD>|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
152 +|LDD<|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
153 +|LDD>=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
154 +|LDD<=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
155 +|LDD<>|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
156 +|ANDD=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
157 +|ANDD>|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
158 +|ANDD<|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
159 +|ANDD>=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
160 +|ANDD<=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
161 +|ANDD<>|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
162 +|ORD=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
163 +|ORD>|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
164 +|ORD<|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
165 +|ORD>=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
166 +|ORD<=|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
167 +|ORD<>|s1, s2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|
168 +
169 +**Features**
170 +
171 +The BIN 32-bit data of the device specified in (s1) and the BIN 32-bit data of the device specified in (s2) are compared by normal open contact processing.
172 +
173 +The comparison operation result of each instruction is shown below.
174 +
175 +|**Instruction Sign**|**Condition**|**Comparison operation result**|**Instruction Sign**|**Condition**|**Comparison operation result**
176 +|=|(s1)=(s2)|(% rowspan="6" %)On state|=|(s1)≠(s2)|(% rowspan="6" %)Non-conduction state
177 +|<>|(s1)≠(s2)|<>|(s1)=(s2)
178 +|>|(s1)>(s2)|>|(s1)≤(s2)
179 +|<|(s1)<(s2)|<|(s1)≥(s2)
180 +|>=|(s1)≥(s2)|>=|(s1)<(s2)
181 +|<=|(s1)≤(s2)|<=|(s1)>(s2)
182 +
183 +**Error code**
184 +
185 +|**Error code**|**Content**
186 +|4085H|(S) read address exceeds the device range
187 +
188 +**Example**
189 +
190 +1. LDD£ instruction:
191 +
192 +[[image:07-5 Basic instructions_html_8acf0d489297c561.png]]
193 +
194 +When the data of LC10 is 200000, Y10 is set, otherwise Y10 is reset.
195 +
196 +When the 32-bit data composed of D201 and D200 exceeds -5000, and X1 is ON, Y11 is turned ON.
197 +
198 +1. ANDD£ instruction:
199 +
200 +[[image:07-5 Basic instructions_html_38be93eec0ced6c.png]]
201 +
202 +When X0 is ON and the value of LC10 is 200000, Y10 is set, otherwise it is reset.
203 +
204 +When X1 is OFF and the 32-bit data composed of D1 and D0 is not equal to K-50000, Y11 is set.
205 +
206 +1. ORD£ instruction:
207 +
208 +[[image:07-5 Basic instructions_html_8ebfc7b0562cf370.png]]
209 +
210 +When X1 is ON, or the data of LC10 is equal to the data of LC10 is equal to 200000, Y0 is set.
211 +
212 +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.
213 +
214 +{{id name="_Toc28789"/}}{{id name="_Toc29577"/}}**Single precision real number contact comparison instruction**
215 +
216 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **LDE £, ANDE £, ORE £**
217 +
218 +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.
219 +
220 +LDE□: Normally open contact comparison command
221 +
222 +ANDE□: Normally open contact series link comparison instruction
223 +
224 +ORE□: Normally open contact parallel link comparison instruction
225 +
226 +**Ladder diagram**
227 +
228 +[[image:07-5 Basic instructions_html_6ac28f30e24ad296.png]]
229 +
230 +“=”, “<>”, “>”, “<”, “>=”, “<=” can be input in “£”
231 +
232 +**Content, range and data type**
233 +
234 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
235 +|(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
236 +|(s2)|Comparison data or the device start number storing the comparison data|0, 2^^-126^^ ≤~|(s)~|< 2^^128^^|Single precision real number|ANYREAL_32
237 +
238 +**Device used**
239 +
240 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
241 +**Offset**
242 +
243 +**modification**
244 +)))|(((
245 +**Pulse**
246 +
247 +**extension**
248 +)))
249 +|**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**
250 +|LDE=|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
251 +|LDE>|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
252 +|LDE<|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
253 +|LDE>=|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
254 +|LDE<=|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
255 +|LDE<>|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
256 +|ANDE=|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
257 +|ANDE>|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
258 +|ANDE<|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
259 +|ANDE>=|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
260 +|ANDE<=|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
261 +|ANDE<>|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
262 +|ORE=|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
263 +|ORD>|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
264 +|ORE<|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
265 +|ORE>=|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
266 +|ORE<=|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
267 +|ORE<>|s1, s2|||||||||||||||●|●|●|●|●|●|●|||●|●|
268 +
269 +**Features**
270 +
271 +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.
272 +
273 +The comparison operation result of each instruction is shown below.
274 +
275 +|**Instruction Sign**|**Condition**|**Comparison operation result**|**Instruction Sign**|**Condition**|**Comparison operation result**
276 +|E=|(s1)=(s2)|(% rowspan="6" %)On state|E=|(s1)≠(s2)|(% rowspan="6" %)Non-conduction state
277 +|E<>|(s1)≠(s2)|E<>|(s1)=(s2)
278 +|E>|(s1)>(s2)|E>|(s1)≤(s2)
279 +|E<|(s1)<(s2)|E<|(s1)≥(s2)
280 +|E>=|(s1)≥(s2)|E>=|(s1)<(s2)
281 +|E<=|(s1)≤(s2)|E<=|(s1)>(s2)
282 +
283 +**Error code**
284 +
285 +|**Error code**|**Content**
286 +|4084H|{{id name="OLE_LINK340"/}}When the content of the specified device by (s1) and (s2) is an irregular number, a non-number, or ±∞
287 +|4085H|{{id name="OLE_LINK343"/}}The read address of (s1) and (s2exceeds the device range
288 +
289 +**Example**
290 +
291 +1. LDE£ instruction:
292 +
293 +[[image:07-5 Basic instructions_html_c4c820cf59601493.png]]
294 +
295 +When the real number input in D0 is equal to E1.23, Y10 is ON, otherwise Y10 is OFF.
296 +
297 +When the real number in R0 is greater than or equal to the real number in LC0, Y11 is ON, otherwise it is OFF.
298 +
299 +If the input in D0, R0, LC0 is not a real number, it will report H4084 error.
300 +
301 +1. ANDE£ instruction:
302 +
303 +[[image:07-5 Basic instructions_html_7cdd2117360e179b.png]]
304 +
305 +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.
306 +
307 +1. ORE£ instruction:
308 +
309 +[[image:07-5 Basic instructions_html_3eba0bd56176441d.png]]
310 +
311 +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.
312 +
313 +{{id name="_Toc16295"/}}{{id name="_Toc20251"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **String comparison**
314 +
315 +**LDS£、ANDS£、 ORS£**
316 +
317 +{{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).
318 +
319 +LDS£: String comparison instruction
320 +
321 +ANDS£: String serial connection comparison instruction
322 +
323 +{{id name="OLE_LINK341"/}}ORS£: String parallel connection comparison instruction
324 +
325 +**Ladder diagram**
326 +
327 +[[image:07-5 Basic instructions_html_5fb3b3b70645fef5.png]]
328 +
329 +“=” and “<>” could be entered in “£”
330 +
331 +**Content, range and data type**
332 +
333 +|**Parameter**|**Content**|**Range**|**Date type**|**Date type(label)**
334 +|(S1)|{{id name="OLE_LINK342"/}}Connection data or the device start number storing the data or the string specified directly|-|String|ANYSTRING_SINGLE
335 +|(S1)|Connection data or the device start number storing the data or the string specified directly|-|{{id name="OLE_LINK29"/}}String|ANYSTRING_SINGLE
336 +
337 +**Device used**
338 +
339 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
340 +**Offset**
341 +
342 +**modification**
343 +)))|(((
344 +**Pulse**
345 +
346 +**extension**
347 +)))
348 +|**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**
349 +|LDS=|s1、s2|||||||||||●|●|●|●|●|●|●|●|●||||||●|
350 +|LDS<>|s1、s2|||||||||||●|●|●|●|●|●|●|●|●||||||●|
351 +|ANDS=|s1、s2|||||||||||●|●|●|●|●|●|●|●|●||||||●|
352 +|ANDS<>|s1、s2|||||||||||●|●|●|●|●|●|●|●|●||||||●|
353 +|ORS=|s1、s2|||||||||||●|●|●|●|●|●|●|●|●||||||●|
354 +|ORS<>|s1、s2|||||||||||●|●|●|●|●|●|●|●|●||||||●|
355 +
356 +**Features**
357 +
358 +• Compare the string stored after the device number specified in (s1) with the string stored after the device number specified in (s2).
359 +
360 +• The comparison operation result of each instruction is shown below.
361 +
362 +|**Instruction sign**|**Condition**|**Comparison operation result**|**Instruction sign**|**Condition**|**Comparison operation result**
363 +|=|(s1)=(s2)|(% rowspan="2" %)On stat|=|(s1)≠(s2)|(% rowspan="2" %)Non-conduction state
364 +|<>|(s1)≠(s2)|<>|(s1)=(s2)
365 +
366 +**Error code**
367 +
368 +|**Error code**|**Content**
369 +|4085H|The read address of (s1) or (s2) exceeds the device range
370 +|408AH|The length of the read string of (s1) or (s2) exceeds, and the continuous length of the string exceeds 400 characters.
371 +|408BH|When (s1) or (s2) reading the string, the maximum range of the device is read but 00H is not found as the end.
372 +
373 +**Example**
374 +
375 +1. 1、LDS£ instruction
376 +
377 +[[image:07-5 Basic instructions_html_449a071f61ff5b58.png]]
378 +
379 +1. ANDS£ instruction
380 +
381 +[[image:07-5 Basic instructions_html_dd6aa995d193bdd2.png]]
382 +
383 +1. ORS£ instruction
384 +
385 +[[image:07-5 Basic instructions_html_4f8fb7c94f87c58d.png]]
386 +
387 +{{id name="_Toc11737"/}}[[image:07-5 Basic instructions_html_a2e3294e01b2f206.gif]] **7.12 Clock operation instruction**
388 +
389 +{{id name="_Toc9100"/}}{{id name="_Toc26958"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TADD/The addition of clock data**
390 +
5 5  **TADD(P)**
6 6  
7 7  Add 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 result of the addition operation after the device number specified in (d) .
... ... @@ -11,7 +11,7 @@
11 11  **Content, range and data type**
12 12  
13 13  |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
14 -|(s1)|The device start number that stores the added time data|-|Signed BIN 16 bit|(((
400 +|(s1)|{{id name="OLE_LINK345"/}}The device start number that stores the added time data|-|Signed BIN 16 bit|(((
15 15  ANY16_ARRAY
16 16  
17 17  (number of elements: 3)
... ... @@ -29,34 +29,35 @@
29 29  
30 30  **Device used**
31 31  
32 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="5" %)**Devices**|(((
33 -**Offset modification**
418 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
419 +**Offset**
420 +
421 +**modification**
34 34  )))|(((
35 -**Pulse extension**
423 +**Pulse**
424 +
425 +**extension**
36 36  )))
37 -|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
38 -|(% rowspan="3" %)TADD|Parameter 1|●|●|●|●|●|●|●
39 -|Parameter 2|●|●|●|●|●|●|●
40 -|Parameter 3|●|●|●|●|●|●|●
427 +|**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**
428 +|(% rowspan="3" %)TADD|Parameter 1|||||||||||||||●|●|●|●|●||||||●|●
429 +|Parameter 2|||||||||||||||●|●|●|●|●||||||●|●
430 +|Parameter 3|||||||||||||||●|●|●|●|●||||||●|●
41 41  
42 42  **Features**
43 43  
44 44  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.
45 45  
46 -(% style="text-align:center" %)
47 -[[image:07-5 Basic instructions_html_37222a6e282347f9.png||height="79" width="750"]]
436 +[[image:07-5 Basic instructions_html_37222a6e282347f9.png]]
48 48  
49 49  **Example**
50 50  
51 51  When 6:32:40 and 7:48:10 are added together
52 52  
53 -(% style="text-align:center" %)
54 -[[image:07-5 Basic instructions_html_90138670198ab422.png||height="94" width="750"]]
442 +[[image:07-5 Basic instructions_html_90138670198ab422.png]]
55 55  
56 56  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.
57 57  
58 -(% style="text-align:center" %)
59 -[[image:07-5 Basic instructions_html_bac419ce2dc0dc2.png||height="91" width="750"]]
446 +[[image:07-5 Basic instructions_html_bac419ce2dc0dc2.png]]
60 60  
61 61  When the calculation result is 0 (0 hour, 0 minute, 0 second), the zero flag turns on.
62 62  
... ... @@ -68,7 +68,7 @@
68 68  |SM151|Carry|It is ON when the result of the TADD(P) instruction exceeds the maximum clock data value of 23:59:59
69 69  |SM153|Zero|It is ON when the result of the TADD(P) instruction is 0:00:00
70 70  
71 -✎**Note:**
458 +✎**Note**
72 72  
73 73  The devices specified in (s1), (s2), (d) occupy 3 points respectively. Be careful not to overlap with the device used for machine control.
74 74  
... ... @@ -77,7 +77,7 @@
77 77  **Error code**
78 78  
79 79  |**Error code**|**Content**
80 -|4085H|When reading the specified device range exceeds the corresponding device range
467 +|4085H|{{id name="OLE_LINK344"/}}When reading the specified device range exceeds the corresponding device range
81 81  |4086H|When writing the specified device range exceeds the corresponding device range
82 82  |4084H|(((
83 83  When the values specified in (s1) and (s2) are other than 0 to 23
... ... @@ -87,26 +87,24 @@
87 87  
88 88  **Example**
89 89  
90 -(% style="text-align:center" %)
91 -[[image:07-5 Basic instructions_html_4f75eedee7172bbb.png||height="35" width="349"]]
477 +[[image:07-5 Basic instructions_html_4f75eedee7172bbb.png]]
92 92  
93 93  Set D0 time to 16:30:00 and D10 time to 4:30:0
94 94  
95 -(% style="text-align:center" %)
96 96  [[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]]
97 97  
98 -(% style="text-align:center" %)
99 99  [[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]]
100 100  
101 101  After the coil is turned on, the D20 time is 21:0:0
102 102  
103 -(% style="text-align:center" %)
104 104  [[image:07-5 Basic instructions_html_a9b235835aa41200.png]]
105 105  
106 -== **TSUB/The subtraction of clock data** ==
107 107  
108 -**TSUB(P)**
109 109  
491 +{{id name="_Toc6604"/}}{{id name="_Toc16422"/}}**TSUB/The subtraction of clock data**
492 +
493 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TSUB(P)**
494 +
110 110  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 .
111 111  
112 112  -[TSUB (s1) (s2) (d)]
... ... @@ -132,21 +132,24 @@
132 132  
133 133  **Device used**
134 134  
135 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="5" %)**Devices**|(((
136 -**Offset modification**
520 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
521 +**Offset**
522 +
523 +**modification**
137 137  )))|(((
138 -**Pulse extension**
525 +**Pulse**
526 +
527 +**extension**
139 139  )))
140 -|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
141 -|(% rowspan="3" %)TSUB|Parameter 1|●|●|●|●|●|●|●
142 -|Parameter 2|●|●|●|●|●|●|●
143 -|Parameter 3|●|●|●|●|●|●|●
529 +|**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**
530 +|(% rowspan="3" %)TSUB|Parameter 1|||||||||||||||●|●|●|●|●||||||●|●
531 +|Parameter 2|||||||||||||||●|●|●|●|●||||||●|●
532 +|Parameter 3|||||||||||||||●|●|●|●|●||||||●|●
144 144  
145 145  **Features**
146 146  
147 147  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.
148 148  
149 -(% style="text-align:center" %)
150 150  [[image:07-5 Basic instructions_html_5a93455e4cd8a27.png]]
151 151  
152 152  **Example**
... ... @@ -153,12 +153,10 @@
153 153  
154 154  When subtracting 10:40:20 and 3:50:10
155 155  
156 -(% style="text-align:center" %)
157 157  [[image:07-5 Basic instructions_html_2473f03fc493780c.png]]
158 158  
159 159  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.
160 160  
161 -(% style="text-align:center" %)
162 162  [[image:07-5 Basic instructions_html_24b998b4c3c4ec73.png]]
163 163  
164 164  When the calculation result is 0 (0 hour, 0 minute, 0 second), the zero flag turns on.
... ... @@ -169,7 +169,7 @@
169 169  |SM152|Borrow|It is ON when the result of the TSUB(P) instruction is less than 0:00:00
170 170  |SM153|Zero|It is ON when the result of the TSUB(P) instruction is at the time of 0:00:00:00
171 171  
172 -✎**Note:**
558 +✎**Note**
173 173  
174 174  • The devices specified in (s1), (s2), and (d) occupy 3 points respectively. Be careful not to overlap with the device used for machine control.
175 175  
... ... @@ -188,23 +188,19 @@
188 188  
189 189  **Example**
190 190  
191 -(% style="text-align:center" %)
192 -[[image:07-5 Basic instructions_html_e3a5d4793d3ccd2d.png||height="36" width="372"]]
577 +[[image:07-5 Basic instructions_html_e3a5d4793d3ccd2d.png]]
193 193  
194 194  Set D0 time to 16:30:00 and D10 time to 4:30:0
195 195  
196 -(% style="text-align:center" %)
197 197  [[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]]
198 198  
199 -(% style="text-align:center" %)
200 200  [[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]]
201 201  
202 202  After the coil is turned on, the D20 time is 12:00:00
203 203  
204 -(% style="text-align:center" %)
205 205  [[image:07-5 Basic instructions_html_8f93ea19ba10652b.png]]
206 206  
207 -== **TRD/Clock data reading** ==
589 +{{id name="_Toc10358"/}}{{id name="_Toc12073"/}}[[image:07-5 Basic instructions_html_501fb256fd034ca6.gif]] **TRD/Clock data reading**
208 208  
209 209  **TRD(P)**
210 210  
... ... @@ -223,19 +223,23 @@
223 223  
224 224  **Device used**
225 225  
226 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="4" %)**Devices**|(((
227 -**Offset modification**
608 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
609 +**Offset**
610 +
611 +**modification**
228 228  )))|(((
229 -**Pulse extension**
613 +**Pulse**
614 +
615 +**extension**
230 230  )))
231 -|**T**|**C**|**D**|**R**|**[D]**|**XXP**
232 -|TRD|Parameter 1|●|●|●|●|●|●
617 +|**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**
618 +|TRD|Parameter 1|||||||||||||||●|●|●|●|||||||●|●
233 233  
234 234  **Features**
235 235  
236 236  Read the clock data (SD100 to SD106) of the real-time clock built into the CPU module into (d) to (d)+6 in the following format.
237 237  
238 -|**Parameter**|**Element**|**Project**|**Clock data**| |**Element**|**Project**
624 +|**Parameter**|**Element**|**Project**|**Clock data**||**Element**|**Project**
239 239  |(% rowspan="7" %)Special register|SD105|Year (Gregorian)|2000 to 2099|→|(d)|Year (Gregorian)
240 240  |SD104|Month|1 to 12|→|(d)+1|Month
241 241  |SD103|Day|1 to 31|→|(d)+2|Day
... ... @@ -255,7 +255,7 @@
255 255  |SD105|The year data of the clock data is stored in a 4-digit BIN code of the Gregorian calendar.
256 256  |SD106|The week data of the clock data is stored in BIN code. (0: day, 1: one, ..., 6: six) are stored in BIN code.
257 257  
258 -✎**Note:**
644 +✎**Note**
259 259  
260 260  • The device specified in (d) occupies 7 points. Be careful not to overlap with the device used for machine control.
261 261  
... ... @@ -266,17 +266,15 @@
266 266  
267 267  **Example**
268 268  
269 -(% style="text-align:center" %)
270 -[[image:07-5 Basic instructions_html_b81c1991fec5b4b1.png||height="68" width="250"]]
655 +[[image:07-5 Basic instructions_html_b81c1991fec5b4b1.png]]
271 271  
272 272  After the M0 coil is turned on, the current date and time are read as 2020-2-19 13:10:38 Wednesday
273 273  
274 -(% style="text-align:center" %)
275 -[[image:07-5 Basic instructions_html_fe82ecd18ebfd787.png||height="48" width="602"]]
659 +[[image:07-5 Basic instructions_html_fe82ecd18ebfd787.png]]
276 276  
277 -== **TWR/Clock data writing** ==
661 +{{id name="_Toc24237"/}}{{id name="_Toc487"/}}**TWR/Clock data writing**
278 278  
279 -**TWR(P)**
663 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TWR(P)**
280 280  
281 281  Write the clock data of the built-in real-time clock of the CPU module.
282 282  
... ... @@ -289,19 +289,23 @@
289 289  
290 290  **Device used**
291 291  
292 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="4" %)**Devices**|(((
293 -**Offset modification**
676 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
677 +**Offset**
678 +
679 +**modification**
294 294  )))|(((
295 -**Pulse extension**
681 +**Pulse**
682 +
683 +**extension**
296 296  )))
297 -|**T**|**C**|**D**|**R**|**[D]**|**XXP**
298 -|TWR|Parameter 1|●|●|●|●|●|●
685 +|**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**
686 +|TWR|Parameter 1|||||||||||||||●|●|●|●|||||||●|●
299 299  
300 300  **Features**
301 301  
302 302  Write the set clock data (s) to (s)+6 to the clock data (SD100 to SD106) of the real-time clock built into the CPU module.
303 303  
304 -|(% colspan="3" %)**Set data at all times**|(% rowspan="2" %) |(% colspan="2" %)**Special register**
692 +|(% colspan="3" %)**Set data at all times**|(% rowspan="2" %)|(% colspan="2" %)**Special register**
305 305  |**Element**|**Project**|**Clock data**|**Element**|**Project**
306 306  |(s)|Year (Gregorian)|2000 to 2099 or 0 to 99|→|SD105|Year (Gregorian)
307 307  |(s)+1|Month|1 to 12|→|SD104|Month
... ... @@ -330,7 +330,7 @@
330 330  |SD105|The year data of the clock data is stored in a 4-digit BIN code of the Gregorian calendar.
331 331  |SD106|The week data of the clock data is stored in BIN code. (0: day, 1: one, ..., 6: six) are stored in BIN code.
332 332  
333 -✎**Note:**
721 +✎**Note**
334 334  
335 335  The device specified in (s) occupies 7 points. Be careful not to overlap with the device used for machine control.
336 336  
... ... @@ -343,15 +343,13 @@
343 343  
344 344  Set D0 date and time to 2020-2-19 12:36:00 in advance
345 345  
346 -(% style="text-align:center" %)
347 -[[image:07-5 Basic instructions_html_994c66d1a4cbd45f.png||height="57" width="305"]]
734 +[[image:07-5 Basic instructions_html_994c66d1a4cbd45f.png]]
348 348  
349 349  At the moment when the time 12:36:00 arrives, turn on the M0 coil and write the time.
350 350  
351 -(% style="text-align:center" %)
352 -[[image:07-5 Basic instructions_html_bf3e906ee5265598.png||height="42" width="586"]]
738 +[[image:07-5 Basic instructions_html_bf3e906ee5265598.png]]
353 353  
354 -== **HTOS/16-bit data conversion of time data (hour, minute, second → second)** ==
740 +{{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)**
355 355  
356 356  **HTOS(P)**
357 357  
... ... @@ -367,26 +367,26 @@
367 367  
368 368  **Device used**
369 369  
370 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|**Offset modification**|(((
371 -**Pulse extension**
756 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
757 +**Pulse**
758 +
759 +**extension**
372 372  )))
373 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
374 -|(% rowspan="2" %)HTOS|Parameter 1|●|●|●|●|●|●|●|●|●|●|●
375 -|Parameter 2| |●|●|●|●|●|●|●|●|●|●
761 +|**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**
762 +|(% rowspan="2" %)HTOS|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●||||||●|●
763 +|Parameter 2||||||||||||●|●|●|●|●|●|●|●||||||●|●
376 376  
377 377  **Features**
378 378  
379 379  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).
380 380  
381 -(% style="text-align:center" %)
382 -[[image:07-5 Basic instructions_html_a84b7741fd5bef2f.png||height="130" width="550"]]
769 +[[image:07-5 Basic instructions_html_a84b7741fd5bef2f.png]]
383 383  
384 384  **Example**
385 385  
386 386  When 4 hours, 29 minutes and 31 seconds are specified in (s)
387 387  
388 -(% style="text-align:center" %)
389 -[[image:07-5 Basic instructions_html_5effb7bc9b8e5cf7.png||height="162" width="550"]]
775 +[[image:07-5 Basic instructions_html_5effb7bc9b8e5cf7.png]]
390 390  
391 391  **Error code**
392 392  
... ... @@ -394,7 +394,7 @@
394 394  |4085H|When reading the specified device range exceeds the corresponding device range
395 395  |4086H|When writing the specified device range exceeds the corresponding device range
396 396  |4084H|(((
397 -When the calculation result is not in the range of 0 to 32767
783 +{{id name="OLE_LINK348"/}}When the calculation result is not in the range of 0 to 32767
398 398  
399 399  When the value specified in (s) is not in the range of 0 to 9
400 400  
... ... @@ -403,22 +403,19 @@
403 403  
404 404  **Example**
405 405  
406 -(% style="text-align:center" %)
407 -[[image:07-5 Basic instructions_html_e23e38c4ba4c34bb.png||height="43" width="338"]]
792 +[[image:07-5 Basic instructions_html_e23e38c4ba4c34bb.png]]
408 408  
409 409  D0 time is set to 5:36:53
410 410  
411 -(% style="text-align:center" %)
412 412  [[image:07-5 Basic instructions_html_2866a121e5ca5713.png]]
413 413  
414 414  The time of D10 after the M0 coil is turned on is as below.
415 415  
416 -(% style="text-align:center" %)
417 417  [[image:07-5 Basic instructions_html_1dd6c5de05890797.png]]
418 418  
419 -== **DHTOS/32-bit data conversion of time data (hour, minute, second → second)** ==
802 +{{id name="_Toc13431"/}}{{id name="_Toc5278"/}}**DHTOS/32-bit data conversion of time data (hour, minute, second → second)**
420 420  
421 -**DHTOS(P)**
804 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DHTOS(P)**
422 422  
423 423  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).
424 424  
... ... @@ -432,28 +432,30 @@
432 432  
433 433  **Device used**
434 434  
435 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|(((
436 -**Offset modification**
818 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
819 +**Offset**
820 +
821 +**modification**
437 437  )))|(((
438 -**Pulse extension**
823 +**Pulse**
824 +
825 +**extension**
439 439  )))
440 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
441 -|(% rowspan="2" %)DHTOS|Parameter 1|●|●|●|●|●|●|●|●|●|●|●
442 -|Parameter 2| |●|●|●|●|●|●|●|●|●|●
827 +|**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**
828 +|(% rowspan="2" %)DHTOS|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●||||||●|●
829 +|Parameter 2||||||||||||●|●|●|●|●|●|●|●||||||●|●
443 443  
444 444  **Features**
445 445  
446 446  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).
447 447  
448 -(% style="text-align:center" %)
449 -[[image:07-5 Basic instructions_html_f4be08508575ea01.png||height="99" width="550"]]
835 +[[image:07-5 Basic instructions_html_f4be08508575ea01.png]]
450 450  
451 451  **Example**
452 452  
453 453  When 35 hours, 10 minutes and 58 seconds are specified in (s)
454 454  
455 -(% style="text-align:center" %)
456 -[[image:07-5 Basic instructions_html_5b9ad230ed5e1fd0.png||height="125" width="550"]]
841 +[[image:07-5 Basic instructions_html_5b9ad230ed5e1fd0.png]]
457 457  
458 458  **Error code**
459 459  
... ... @@ -468,20 +468,17 @@
468 468  
469 469  **Example**
470 470  
471 -(% style="text-align:center" %)
472 -[[image:07-5 Basic instructions_html_ae8ab4379e8bdb91.png||height="45" width="263"]]
856 +[[image:07-5 Basic instructions_html_ae8ab4379e8bdb91.png]]
473 473  
474 474  D0 time is set to 15:33:24
475 475  
476 -(% style="text-align:center" %)
477 -[[image:07-5 Basic instructions_html_57a15d9e1045e93e.png||height="41" width="313"]]
860 +[[image:07-5 Basic instructions_html_57a15d9e1045e93e.png]]
478 478  
479 479  The second of D10 after the M0 coil is turned on is
480 480  
481 -(% style="text-align:center" %)
482 -[[image:07-5 Basic instructions_html_194e906b1dc12078.png||height="64" width="365"]]
864 +[[image:07-5 Basic instructions_html_194e906b1dc12078.png]]
483 483  
484 -**HOUR/Hour measuring 16-bit**
866 +{{id name="_Ref22686"/}}{{id name="_Toc11231"/}}{{id name="_Toc7401"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **HOUR/Hour measuring 16-bit**
485 485  
486 486  **HOUR(P)**
487 487  
... ... @@ -506,15 +506,19 @@
506 506  
507 507  **Device used**
508 508  
509 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="17" %)**Devices**|(((
510 -**Offset modification**
891 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
892 +**Offset**
893 +
894 +**modification**
511 511  )))|(((
512 -**Pulse extension**
896 +**Pulse**
897 +
898 +**extension**
513 513  )))
514 -|**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**E**|**[D]**|**XXP**
515 -|(% rowspan="3" %)HOUR|Parameter 1| | | | | |●|●|●|●|●|●|●|●|●|●|●| |●|●
516 -|Parameter 2| | | | | | | | | | | |●|●|●| | | |●|●
517 -|Parameter 3|●|●|●|●|●| | | | | | | | | | | | |●|●
900 +|**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**
901 +|(% rowspan="3" %)HOUR|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|●
902 +|Parameter 2|||||||||||||||||●|●|●||||||●|●
903 +|Parameter 3||●|●|●|●|||||●|||||||||||||||●|●
518 518  
519 519  **Features**
520 520  
... ... @@ -536,7 +536,7 @@
536 536  
537 537  • The measurement stops when the current value reaches the 16-bit maximum. To continue the measurement, clear the current value of (d1) to (d1)+1.
538 538  
539 -✎**Note:**
925 +✎**Note**
540 540  
541 541  • The device specified in (d1) occupies 2 points. Be careful not to overlap with the device used for machine control.
542 542  
... ... @@ -549,14 +549,16 @@
549 549  |4086H|When writing the specified device range exceeds the corresponding device range
550 550  |4084H|When the value of (s) is negative
551 551  
938 +
939 +
940 +
552 552  **Example**
553 553  
554 -(% style="text-align:center" %)
555 -[[image:07-5 Basic instructions_html_7570f8c392470a9f.png||height="45" width="320"]]
943 +[[image:07-5 Basic instructions_html_7570f8c392470a9f.png]]
556 556  
557 557  When M0 = ON, the duration of the state is accumulated, the time is recorded in D0, and the seconds less than 1 hour are recorded in D1. When the accumulated time of D0 reaches 98 hours, the Y0 output state is ON. When the timing conditions are met, after reaching the specified value (K98), the accumulated timing will continue and the reading will continue to increase; the current time value D0 reaches the maximum value of 32767 hours and D1 reaches 3599 seconds, the timing measurement will stop. The current time values D0 and D1 are cleared to 0.
558 558  
559 -== **DHOUR/Hour measuring 32 bits** ==
947 +{{id name="_Toc8523"/}}{{id name="_Toc9364"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DHOUR/Hour measuring 32 bits**
560 560  
561 561  **DHOUR(P)**
562 562  
... ... @@ -568,7 +568,9 @@
568 568  
569 569  |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
570 570  |(s)|(((
571 -The time when the alarm (d2) is turned ON (set by one hour)
959 +The time when the alarm (d2) is turned ON
960 +
961 +(set by one hour)
572 572  )))|0 to 2147483647|Signed BIN 32 bit|ANY32
573 573  |(d1)|Device that stores the current value of measurement (specified data register for power failure retention)|-|Unsigned BIN 32 bit|(((
574 574  ANY32_ARRAY
... ... @@ -579,15 +579,19 @@
579 579  
580 580  **Device used**
581 581  
582 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="18" %)**Devices**|(((
583 -**Offset modification**
972 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
973 +**Offset**
974 +
975 +**modification**
584 584  )))|(((
585 -**Pulse extension**
977 +**Pulse**
978 +
979 +**extension**
586 586  )))
587 -|**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP**
588 -|(% rowspan="3" %)DHOUR|Parameter 1| | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●|●|●
589 -|Parameter 2| | | | | | | | | | | |●|●|●| | | | |●|●
590 -|Parameter 3|●|●|●|●|●| | | | | | | | | | | | | |●|●
981 +|**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**
982 +|(% rowspan="3" %)DHOUR|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|●
983 +|Parameter 2|||||||||||||||||●|●|●||||||●|●
984 +|Parameter 3||●|●|●|●|||||●|||||||||||||||●|●
591 591  
592 592  **Features**
593 593  
... ... @@ -609,7 +609,7 @@
609 609  
610 610  • The measurement stops when the current value reaches the 32-bit maximum. To continue the measurement, clear the current value of (d1) to (d1)+2.
611 611  
612 -✎**Note:**
1006 +✎**Note**
613 613  
614 614  • The device specified in (d1) occupies 3 points. Be careful not to overlap with the device used for machine control.
615 615  
... ... @@ -622,16 +622,18 @@
622 622  |4086H|When writing the specified device range exceeds the corresponding device range
623 623  |4084H|When the value of (s) is negative
624 624  
1019 +
1020 +
1021 +
625 625  **Example**
626 626  
627 -(% style="text-align:center" %)
628 -[[image:07-5 Basic instructions_html_3f1ef5ecc835de30.png||height="43" width="448"]]
1024 +[[image:07-5 Basic instructions_html_3f1ef5ecc835de30.png]]
629 629  
630 630  When M0=ON, the duration of this state is accumulated, the time is recorded in D1, D0, and the seconds less than 1 hour are recorded in D2. When the accumulated time of D1, D0 reaches 1000 hours, the Y0 output state is ON. When the timing conditions are met, after reaching the specified value (K1000), the accumulated timing will continue, and the reading will continue to increase; the current time values D1 and D0 reach the maximum value of 2147483647 hours, and when D2 reaches 3599 seconds, the timing measurement will stop and the timing should be restarted. The current time values D0, D1, and D2 must be cleared to 0.
631 631  
632 -== **STOH/16-bit data conversion of time data (second → hour, minute, second)** ==
1028 +{{id name="_Toc11629"/}}**STOH/16-bit data conversion of time data (second → hour, minute, second)**
633 633  
634 -**STOH(P)**
1030 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **STOH(P)**
635 635  
636 636  Convert the second 16-bit data stored in the device number specified in (s) into hour, minute, and second, and store the conversion result in the device specified in (d) and later.
637 637  
... ... @@ -640,35 +640,39 @@
640 640  **Content, range and data type**
641 641  
642 642  |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
643 -|(s)|The device start number that stores the clock data before conversion|0 to 32767|Signed BIN 16 bit|ANY16
1039 +|(s)|{{id name="OLE_LINK353"/}}The device start number that stores the clock data before conversion|0 to 32767|Signed BIN 16 bit|ANY16
644 644  |(d)|The device start number that stores the converted clock data|-|Signed BIN 16 bit|(((
645 -ANY16_ARRAY (number of elements: 3)
1041 +ANY16_ARRAY
1042 +
1043 +(number of elements: 3)
646 646  )))
647 647  
648 648  **Device used**
649 649  
650 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|(((
651 -**Offset modification**
1048 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
1049 +**Offset**
1050 +
1051 +**modification**
652 652  )))|(((
653 -**Pulse extension**
1053 +**Pulse**
1054 +
1055 +**extension**
654 654  )))
655 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
656 -|(% rowspan="2" %)STOH|Parameter 1|●|●|●|●|●|●|●|●|●|●|●
657 -|Parameter 2| |●|●|●|●|●|●|●|●|●|●
1057 +|**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**
1058 +|(% rowspan="2" %)STOH|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●||||||●|●
1059 +|Parameter 2||||||||||||●|●|●|●|●|●|●|●||||||●|●
658 658  
659 659  **Features**
660 660  
661 661  Convert the second data stored after the device number specified in (s) into hour, minute, and second, and store the conversion result in the device specified in (d) and later.
662 662  
663 -(% style="text-align:center" %)
664 -[[image:07-5 Basic instructions_html_1f5f3f1d80af2a34.png||height="110" width="550"]]
1065 +[[image:07-5 Basic instructions_html_1f5f3f1d80af2a34.png]]
665 665  
666 666  **Example**
667 667  
668 668  When 29,011 seconds are specified in (s)
669 669  
670 -(% style="text-align:center" %)
671 -[[image:07-5 Basic instructions_html_682516cbf773f515.png||height="163" width="550"]]
1071 +[[image:07-5 Basic instructions_html_682516cbf773f515.png]]
672 672  
673 673  **Error code**
674 674  
... ... @@ -679,19 +679,17 @@
679 679  
680 680  **Example**
681 681  
682 -(% style="text-align:center" %)
683 -[[image:07-5 Basic instructions_html_e783349d57adf7d2.png||height="47" width="350"]]
1082 +[[image:07-5 Basic instructions_html_e783349d57adf7d2.png]]
684 684  
685 685  Set D0 seconds to 12537
686 686  
687 687  The hour, minute and second of D10 after the M0 coil is turned on are
688 688  
689 -(% style="text-align:center" %)
690 -[[image:07-5 Basic instructions_html_d3c33949e8684891.png||height="52" width="645"]]
1088 +[[image:07-5 Basic instructions_html_d3c33949e8684891.png]]
691 691  
692 -== **DSTOH/32-bit data conversion of time data (second → hour, minute, second)** ==
1090 +{{id name="_Toc10764"/}}{{id name="_Toc30243"/}}**DSTOH/32-bit data conversion of time data (second → hour, minute, second)**
693 693  
694 -**DSTOH(P)**
1092 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DSTOH(P)**
695 695  
696 696  Convert the second 32-bit data of second stored in the device number specified in (s) into hour, minute, and second, and store the conversion result in the device specified in (d) and later.
697 697  
... ... @@ -702,33 +702,37 @@
702 702  |**Parameter**|**Content**|**Range**|**Data type**|**Data &nbsp;&nbsp;&nbsp;&nbsp;type (label)**
703 703  |(s)|The device start number that stores the clock data before conversion|0 to 117964799|Signed BIN 32 bit|ANY32
704 704  |(d)|The device start number that stores the converted clock data|-|Signed BIN 16 bit|(((
705 -ANY16_ARRAY (number of elements: 3)
1103 +ANY16_ARRAY
1104 +
1105 +(number of elements: 3)
706 706  )))
707 707  
708 708  **Device used**
709 709  
710 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|(((
711 -**Offset modification**
1110 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
1111 +**Offset**
1112 +
1113 +**modification**
712 712  )))|(((
713 -**Pulse extension**
1115 +**Pulse**
1116 +
1117 +**extension**
714 714  )))
715 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
716 -|(% rowspan="2" %)DSTOH|Parameter 1|●|●|●|●|●|●|●|●|●|●|●
717 -|Parameter 2| |●|●|●|●|●|●|●|●|●|●
1119 +|**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**
1120 +|(% rowspan="2" %)DSTOH|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●||||||●|●
1121 +|Parameter 2||||||||||||●|●|●|●|●|●|●|●||||||●|●
718 718  
719 719  **Features**
720 720  
721 721  Convert the second data stored after the device number specified in (s) into hour, minute, and second, and store the conversion result in the device specified in (d) and later.
722 722  
723 -(% style="text-align:center" %)
724 -[[image:07-5 Basic instructions_html_cbf13fc3d10fbe61.png||height="99" width="600"]]
1127 +[[image:07-5 Basic instructions_html_cbf13fc3d10fbe61.png]]
725 725  
726 726  **Example**
727 727  
728 728  When 45,325 seconds is specified in (s)
729 729  
730 -(% style="text-align:center" %)
731 -[[image:07-5 Basic instructions_html_d6045506b13275a0.png||height="135" width="600"]]
1133 +[[image:07-5 Basic instructions_html_d6045506b13275a0.png]]
732 732  
733 733  **Error code**
734 734  
... ... @@ -739,17 +739,15 @@
739 739  
740 740  **Example**
741 741  
742 -(% style="text-align:center" %)
743 -[[image:07-5 Basic instructions_html_e7dd49d953db6da4.png||height="39" width="316"]]
1144 +[[image:07-5 Basic instructions_html_e7dd49d953db6da4.png]]
744 744  
745 745  Set D0 seconds to 2152537
746 746  
747 747  The hour, minute and second of D10 after the M0 coil is turned on are
748 748  
749 -(% style="text-align:center" %)
750 -[[image:07-5 Basic instructions_html_10d57bde1ac0a218.png||height="52" width="661"]]
1150 +[[image:07-5 Basic instructions_html_10d57bde1ac0a218.png]]
751 751  
752 -== **TCMP/Clock data comparison** ==
1152 +{{id name="_Toc2937"/}}{{id name="_Toc24209"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TCMP/Clock data comparison**
753 753  
754 754  **TCMP(P)**
755 755  
... ... @@ -768,26 +768,29 @@
768 768  
769 769  **Device used**
770 770  
771 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="17" %)**Devices**|(((
772 -**Offset modification**
1171 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
1172 +**Offset**
1173 +
1174 +**modification**
773 773  )))|(((
774 -**Pulse extension**
1176 +**Pulse**
1177 +
1178 +**extension**
775 775  )))
776 -|**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**E**|**[D]**|**XXP**
777 -|(% rowspan="5" %)TCMP|Parameter 1| | | | | |●|●|●|●|●|●|●|●|●|●|●| |●|●
778 -|Parameter 2| | | | | |●|●|●|●|●|●|●|●|●|●|●| |●|●
779 -|Parameter 3| | | | | |●|●|●|●|●|●|●|●|●|●|●| |●|●
780 -|Parameter 4| | | | | | | | | |●|●|●|●|●| | | |●|●
781 -|Parameter 5|●|●|●|●|●| | | | | | | | | | | | |●|●
1180 +|**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**
1181 +|(% rowspan="5" %)TCMP|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|●
1182 +|Parameter 2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|●
1183 +|Parameter 3|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|●
1184 +|Parameter 4|||||||||||||||●|●|●|●|●||||||●|●
1185 +|Parameter 5||●|●|●|●|||||●|||||||||||||||●|●
782 782  
783 783  **Features**
784 784  
785 785  Compare the time of the reference time (hour, minute, second) [(s1), (s2), (s3)] with the time data (hour, minute, second) [(s4), (s4)+1, (s4) +2] Compare the size and turn on/off the 3 points from (d) according to the result of the same size.
786 786  
787 -(% style="text-align:center" %)
788 -[[image:07-5 Basic instructions_html_5df7ad3057fada12.png||height="385" width="750"]]
1191 +[[image:07-5 Basic instructions_html_5df7ad3057fada12.png]]
789 789  
790 -✎**Note:**
1193 +✎**Note**
791 791  
792 792  The device specified in (s4) and (d) occupies 3 points. Be careful not to overlap with the device used for machine control.
793 793  
... ... @@ -801,29 +801,26 @@
801 801  |4084H|(((
802 802  When the value specified in (s) and (s4) is not in the range of 0 to 23
803 803  
804 -When the value specified in (s2),(s3) (s4)+1 and (s4)+2 is not in the range of 0 to 59
1207 +{{id name="OLE_LINK355"/}}When the value specified in (s2),(s3) (s4)+1 and (s4)+2 is not in the range of 0 to 59
805 805  )))
806 806  
807 807  **Example**
808 808  
809 -(% style="text-align:center" %)
810 -[[image:07-5 Basic instructions_html_fcc16317cf7c0700.png||height="68" width="359"]]
1212 +[[image:07-5 Basic instructions_html_fcc16317cf7c0700.png]]
811 811  
812 812  Set D10 to 1, D11 to 30, D12 to 0
813 813  
814 814  When M0 is turned on, the time that D23 will come is 0:31:27
815 815  
816 -(% style="text-align:center" %)
817 -[[image:07-5 Basic instructions_html_de97dd7a612b2323.png||height="50" width="653"]]
1218 +[[image:07-5 Basic instructions_html_de97dd7a612b2323.png]]
818 818  
819 819  M10 is turned ON
820 820  
821 -(% style="text-align:center" %)
822 -[[image:07-5 Basic instructions_html_56e2d606adc09fd.png||height="52" width="239"]]
1222 +[[image:07-5 Basic instructions_html_56e2d606adc09fd.png]]
823 823  
824 -== **TZCP/Clock data bandwidth comparison** ==
1224 +{{id name="_Toc29031"/}}{{id name="_Toc22923"/}}**TZCP/Clock data bandwidth comparison**
825 825  
826 -**TZCP(P)**
1226 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TZCP(P)**
827 827  
828 828  Compare the comparison time of the high and low points specified in (s1) and (s2) with the time data specified in (s3), and turn the bit device specified in (d) ON/OFF according to its size and bandwidth.
829 829  
... ... @@ -833,37 +833,46 @@
833 833  
834 834  |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
835 835  |(s1)|Specify the "hour" of the lower limit time (hour, minute, second)|-|Signed BIN 16 bit|(((
836 -ANY16_ARRAY (number of elements: 3)
1236 +ANY16_ARRAY
1237 +
1238 +(number of elements: 3)
837 837  )))
838 838  |(s2)|Specify the "hour" of the lower limit time (hour, minute, second)|-|Signed BIN 16 bit|(((
839 -ANY16_ARRAY (number of elements: 3)
1241 +ANY16_ARRAY
1242 +
1243 +(number of elements: 3)
840 840  )))
841 841  |(s3)|Specify "hour" of time data (hour, minute, second)|-|Signed BIN 16 bit|(((
842 -ANY16_ARRAY (number of elements: 3)
1246 +ANY16_ARRAY
1247 +
1248 +(number of elements: 3)
843 843  )))
844 844  |(d)|The bit device is turned ON/OFF according to the comparison result.|-|Bit|(((
845 -ANY16_ARRAY (number of elements: 3)
1251 +ANY16_ARRAY
1252 +
1253 +(number of elements: 3)
846 846  )))
847 847  
848 848  **Device used**
849 849  
850 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="10" %)**Devices**|**Offset modification**|(((
851 -**Pulse extension**
1258 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1259 +**Pulse**
1260 +
1261 +**extension**
852 852  )))
853 -|**Y**|**M**|**S**|**SM**|**D.b**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
854 -|(% rowspan="4" %)TZCP|Parameter 1| | | | | |●|●|●|●|●|●|●
855 -|Parameter 2| | | | | |●|●|●|●|●|●|●
856 -|Parameter 3| | | | | |●|●|●|●|●|●|●
857 -|Parameter 4|●|●|●|●|●| | | | | |●|●
1263 +|**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**
1264 +|(% rowspan="4" %)TZCP|Parameter 1|||||||||||||||●|●|●|●|●||||||●|●
1265 +|Parameter 2|||||||||||||||●|●|●|●|●||||||●|●
1266 +|Parameter 3|||||||||||||||●|●|●|●|●||||||●|●
1267 +|Parameter 4||●|●|●|●|||||●|||||||||||||||●|●
858 858  
859 859  **Features**
860 860  
861 861  Compare the comparison time of the high and low points specified in (s1) and (s2) with the time data specified in (s3), and turn the bit device specified in (d) ON/OFF according to its size and bandwidth.
862 862  
863 -(% style="text-align:center" %)
864 -[[image:07-5 Basic instructions_html_844291270080313d.png||height="339" width="750"]]
1273 +[[image:07-5 Basic instructions_html_844291270080313d.png]]
865 865  
866 -✎**Note:**
1275 +✎**Note**
867 867  
868 868  • The devices specified in (s1), (s2), (s3), (d) occupy 3 points. Be careful not to overlap with the device used for machine control.
869 869  
... ... @@ -884,291 +884,1180 @@
884 884  
885 885  **Example**
886 886  
887 -(% style="text-align:center" %)
888 -[[image:07-5 Basic instructions_html_30027a2387c26c2e.png||height="46" width="439"]]
1296 +[[image:07-5 Basic instructions_html_30027a2387c26c2e.png]]
889 889  
890 890  Set D0 time to 16:30:00 and D10 time to 4:30:0
891 891  
892 -(% style="text-align:center" %)
893 -[[image:07-5 Basic instructions_html_c64e0faf2af172f8.png||height="49" width="626"]]
1300 +[[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]]
894 894  
895 -(% style="text-align:center" %)
896 -[[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png||height="50" width="625"]]
1302 +[[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]]
897 897  
898 898  After the coil is turned on, the reading time to D20 time is 8:30:00
899 899  
900 -(% style="text-align:center" %)
901 -[[image:07-5 Basic instructions_html_75c44dad07eaf80a.png||height="49" width="625"]]
1306 +[[image:07-5 Basic instructions_html_75c44dad07eaf80a.png]]
902 902  
903 903  M0/M12 is ON
904 904  
905 -(% style="text-align:center" %)
906 -[[image:07-5 Basic instructions_html_f512f36261705953.png||height="48" width="218"]]
1310 +[[image:07-5 Basic instructions_html_f512f36261705953.png]]
907 907  
1312 +{{id name="_Toc6129"/}}[[image:07-5 Basic instructions_html_a2e3294e01b2f206.gif]] **7.13 Data control instructions**
908 908  
909 -== **TON/BIN 16-bit Turn-on delay timer** ==
1314 +{{id name="_Toc3339"/}}{{id name="_Toc27829"/}}{{id name="_Toc9204"/}}**BAND/BIN 16-bit data dead zone control**
910 910  
911 -**TON(P)**
1316 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **BAND(P)**
912 912  
913 -Specify the T timer device in (s1), the expected time in (s2), and the time base (resolution) in (s3). And the result of the measured individual time interval operation is stored in the device specified in (s1).
1318 +The input value (BIN 16-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the upper and lower limits of the dead zone specified in (s1) and (s2).
914 914  
915 -PLC Editor2 version that supports this instruction: 2.3.1 and above.
1320 +-[BAND (s1) (s2) (S3) (d)]
916 916  
917 --[TON (s1) (s2) (s3)]
1322 +**Content, range and data type**
918 918  
919 -**Content, scope, data type**
1324 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1325 +|(s1)|Lower limit of dead zone (no output zone)|-32,768 to +32,767|Signed BIN 16 bit|ANY16_S
1326 +|(s2)|Upper limit of dead zone (no output zone)|-32,768 to +32,767|Signed BIN 16 bit|ANY16_S
1327 +|(S3)|Input value controlled by dead zone control|-32768 to +32,767|Signed BIN 16 bit|ANY16_S
1328 +|(D)|The start number of the device that stores the output value controlled by the dead zone control|-|Signed BIN 16 bit|ANY16_S
920 920  
921 -|**parameter**|**Content**|**range**|**type of data**|**Data type (label)**
922 -|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S
923 -|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S
924 -|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S
1330 +**Device used**
925 925  
1332 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
1333 +**Offset**
1334 +
1335 +**modification**
1336 +)))|(((
1337 +**Pulse**
1338 +
1339 +**extension**
1340 +)))
1341 +|**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**
1342 +|(% rowspan="4" %)BAND|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|●
1343 +|Parameter 2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|●
1344 +|Parameter 3|||||||||||●|●|●|●|●|●|●|●|●||||||●|●
1345 +|Parameter 4||||||||||||●|●|●|●|●|●|●|●||||||●|●
1346 +
1347 +**Features**
1348 +
1349 +The input value (BIN 16-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the upper and lower limits of the dead zone specified in (s1) and (s2). The output value is controlled as follows.
1350 +
1351 +|**Condition**|**The value stored in the output value**
1352 +|When dead zone low limit (s1)> input value (s3)|Input value (s3)-Dead zone low limit (s1)
1353 +|When dead zone high limit (s1) <input value (s3)|Input value (s3)- Dead zone high limit (s2)
1354 +|When dead zone low limit (s1) ≤ input value (s3) ≤ dead zone low limit (s2)|0
1355 +
1356 +
1357 +
1358 +(((
1359 +•When the output value stored in (d) is a signed BIN 16-bit value, and the operation result exceeds the range of -32768 to 32767, the situation is shown in the following example.
1360 +
1361 +For example, when (s1) is 10 and (s3) is -32768,
1362 +
1363 +the output value = -32768-10=8000H-000AH=7FFFH=32758.
1364 +
1365 +[[image:07-5 Basic instructions_html_6850e21a76b813c0.png]]
1366 +)))
1367 +
1368 +**Error code**
1369 +
1370 +|**Error code**|**Content**
1371 +|4085H|When the specified device range for reading exceeds the range of the corresponding device.
1372 +|4086H|When the specified device range for writing exceeds the range of the corresponding device.
1373 +|4084H|When the low limit specified in (s1) is greater than the high limit specified in (s2).
1374 +
1375 +**Example &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**
1376 +
1377 +[[image:07-5 Basic instructions_html_c0e65cfeed403ecf.png]]
1378 +
1379 +When X000 is ON, when D0<(-1,000), the value of ( D0)-(-1,000) is stored in (D1).
1380 +
1381 +• When -1,000≦ D0≦1,000, 0 is stored in D1.
1382 +
1383 +• When D0<1,000, the value of (D0)-1,000 is stored in D1.
1384 +
1385 +{{id name="_Toc1180"/}}{{id name="_Toc21657"/}}{{id name="_Toc27323"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DBAND/BIN 32-bit data dead zone control**
1386 +
1387 +**DBAND(P)**
1388 +
1389 +The input value (BIN 32-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the upper and lower limits of the dead zone specified in (s1) and (s2).
1390 +
1391 +-[DBAND (s1) (s2) (S3) (d)]
1392 +
1393 +**Content, range and data type**
1394 +
1395 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1396 +|(s1)|Dead zone low limit (no output zone)|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S
1397 +|(s2)|Dead zone high limit (no output zone)|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S
1398 +|(S3)|Input value controlled by dead zone control|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S
1399 +|(d)|The start number of the device that stores the output value controlled by the dead zone control|-|Signed BIN 32 bit|ANY32_S
1400 +
926 926  **Device used**
927 927  
928 -|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension**
1403 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1404 +**Pulse**
1405 +
1406 +**extension**
1407 +)))
929 929  |**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**
930 -|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | |
931 -|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | |
932 -|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | |
1409 +|(% rowspan="4" %)DBAND|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|●
1410 +|Parameter 2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|●
1411 +|Parameter 3|||||||||||●|●|●|●|●|●|●|●|●|●|●||||●|●
1412 +|Parameter 4||||||||||||●|●|●|●|●|●|●|●|●|●||||●|●
933 933  
934 -**Timing Chart**
1414 +**Features**
935 935  
936 -[[image:企业微信截图_16691725418532.png]]
1416 +The input value (BIN 32-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the upper and lower limits of the dead zone specified in (s1) and (s2). The output value is controlled as follows.
937 937  
1418 +|**Condition**|**The value stored in the output value**
1419 +|When dead zone low limit ((s1), (s1)+1)> input value ((s3), (s3)+1)|{{id name="OLE_LINK42"/}}Input value ((s3), (s3)+1)-dead zone low limit ((s1), (s1)+1)
1420 +|When dead zone high limit ((s1), (s1)+1) <input value ((s3), (s3)+1)|{{id name="OLE_LINK357"/}}Input value ((s3), (s3)+1)-dead zone high limit ((s2), (s2)+1)
1421 +|When dead zone low limit ((s1), (s1)+1) ≤ input value ((s3), (s3)+1) ≤ dead zone high limit ((s2), (s2)+1)|0
1422 +
1423 +
1424 +
1425 +(((
1426 +• When the output value stored in (d) is a signed BIN 32-bit value, and the operation result exceeds the range of -2,147,483,648 to 2,147,483,647, the situation is as the following example. For example,** &nbsp;**When (s1) and (s1)+1 are 1000, (s3) and (s3)+1 are -2,147,483,648, then the output value=
1427 +
1428 +-2,147,483,648-1000=80000000H-000003E8H=7FFFFC18H=2,147,482,648.
1429 +
1430 +[[image:07-5 Basic instructions_html_e0144674dad3e8fd.png]]
1431 +
1432 +
1433 +)))
1434 +
1435 +**Error code**
1436 +
1437 +|**Error code**|**Content**
1438 +|4085H|When the specified device range for reading exceeds the range of the corresponding device.
1439 +|4086H|When the specified device range for writing exceeds the range of the corresponding device.
1440 +|4084H|When the low limit specified in (s1) is greater than the high limit specified in (s2).
1441 +
1442 +**Example**
1443 +
1444 +[[image:07-5 Basic instructions_html_88f3fe0fb4841bab.png]]
1445 +
1446 +• When (D1, D0)<(-10,000), the value of (D1, D0)-(-10,000) is stored in (D11, D10).
1447 +
1448 +• When -10,000≦(D1, D0)≦10,000, 0 is stored in (D11, D10).
1449 +
1450 +• When 10,000< (D1, D0), the value of (D1, D0)-10,000 is stored in D1.
1451 +
1452 +{{id name="_Toc21668"/}}{{id name="_Toc25056"/}}{{id name="_Toc17582"/}}{{id name="OLE_LINK165"/}}**BINDA/BIN 16-bit data → Decimal ASCII conversion**
1453 +
1454 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **BINDA(P)**
1455 +
1456 +Convert the BIN 16-bit data specified in (s) and the value of each digit in decimal numbers into ASCII codes and store them after the device number specified in (d).
1457 +
1458 +-[BINDA(s)(d)]
1459 +
1460 +**Content, range and data type**
1461 +
1462 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1463 +|(s)|BIN data for ASCII conversion|-32768 to +32767|Signed BIN 16 bit|ANY16_S
1464 +|(d)|The start number of the device storing the conversion result|-|String|ANYSTRING_SINGLE
1465 +
1466 +**Device used**
1467 +
1468 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1469 +**Pulse**
1470 +
1471 +**extension**
1472 +)))
1473 +|**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**
1474 +|(% rowspan="2" %)BINDA|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|●
1475 +|Parameter 2|||||||||||||||||●|●|●||||||●|●
1476 +
938 938  **Features**
939 939  
940 -1) When the timer starts timing, the instruction after the timer starts to run when the timing time is greater than the time value of "the product of S2 and S3".
1479 +Convert the BIN 16-bit data specified in (s) and the value of each digit in decimal numbers into ASCII codes and store them after the device number specified in (d).
941 941  
942 -2) When the timer value is greater than 0 and less than the time value of "the product of S2 and S3", the timer will stop whenever the contact is disconnected, and when the contact is connected, the timer will start timing again.
943 943  
944 944  
945 -|**S3 time base**|**Actual value**
946 -|1|100us
947 -|10|1ms
948 -|100|10ms
949 -|1000|100ms
950 -|10000|1s
1483 +(((
1484 +←Only store 0 when SM191 is OFF
951 951  
952 -**Precautions**
1486 +[[image:07-5 Basic instructions_html_57bda5f08026449d.png]]
1487 +)))
953 953  
954 -• Avoid timer number conflict: the same timer number cannot be used for TON, TONR, TOF, TP, OUT_T timers at the same time. For example, TON T32 and TOF T32 cannot be used at the same time (it may cause data confusion and not achieve the effect of the corresponding instruction function).
1489 +For example, when -12,345 is specified in (s) (in the case of specifying signed)
955 955  
1491 +[[image:07-5 Basic instructions_html_f346102467b9bef9.png]]
1492 +
1493 +The calculation result stored in (d) will be as below.
1494 +
1495 +• In "Sign", 20H is stored when the BIN data is positive, and 2DH is stored when it is negative.
1496 +
1497 +• In the 0 to the left of the effective digit, 20H is stored. (Suppress 0.) For example, in the case of "00325", "00" becomes 20H, and "325" becomes the effective digit.
1498 +
1499 +• When storing data to the device specified in (d)+3, when SM191 (output character number switching signal) is OFF, 0 is stored, and it does not change when it is ON.
1500 +
1501 +✎**Note: **The number of occupied points of (d) is 3 when SM191 is ON, and it is 4 when SM191 is OFF.
1502 +
956 956  **Error code**
957 957  
958 958  |**Error code**|**Content**
959 -|4084H|Input data in (s2) (s3) is outside the specified range.
960 -|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range.
961 -|4086H|Device tpye in (s1) is outside the specified range.
1506 +|4085H|The read address of (s) exceeds the device range.
1507 +|4086H|The write address of (d) exceeds the device range.
962 962  
963 963  **Example**
964 964  
965 -[[image:企业微信截图_16691729278938.png]]
966 966  
967 -T1 is used for storing time, setting the expected time as K10 and the time base as K10000.
968 968  
969 -After set on (M8) contact and waiting for the value in the turn-on delay timer (T1) to reach the estimated time of 10s, the contact of (T1) on and output Y0.
1513 +(((
1514 +When X000 is ON, convert the value of 16-bit data (BIN) D1000 into decimal ASCII code, and then use PR instruction to output the
970 970  
971 -If the (M8) contact is off in the process of turn-on delay timer (T1) timing, the turn-on delay timer (T1) value is cleared to 0 and the timing ends.
1516 +converted ASCII code character by character to the program of Y040 to Y057.
972 972  
973 -== **TONR/BIN 16-bit Hold-type turn-on delay timer** ==
1518 +[[image:07-5 Basic instructions_html_c598806a42484ed.png]]
1519 +)))
974 974  
975 -[[image:file:///C:\Users\ADMINI~~1\AppData\Local\Temp\ksohtml8784\wps1.png]]**TONR(P)**
1521 +{{id name="_Toc12255"/}}{{id name="_Toc8216"/}}{{id name="_Toc470"/}}**DBINDA/BIN 32-bit data → Decimal ASCII conversion**
976 976  
977 -Specify the T timer device in (s1), the expected time in (s2), and the time base (resolution) in (s3). And store the time values of the accumulated multiple timing intervals into the device specified in (s1).
1523 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DBINDA(P)**
978 978  
979 -PLC Editor2 version that supports this instruction: 2.3.1 and above.
1525 +Convert the BIN 32-bit data specified in (s) and the value of each bit in decimal numbers into ASCII codes and store them after the device number specified in (d).
980 980  
981 --[TON(s1) (s2) (s3)]
1527 +-[DBINDA(s)(d)]
982 982  
983 -**Content, scope, data type**
1529 +**Content, range and data type**
984 984  
985 -|**parameter**|**Content**|**range**|**type of data**|**Data type (label)**
986 -|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S
987 -|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S
988 -|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S
1531 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1532 +|(s)|BIN data for ASCII conversion|-2,147483648 to 2147483647|Signed BIN 32 bit|ANY32_S
1533 +|(d)|{{id name="OLE_LINK2"/}}The start number of the device storing the conversion result|-|String|ANYSTRING_SINGLE
989 989  
990 990  **Device used**
991 991  
992 -|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension**
1537 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
1538 +**Offset**
1539 +
1540 +**modification**
1541 +)))|(((
1542 +**Pulse**
1543 +
1544 +**extension**
1545 +)))
993 993  |**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**
994 -|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | |
995 -|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | |
996 -|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | |
1547 +|(% rowspan="2" %)DBINDA|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|●
1548 +|Parameter 2|||||||||||||||||●|●|●||||||●|●
997 997  
998 -**Timing Chart**
1550 +**Features**
999 999  
1000 -[[image:企业微信截图_16691733488965.png]]
1552 +Convert the BIN 32-bit data specified in (s) and the value of each bit when expressed in decimal numbers into ASCII codes, and store them after the device number specified in (d).
1001 1001  
1554 +For example, when -12345678 is specified in (s). (in the case of specifying signed)
1555 +
1556 +[[image:07-5 Basic instructions_html_4d939462838cf09b.gif]] The calculation result stored in (d) will be as below.
1557 +
1558 +• In "Sign", 20H is stored when the BIN data is positive, and 2DH is stored when it is negative.
1559 +
1560 +• 20H is stored at 0 to the left of the effective number of digits. (Suppress 0.) For example, in the case of "0012034560", "00" becomes 20H, and "12034560" becomes effective digits.
1561 +
1562 +• For the data stored in the upper 8 bits of the device specified in (d)+5, 0 will be stored when SM191 (output character switching signal) is OFF, and 20H will be stored when it is ON.
1563 +
1564 +✎**Note: **(d) Occupies 6 points.
1565 +
1566 +**Error code**
1567 +
1568 +|**Error code**|**Content**
1569 +|4085H|(s) read address exceeds the device range
1570 +|4086H|(d) write address exceeds the device range
1571 +
1572 +**Example**
1573 +
1574 +[[image:07-5 Basic instructions_html_ec8ac32d748a991c.png]]
1575 +
1576 +When X000 is ON, convert the value of 32-bit data (BIN) D1000 into decimal ASCII code, and then use PR (FNC 77) instruction to output the converted ASCII code character by character to the program in Y040 to Y051 in time and time division.
1577 +
1578 +{{id name="_Toc19693"/}}{{id name="_Toc18078"/}}{{id name="_Toc5726"/}}**DABIN/Decimal ASCII → BIN conversion**
1579 +
1580 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DABIN(P)**
1581 +
1582 +Digital ASCII code (30H to 39H) is a instruction to convert real data into BIN data.
1583 +
1584 +-[DABIN (s) (d)]
1585 +
1586 +**Content, range and data type**
1587 +
1588 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1589 +|(s)|The start number of the device that stores the data (ASCII code) to be converted into a BIN value|-|String|ANYSTRING_SINGLE
1590 +|(d)|The device number for storing conversion result|-|BIN16 bit|ANY16_S
1591 +
1592 +**Device used**
1593 +
1594 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1595 +**Pulse**
1596 +
1597 +**extension**
1598 +)))
1599 +|**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**
1600 +|(% rowspan="2" %)DABIN|Parameter 1|||||||||||||||||●|●|●||||||●|●
1601 +|Parameter 2||||||||||||●|●|●|●|●|●|●|●||||||●|●
1602 +
1002 1002  **Features**
1003 1003  
1004 -1) When the timer starts timing, the instruction after the timer starts to run when the timing time is greater than the time value of "the product of S2 and S3".
1605 +The decimal ASCII data stored after the device number specified in (s) is converted into BIN 16-bit data and stored in the device specified in (d).
1005 1005  
1006 -2) When the coil in front of the timer is off, the TONR timer saves the current value. When the coil is on, the TONR timer continues to timing.
1607 +[[image:07-5 Basic instructions_html_22c5cb32a0a32214.png]]
1007 1007  
1008 -3) The current value of TONR can be cleared using the reset command. After the preset time is reached, TONR maintains the current value of the timer.
1609 +|**ASCII S**|**ASCII 10^^0^^**|**ASCII 10^^1^^**|**ASCII 10^^2^^**|**ASCII 10^^3^^**|**ASCII 10^^4^^**
1610 +|**ASCII code**|(((
1611 +{{id name="OLE_LINK36"/}}Units of
1009 1009  
1613 +ASCII code
1614 +)))|(((
1615 +Tens of
1010 1010  
1011 -|**S3 time base**|**Actual value**
1012 -|1|100us
1013 -|10|1ms
1014 -|100|10ms
1015 -|1000|100ms
1016 -|10000|1s
1617 +ASCII code
1618 +)))|(((
1619 +Hundreds of
1017 1017  
1018 -**Precautions**
1621 +ASCII code
1622 +)))|(((
1623 +Thousands of
1019 1019  
1020 -• Avoid timer number conflict: the same timer number cannot be used for TON, TONR, TOF, TP, OUT_T timers at the same time. For example, TON T32 and TOF T32 cannot be used at the same time (it may cause data confusion and not achieve the effect of the corresponding instruction function).
1625 +ASCII code
1626 +)))|(((
1627 +Ten thousands
1021 1021  
1629 +of ASCII code
1630 +)))
1631 +
1632 +For example, When -25,108 is specified in (s)
1633 +
1634 +[[image:07-5 Basic instructions_html_10fb2792e37dbf23.png]]
1635 +
1636 +• The ASCII data specified in (s) to (s)+2 is within the range of -32,768 to +32,767.
1637 +
1638 +• In “Sign”, set 20H when the converted data is positive, and set 2DH when it is negative. (When other than 20H or 2DH is set, it will be treated as positive data. (DABIN(P))
1639 +
1640 +• The range of the ASCII code set in each digit is 30H to 39H.
1641 +
1642 +• When the ASCII code set in each bit is 20H or 00H, it will be treated as 30H.
1643 +
1022 1022  **Error code**
1023 1023  
1024 1024  |**Error code**|**Content**
1025 -|4084H|Input data in (s2) (s3) is outside the specified range.
1026 -|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range.
1027 -|4086H|Device tpye in (s1) is outside the specified range.
1647 +|4084H|(((
1648 +When the Sign data exceeds the range of 30H to 39H, 20H, 00H, 2DH;
1028 1028  
1650 +When the ASCII code of each bit specified in (s) to (s)+2 exceeds the range of 30H to 39H, 20H, 00H;
1651 +
1652 +When the ASCII data specified in (s) to (s)+2 is other than -32,768 to +32,767.
1653 +)))
1654 +|4085H|The read address of (s) exceeds the device range.
1655 +|4086H|The write address of (d) exceeds the device range.
1656 +
1657 +
1658 +
1659 +(((
1660 +When X000 is ON, the Signs set in D20 to D22 and the ASCII code data of 5-digit decimal numbers are converted into BIN values, and then stored in the program of D0.
1661 +
1029 1029  **Example**
1663 +)))
1030 1030  
1031 -[[image:企业微信截图_16691733566206.png]]
1665 +[[image:07-5 Basic instructions_html_bec2bea131b58c03.png]]
1032 1032  
1033 -T1 is used for storing time, setting the expected time as K10 and the time base as K10000.
1667 +{{id name="_Toc3351"/}}{{id name="_Toc26383"/}}{{id name="_Toc26233"/}}**DDABIN/Decimal ASCII BIN32-bit data conversion**
1034 1034  
1035 -When the (M8) contact off and on again during timing. (T1) maintains the value at the last disconnection and continues timing until the estimated time of 10s. After the estimated time is reached, the (T1) contact on and output Y0. If the (M8) contact off in this time, the (T1) contact is still ON but Y0 is off.
1669 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DDABIN(P)**
1036 1036  
1037 -When (M0) contact turn ON, the (T1) timer value is cleared to 0 with the RST reset command, the (T1) contact is off, and the Y0 OFF.
1671 +The decimal ASCII data stored after the device number specified in (s) is converted into BIN 32-bit data and stored in the device number specified in (d).
1038 1038  
1039 -== **TOF/BIN 16-bit Turn-off delay timer** ==
1673 +-[DDABIN (s) (d) ]
1040 1040  
1041 -[[image:file:///C:\Users\ADMINI~~1\AppData\Local\Temp\ksohtml8784\wps6.png]]**TOF(P)**
1675 +**Content, range and data type**
1042 1042  
1043 -Specify the T timer device in (s1), the expected time in (s2), and the time base (resolution) in (s3). And store the time values of the accumulated multiple timing intervals into the device specified in (s1).
1677 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1678 +|(s)|The start number of the device that stores data (ASCII code) to be converted into a BIN value|-|String|ANYSTRING_SINGLE
1679 +|(d)|The device number for storing conversion result|-|Signed BIN 32 bit|ANY32_S
1044 1044  
1045 -PLC Editor2 version that supports this instruction: 2.3.1 and above.
1681 +**Device used**
1046 1046  
1047 --[TOF (s1) (s2) (s3)]
1683 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1684 +**Pulse**
1048 1048  
1049 -**Content, scope, data type**
1686 +**extension**
1687 +)))
1688 +|**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**
1689 +|(% rowspan="2" %)DDABIN|Parameter 1|||||||||||||||||●|●|●||||||●|●
1690 +|Parameter 2||||||||||||●|●|●|●|●|●|●|●|●|●||||●|●
1050 1050  
1051 -|**parameter**|**Content**|**range**|**type of data**|**Data type (label)**
1052 -|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S
1053 -|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S
1054 -|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S
1692 +**Features**
1055 1055  
1694 +The decimal ASCII data stored after the device number specified in (s) is converted into BIN 32-bit data and stored in the device specified in (d).
1695 +
1696 +[[image:07-5 Basic instructions_html_c444110b273f33b7.gif]]
1697 +
1698 +|**ASCII S**|**ASCII code**|**ASCII S**|**ASCII code**
1699 +|ASCII 10^^0^^|Units of ASCII code|ASCII 10^^5^^|{{id name="OLE_LINK38"/}}Hundred thousands of ASCII code
1700 +|ASCII 10^^1^^|Tens of ASCII code|ASCII 10^^6^^|Millions of ASCII code
1701 +|ASCII 10^^2^^|Hundreds of ASCII code|ASCII 10^^7^^|Ten millions of ASCII code
1702 +|ASCII 10^^3^^|{{id name="OLE_LINK37"/}}Thousands of ASCII code|ASCII 10^^8^^|Hundred millions of ASCII code
1703 +|ASCII 10^^4^^|Tens thousands of ASCII code|ASCII 10^^9^^|billions of ASCII code
1704 +
1705 +When -1234543210 is specified in (s) (When signed is specified)
1706 +
1707 +[[image:07-5 Basic instructions_html_1b4c7e1c663a4399.png]]
1708 +
1709 +• The ASCII data specified in (s) to (s)+5 is within the range of -2,147,483,648 to +2,147,483,647. In addition, the data stored in the high byte of (s)+5 will be ignored.
1710 +
1711 +• In the Sign data, set 20H when the converted data is positive, and set 2DH when it is negative. (When other than 20H or 2DH is set, it will be treated as positive data. (DABIN(P))
1712 +
1713 +• The range of ASCII code set in each digit is 30H to 39H.
1714 +
1715 +• When the ASCII code set in each bit is 20H or 00H, it will be treated as 30H.
1716 +
1717 +**Error code**
1718 +
1719 +|**Error code**|**Content**
1720 +|4084H|(((
1721 +When the Sign data exceeds the range of 30H to 39H, 20H, 00H and 2DH;
1722 +
1723 +{{id name="OLE_LINK39"/}}When the ASCII code of each bit specified in (s) to (s)+5 exceeds the range of 30H to 39H, 20H and 00H;
1724 +
1725 +When the ASCII data specified in (s) to (s)+5 exceeds the range of -2,147,483,648 to +2,147,483,647
1726 +)))
1727 +|4085H|The read address of (s) exceeds the device range.
1728 +|4086H|The write address of (d) exceeds the device range.
1729 +
1730 +**Example**
1731 +
1732 +[[image:07-5 Basic instructions_html_feea438c943ea9dd.png]]
1733 +
1734 +When X000 is ON, the Signs set in to D20 to D25 and the ASCII code data of 10-digit decimal numbers are converted into BIN values and then saved to the program in D0 to D1.
1735 +
1736 +{{id name="_Toc26556"/}}{{id name="_Toc12799"/}}{{id name="_Toc23863"/}}**LIMIT/ BIN 16-bit data high and low limit control**
1737 +
1738 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **LIMIT(P)**
1739 +
1740 +The input value (BIN 16-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the upper and lower limit value ranges specified in (s1) and (s2).
1741 +
1742 +-[LIMIT (s1) (s2) (s3) (d)]
1743 +
1744 +**Content, range and data type**
1745 +
1746 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1747 +|s1|Low limit value (minimum output limit value)|-32,768 to 32,767|BIN16 bit|ANY16_S
1748 +|s2|High limit value (maximum output limit value)|-32,768 to 32,767|BIN16 bit|ANY16_S
1749 +|s3|Input value controlled by high and low limit control|-32,768 to 32,767|BIN16 bit|ANY16_S
1750 +|d|The start number of device that stores the output value controlled by high and low limit control|-|BIN16 bit|ANY16_S
1751 +
1056 1056  **Device used**
1057 1057  
1058 -|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension**
1754 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1755 +**Pulse**
1756 +
1757 +**extension**
1758 +)))
1059 1059  |**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**
1060 -|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | |
1061 -|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | |
1062 -|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | |
1760 +|(% rowspan="4" %)LIMIT|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|●
1761 +|Parameter 2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|●
1762 +|Parameter 3|||||||||||●|●|●|●|●|●|●|●|●||||||●|●
1763 +|Parameter 4||||||||||||●|●|●|●|●|●|●|●||||||●|●
1063 1063  
1064 -**Timing Chart**
1765 +**Features**
1065 1065  
1066 -[[image:企业微信截图_16691735325382.png]]
1767 +The input value (BIN 16-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the high and low limit value ranges specified in (s1) and (s2). The output value is controlled as follows.
1067 1067  
1769 +|**Condition**|**The value stored in the output value**
1770 +|Low limit value (s1)>input value (s3)|Low limit value (s1)
1771 +|High limit value (s1) <input value (s3)|High limit value (s2)
1772 +|Low limit value (s1) ≤ input value (s3) ≤ high limit value (s2)|Input value (s3)
1773 +
1774 +
1775 +
1776 +(((
1777 +•Only in the case of controlling high limit value, set the minimum value of data range in the low limit value specified in (s1).
1778 +
1779 +• Only in the case of controlling low limit value, set the maximum value of data range in the high limit value specified in (s2).
1780 +
1781 +[[image:07-5 Basic instructions_html_50eb5229b027aa14.png]]
1782 +)))
1783 +
1784 +**Error code**
1785 +
1786 +|**Error code**|**Content**
1787 +|4085H|The read address exceeds the device range
1788 +|4086H|The write address exceeds the device range
1789 +|4084H|High limit <low limit
1790 +
1791 +**Example**
1792 +
1793 +[[image:07-5 Basic instructions_html_d67a2e740d4fc738.png]]
1794 +
1795 +When X000 is ON
1796 +
1797 +• When D0 <500, D1 is 500.
1798 +
1799 +• When 500 ≤ D0 ≤ 5,000, D1 is the value of D0.
1800 +
1801 +• When 5,000 <D0, D1 is 5,000.
1802 +
1803 +{{id name="_Toc32553"/}}{{id name="_Toc9981"/}}{{id name="_Toc9158"/}}**DLIMIT/BIN 32-bit data high and low limit control**
1804 +
1805 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DLIMIT(P)**
1806 +
1807 +The input value (BIN 32-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the range of high and low limit values specified in (s1) and (s2).
1808 +
1809 +-[DLIMIT (s1) (s2) (s3) (d)]
1810 +
1811 +**Content, range and data type**
1812 +
1813 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1814 +|s1|Low limit value (minimum output limit value)|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S
1815 +|s2|High limit value (maximum output limit value)|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S
1816 +|s3|Input value controlled by high and low limit control|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S
1817 +|d|The start number of the device that stores the output value controlled by high and low limit control|-|BIN32 bit|ANY32_S
1818 +
1819 +**Device used**
1820 +
1821 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1822 +**Pulse**
1823 +
1824 +**extension**
1825 +)))
1826 +|**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**
1827 +|(% rowspan="4" %)DLIMIT|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|●
1828 +|Parameter 2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|●
1829 +|Parameter 3|||||||||||●|●|●|●|●|●|●|●|●|●|●||||●|●
1830 +|Parameter 4||||||||||||●|●|●|●|●|●|●|●|●|●||||●|●
1831 +
1068 1068  **Features**
1069 1069  
1070 -1) After the input is disconnected, the output is delayed for a fixed time before stopping. The timer bit turns on immediately when the input is started and the current value is set to 0. When the input is disconnected, timing starts until the current time is equal to the preset time, then timing stops.
1834 +The input value (BIN 32-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the range of high and low limit values specified in (s1) and (s2). The output value is controlled as follows.
1071 1071  
1072 -2) When the preset value is reached, the timer bit is disconnected and the current value stops incrementing; If the input is turned on again before the TOF reaches the preset value, the timer bit remains on.
1836 +|**Condition**|**The value stored in the output value**
1837 +|Low limit value ((s1), (s1)+1)> input value ((s3), (s3)+1)|Low limit value ((s1), (s1)+1)
1838 +|High limit value ((s2), (s2)+1) <input value ((s3), (s3)+1)|High limit value ((s2), (s2)+1)
1839 +|Low limit value ((s1), (s1)+1) ≤ input value ((s3), (s3)+1) ≤ high limit value ((s2), (s2)+1)|Input value ((s3), (s3)+1)
1073 1073  
1074 -3) For the TOF timer to start timing, the enable input must perform an on-off transition.
1841 +{{id name="OLE_LINK43"/}}{{id name="OLE_LINK40"/}}•Only in the case of controlling high limit value, set the minimum value of data range in the low limit value specified in (s1).
1075 1075  
1843 +• Only in the case of controlling low limit value, set the maximum value of data range in the high limit value specified in (s2).
1076 1076  
1077 -|**S3 time base**|**Actual value**
1078 -|1|100us
1079 -|10|1ms
1080 -|100|10ms
1081 -|1000|100ms
1082 -|10000|1s
1845 +**Error code**
1083 1083  
1084 -**Precautions**
1847 +|**Error code**|**Content**
1848 +|4085H|The read address exceeds the device range
1849 +|4086H|The write address exceeds the device range
1850 +|4084H|High limit <low limit
1085 1085  
1086 -• Avoid timer number conflict: the same timer number cannot be used for TON, TONR, TOF, TP, OUT_T timers at the same time. For example, TON T32 and TOF T32 cannot be used at the same time (it may cause data confusion and not achieve the effect of the corresponding instruction function).
1852 +**Example**
1087 1087  
1854 +[[image:07-5 Basic instructions_html_217355b90f4b4e16.png]]
1855 +
1856 +Operation:
1857 +
1858 +• When (D1, D0) <10,000, (D11, D10) is 10,000.
1859 +
1860 +• When 10,000 ≤ (D1, D0) ≤ 1,000,000, (D11, D10) is the value of (D1, D0).
1861 +
1862 +• When 1,000,000 <(D1, D0), (D11, D10) is 1,000,000.
1863 +
1864 +{{id name="_Toc12534"/}}{{id name="_Toc28213"/}}{{id name="_Toc24591"/}}**SCL/BIN 16-bit unit scale (coordinate data of each point)**
1865 +
1866 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **SCL(P)**
1867 +
1868 +The scaling conversion data (16-bit data unit) specified in (s2) is scaled from the input value specified in (s1), and the calculation result is stored in the device specified in (d).
1869 +
1870 +-[SCL (s1) (s2) (d)]
1871 +
1872 +**Content, range and data type**
1873 +
1874 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1875 +|(s1)|The input value for scaling or the start number of device storing the input value|-32,768 to 32,767|Signed BIN 16 bit|ANY16_S
1876 +|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 16 bit|ANY16_S
1877 +|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 16 bit|ANY16_S
1878 +
1879 +**Device used**
1880 +
1881 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1882 +**Pulse**
1883 +
1884 +**extension**
1885 +)))
1886 +|**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**
1887 +|(% rowspan="3" %)SCL|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|●
1888 +|Parameter 2|||||||||||||||||●|●|●||||||●|●
1889 +|Parameter 3||||||||||||●|●|●|●|●|●|●|●||||||●|●
1890 +
1891 +**Features**
1892 +
1893 +For the scale conversion data (16-bit data unit) specified in (s2), scale by the input value specified in (s1), and store the operation result in the device specified in (d). Scale conversion is performed based on the scale conversion data stored after the device specified in (s2).
1894 +
1895 +|(% colspan="2" %)**Setting items (n represents the number of coordinate points specified in (s2))**|**Device allocation**
1896 +|(% colspan="2" %)Coordinate points|(s2)
1897 +|(% rowspan="2" %)Point 1|X coordinate|(s2)+1
1898 +|Y coordinate|(s2)+2
1899 +|(% rowspan="2" %)Point 2|X coordinate|(s2)+3
1900 +|Y coordinate|(s2)+4
1901 +|(% colspan="3" %)........
1902 +|(% rowspan="2" %)Point n|X coordinate|(s2)+2n-1
1903 +|Y coordinate|(s2)+2n
1904 +
1905 +[[image:07-5 Basic instructions_html_80185ccddb878234.png]]
1906 +
1907 +• If the operation result is not an integer value, round the first digit below the decimal point.
1908 +
1909 +• The X coordinate data of the conversion data for scaling should be set in ascending order.
1910 +
1911 +• (s1) should be set within the range of conversion data for scaling (device value of (s2)).
1912 +
1913 +• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output.
1914 +
1915 +• Set the number of coordinate points of the conversion data for scaling within the range of 1 to 32,767.
1916 +
1917 +• Setting example of conversion table for scaling.
1918 +
1919 +In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet.
1920 +
1921 +[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]]
1922 +
1923 +|(% colspan="2" rowspan="2" %)**Set &nbsp;&nbsp;&nbsp;&nbsp;items**|(% colspan="3" %)**Sett &nbsp;&nbsp;&nbsp;&nbsp;device and content**|(% rowspan="2" %)**Remarks**
1924 +|(% colspan="2" %)**When R0 is specified in (s2)**|**Set &nbsp;&nbsp;&nbsp;&nbsp;content**
1925 +|(% colspan="2" %)Coordinate points|(s2)|R0|K10|
1926 +|(% rowspan="2" %)Point 1|X coordinate|(s2)+1|R1|K5|
1927 +|Y coordinate|(s2)+2|R2|K20|
1928 +|(% rowspan="2" %)Point 2|X coordinate|(s2)+3|R3|K30|
1929 +|Y coordinate|(s2)+4|R4|K50|
1930 +|(% rowspan="2" %)Point 3|X coordinate|(s2)+5|R5|K100|
1931 +|Y coordinate|(s2)+6|R6|K200|
1932 +|(% rowspan="2" %)Point 4|X coordinate|(s2)+7|R7|K25|(% rowspan="6" %)(((
1933 +If the coordinates are specified by 3 points, the intermediate value could be the output value.
1934 +
1935 +In this example, the output value (median value) is specified by the Y coordinate of point 5.
1936 +
1937 +When the X coordinate is the same at 3 points or more, the value of the 2nd point is also output.
1938 +)))
1939 +|Y coordinate|(s2)+8|R8|K200
1940 +|(% rowspan="2" %)Point 5|X coordinate|(s2)+9|R9|K70
1941 +|Y coordinate|(s2)+10|R10|K200
1942 +|(% rowspan="2" %)Point 6|X coordinate|(s2)+11|R11|K250
1943 +|Y coordinate|(s2)+12|R12|K250
1944 +|(% rowspan="2" %)Point 7|X coordinate|(s2)+13|R13|K250|
1945 +|Y coordinate|(s2)+14|R14|K90|
1946 +|(% rowspan="2" %)Point 8|X coordinate|(s2)+15|R15|K350|(% rowspan="4" %)(((
1947 +If the coordinates are specified by two points, the output value is the value of the Y coordinate of the next point.
1948 +
1949 +In this example, the output value is specified by the Y coordinate of point 9.
1950 +)))
1951 +|Y coordinate|(s2)+16|R16|K90
1952 +|(% rowspan="2" %)Point 9|X coordinate|(s2)+17|R17|K350
1953 +|Y coordinate|(s2)+18|R18|K30
1954 +|(% rowspan="2" %)Point 10|X coordinate|(s2)+19|R19|K400|
1955 +|Y coordinate|(s2)+20|R20|K7|
1956 +
1088 1088  **Error code**
1089 1089  
1090 1090  |**Error code**|**Content**
1091 -|4084H|Input data in (s2) (s3) is outside the specified range.
1092 -|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range.
1093 -|4086H|Device tpye in (s1) is outside the specified range.
1960 +|4085H|When the specified device range for reading exceeds the range of the corresponding device.
1961 +|4086H|When the specified device range for writing exceeds the range of the corresponding device.
1962 +|4084H|(((
1963 +When the Xn data of data table is not sorted in ascending order. However, the instruction will be executed until the position where the error occurs;
1094 1094  
1965 +When the input value specified in (s1) exceeds the range of the set scale conversion data;
1966 +
1967 +When the number of start coordinate points of device (s2) is less than 0.
1968 +)))
1969 +
1095 1095  **Example**
1096 1096  
1097 -[[image:企业微信截图_16691735281572.png]]
1972 +[[image:07-5 Basic instructions_html_5519d7b41f15b6d6.png]]
1098 1098  
1099 -T1 is used for storing time, setting the expected time as K10 and the time base as K10000.
1974 +[[image:07-5 Basic instructions_html_ace075fb7675de8e.gif]] When -100 D0(X) < 0, D100(Y)=
1100 1100  
1101 -Make the (M8) contact ON and oFF, When (M8) ON, (T1) contact is ON and Y0 is ON. when (M8) OFF, (Y0) is OFF and (T1) starts timing. When the estimated time of 5s is reached, the (T1) contact is also 0FF.
1976 +[[image:07-5 Basic instructions_html_9acd6306c6d91847.gif]] when D0(X)=0, D100(Y)=0;
1102 1102  
1103 -If the (M8) contact ON again during (T1) timing, the (T1) value clears to 0 and the timing ends
1978 +when 0< D0(X) 100, D100(Y)=
1104 1104  
1105 -== **TP/BIN 16-bit Start pulse timer** ==
1980 +[[image:07-5 Basic instructions_html_e35e13160c08a133.png]]
1106 1106  
1107 -[[image:file:///C:\Users\ADMINI~~1\AppData\Local\Temp\ksohtml8784\wps14.png]]**TP(P)**
1108 1108  
1109 -Specify the T timer device in (s1), the expected time in (s2), and the time base (resolution) in (s3). And output TRUE in the set time of "(s2)*(s3)" product.
1110 1110  
1111 -PLC Editor2 version that supports this instruction: 2.3.1 and above.
1984 +{{id name="_Toc4862"/}}{{id name="_Toc11340"/}}{{id name="_Toc25383"/}}**DSCL/32-bit unit scale (coordinate data of each point)**
1112 1112  
1113 --[TP (s1) (s2) (s3)]
1986 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DSCL(P)**
1114 1114  
1115 -**Content, scope, data type**
1988 +The conversion data (32-bit data unit) for scaling specified in (s2) is scaled by the input value specified in (s1), and the operation result is stored in the device specified in (d).
1116 1116  
1117 -|**parameter**|**Content**|**range**|**type of data**|**Data type (label)**
1118 -|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S
1119 -|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S
1120 -|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S
1990 +-[DSCL (s1) (s2) (d)]
1121 1121  
1992 +**Content, range and data type**
1993 +
1994 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1995 +|(s1)|The input value for scaling or the start number of the device storing the input value|-2,147,483,648 to 2,147,483,647|Signed BIN 32 bit|ANY32_S
1996 +|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 32 bit|ANY32_S
1997 +|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 32 bit|ANY32_S
1998 +
1122 1122  **Device used**
1123 1123  
1124 -|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension**
2001 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Device**|**Offset modification**|(((
2002 +**Pulse**
2003 +
2004 +**extension**
2005 +)))
1125 1125  |**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**
1126 -|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | |
1127 -|Parameter 2| | | | | | | | | | ||||| ||●|●|●| | ||| | |
1128 -|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | |
2007 +|(% rowspan="3" %)DSCL|Parameter 1|||||||||||||||●|||||||||||
2008 +|Parameter 2|||||||||||||||||●|●|●|||||||
2009 +|Parameter 3||||||||||||||||||||●|●||||●|●
1129 1129  
1130 -**Timing Chart**
2011 +**Features**
1131 1131  
1132 -[[image:企业微信截图_16691747709508.png]]
2013 +{{id name="OLE_LINK41"/}}The conversion data (32-bit data unit) for scaling specified in (s2) is scaled by the input value specified in (s1), and the operation result is stored in the device number specified in (d). The scale conversion is performed based on the scale conversion data stored after the device specified in (s2).
1133 1133  
2015 +|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation**
2016 +|(% colspan="2" %)Coordinate points|(s2)+1, (s2)
2017 +|(% rowspan="2" %)Point 1|X coordinate|(s2)+3, (s2)+2
2018 +|Y coordinate|(s2)+5, (s2)+4
2019 +|(% rowspan="2" %)Point 2|X coordinate|(s2)+7, (s2)+6
2020 +|Y coordinate|(s2)+9, (s2)+8
2021 +|(% colspan="3" %)........
2022 +|(% rowspan="2" %)Point n|X coordinate|(s2)+4n-1, (s2)+4n-2
2023 +|Y coordinate|(s2)+4n+1, (s2)+4n
2024 +
2025 +[[image:07-5 Basic instructions_html_6633ca18cee1218c.png]]
2026 +
2027 +• If the calculation result is not an integer value, round the first digit below the decimal point.
2028 +
2029 +• The X coordinate data of the conversion data for scaling should be set in ascending order.
2030 +
2031 +• For (s1), set within the range of the conversion data for scaling ((s2), (s2) + 1 device value).
2032 +
2033 +• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output.
2034 +
2035 +• Set the number of coordinate points of conversion data for scaling within the range of 1 to 2,147,483,647.
2036 +
2037 +• Setting example of conversion table for scaling.
2038 +
2039 +In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet.
2040 +
2041 +[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]]
2042 +
2043 +|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Set &nbsp;&nbsp;&nbsp;&nbsp;device and content**|(% rowspan="2" %)**Remarks**
2044 +|(% colspan="2" %)**When R0 is specified in (s2)**|**Set &nbsp;&nbsp;&nbsp;&nbsp;content**
2045 +|(% colspan="2" %)Coordinate points|(s2)+1, (s2)|R1, R0|K10|
2046 +|(% rowspan="2" %)Point 1|X coordinate|(s2)+3, (s2)+2|R3, R2|K5|
2047 +|Y coordinate|(s2)+5, (s2)+4|R5, R4|K7|
2048 +|(% rowspan="2" %)Point 2|X coordinate|(s2)+7, (s2)+6|R7, R6|K20|
2049 +|Y coordinate|(s2)+9, (s2)+8|R9, R8|K30|
2050 +|(% rowspan="2" %)Point 3|X coordinate|(s2)+11, (s2)+10|R10, R11|K50|
2051 +|Y coordinate|(s2)+13, (s2)+12|R13, R12|K100|
2052 +|(% rowspan="2" %)Point 4|X coordinate|(s2)+15, (s2)+14|R15, R14|K200|(% rowspan="6" %)(((
2053 +if the coordinates are specified by 3 points, the intermediate value could be the output value.
2054 +
2055 +In this example, the output value (median value) is specified by the Y coordinate of point 5.
2056 +
2057 +When the X coordinate is the same at 3 points or more, the value of the 2nd point is also output.
2058 +)))
2059 +|Y coordinate|(s2)+17, (s2)+16|R17, R16|K25
2060 +|(% rowspan="2" %)Point 5|X coordinate|(s2)+19, (s2)+18|R19, R18|K200
2061 +|Y coordinate|(s2)+21, (s2)+20|R21, R20|K70
2062 +|(% rowspan="2" %)Point 6|X coordinate|(s2)+23, (s2)+22|R23, R22|K200
2063 +|Y coordinate|(s2)+25, (s2)+24|R25, R24|K250
2064 +|(% rowspan="2" %)Point 7|X coordinate|(s2)+27, (s2)+26|R27, R26|K250|
2065 +|Y coordinate|(s2)+29, (s2)+28|R29, R28|K90|
2066 +|(% rowspan="2" %)Point 8|X coordinate|(s2)+31, (s2)+30|R31, R30|K350|(% rowspan="4" %)(((
2067 +If the coordinates are specified by two points, the output value is the value of the Y coordinate of the next point.
2068 +
2069 +In this example, the output value is specified by the Y coordinate of point 9.
2070 +)))
2071 +|Y coordinate|(s2)+33, (s2)+32|R33, R32|K90
2072 +|(% rowspan="2" %)Point 9|X coordinate|(s2)+35, (s2)+34|R35, R34|K350
2073 +|Y coordinate|(s2)+37, (s2)+36|R37, R36|K30
2074 +|(% rowspan="2" %)Point 10|X coordinate|(s2)+39, (s2)+38|R39, R38|K400|
2075 +|Y coordinate|(s2)+41, (s2)+40|R41, R40|K7|
2076 +
2077 +**Error code**
2078 +
2079 +|**Error code**|**Content**
2080 +|4085H|When the specified device range for reading exceeds the range of the corresponding device.
2081 +|4086H|When the specified device range for writing exceeds the range of the corresponding device.
2082 +|4084H|(((
2083 +When the Xn data of data table is not sorted in ascending order. However, the instruction will be executed until the position where the error occurs;
2084 +
2085 +When the input value specified in (s1) exceeds the range of the set scale conversion data;
2086 +
2087 +When the number of start coordinate points of device (s2) is less than 0.
2088 +)))
2089 +
2090 +**Example**
2091 +
2092 +[[image:07-5 Basic instructions_html_ba95b2d50d8d1d3e.png]]
2093 +
2094 +[[image:07-5 Basic instructions_html_1de79c7d87d51f78.gif]] When -100 ≤ D0(X) < 0, D100(Y)=
2095 +
2096 +[[image:07-5 Basic instructions_html_9acd6306c6d91847.gif]] When D0(X)=0, D100(Y)=0;
2097 +
2098 +When 0 < D0(X) ≤ 100, D100(Y)=
2099 +
2100 +[[image:07-5 Basic instructions_html_a5b19d1af74a9620.png]]
2101 +
2102 +{{id name="_Toc3776"/}}{{id name="_Toc11170"/}}{{id name="_Toc2957"/}}**SCL2/BIN 16-bit unit scale (X/Y coordinate data)**
2103 +
2104 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **SCL2(P)**
2105 +
2106 +The conversion data (16-bit data unit) for scaling specified in (s2) is scaled by the input value specified in (s1), and the operation result is stored in the device specified in (d).
2107 +
2108 +-[SCL2 (s1) (s2) (d)]
2109 +
2110 +**Content, range and data type**
2111 +
2112 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
2113 +|(s1)|The input value for scaling or the start number of the device storing the input value|-32,768 to 32,767|Signed BIN 16 bit|ANY16_S
2114 +|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 16 bit|ANY16_S
2115 +|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 16 bit|ANY16_S
2116 +
2117 +**Device used**
2118 +
2119 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
2120 +**Pulse**
2121 +
2122 +**extension**
2123 +)))
2124 +|**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**
2125 +|(% rowspan="3" %)SCL2|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|●
2126 +|Parameter 2|||||||||||||||||●|●|●||||||●|●
2127 +|Parameter 3||||||||||||●|●|●|●|●|●|●|●||||||●|●
2128 +
1134 1134  **Features**
1135 1135  
1136 -Timer that outputs TRUE only for the set time after startup
2131 +The conversion data (16-bit data unit) for scaling specified in (s2) is scaled by the input value specified in (s1), and the operation result is stored in the device number specified in (d). The scale conversion is performed based on the scale conversion data stored after the device specified in (s2).
1137 1137  
1138 -1) When the enable input is turned on, timer (s1) is started and timer (s1) bit is immediately turned on. Timer (s1) stops as time increases and reaches the expected time.
2133 +|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation**
2134 +|(% colspan="2" %)Coordinate points|(s2)
2135 +|(% rowspan="4" %)X coordinate|Point 1|(s2)+1
2136 +|Point 2|(s2)+2
2137 +|.....|......
2138 +|Point n|(s2)+n
2139 +|(% rowspan="4" %)Y coordinate|Point 1|(s2)+n+1
2140 +|Point 2|(s2)+n+2
2141 +|.....|.....
2142 +|Point n|(s2)+2n
1139 1139  
1140 -2) After timer (s1) reaches the predetermined time (s2), timer (s1) bit is disconnected. At this time, timer (s1) stops increasing. If the enable input becomes FALSE, timer (s1) will reset. The expected time (s2) becomes 0.
2144 +[[image:07-5 Basic instructions_html_80185ccddb878234.png]]
1141 1141  
1142 -3) After starting, if the enable input becomes FALSE before the timer (s1) reaches the expected time (s2), the timer will be reset after reaching the expected time (s2).
2146 + If the operation result is not an integer value, round the first digit below the decimal point.
1143 1143  
2148 +• The X coordinate data of the conversion data for scaling should be set in ascending order.
1144 1144  
1145 -|**S3 time base**|**Actual value**
1146 -|1|100us
1147 -|10|1ms
1148 -|100|10ms
1149 -|1000|100ms
1150 -|10000|1s
2150 +• For (s1), set within the range of the conversion data for scaling ((s2), (s2) + 1 device value).
1151 1151  
1152 -**Precautions**
2152 +• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output.
1153 1153  
1154 -• Avoid timer number conflict: the same timer number cannot be used for TON, TONR, TOF, TP, OUT_T timers at the same time. For example, TON T32 and TOF T32 cannot be used at the same time (it may cause data confusion and not achieve the effect of the corresponding instruction function).
2154 +• Set the number of coordinate points of conversion data for scaling within the range of 1 to 32,767.
1155 1155  
2156 +• Setting example of conversion table for scaling.
2157 +
2158 +In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet.
2159 +
2160 +[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]]
2161 +
2162 +|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Set device and content**|(% rowspan="2" %)**Remarks**
2163 +|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content**
2164 +|(% colspan="2" %)Coordinate points|(s2)|R0|K10|
2165 +|(% rowspan="10" %)X coordinate|Point 1|(s2)+1|R1|K5|
2166 +|Point 2|(s2)+2|R2|K20|
2167 +|Point 3|(s2)+3|R3|K50|
2168 +|Point 4|(s2)+4|R4|K200|(% rowspan="3" %)Refer to** ✎1**
2169 +|Point 5|(s2)+5|R5|K200
2170 +|Point 6|(s2)+6|R6|K200
2171 +|Point 7|(s2)+7|R7|K250|
2172 +|Point 8|(s2)+8|R8|K350|(% rowspan="2" %)Refer to** ✎2**
2173 +|Point 9|(s2)+9|R9|K350
2174 +|Point 10|(s2)+10|R10|K400|
2175 +|(% rowspan="10" %)Y coordinate|Point 1|(s2)+11|R11|K7|
2176 +|Point 2|(s2)+12|R12|K30|
2177 +|Point 3|(s2)+13|R13|K100|
2178 +|Point 4|(s2)+14|R14|K25|(% rowspan="3" %)Refer to**✎1**
2179 +|Point 5|(s2)+15|R15|K70
2180 +|Point 6|(s2)+16|R16|K250
2181 +|Point 7|(s2)+17|R17|K90|
2182 +|Point 8|(s2)+18|R18|K90|(% rowspan="2" %)Refer to** ✎2**
2183 +|Point 9|(s2)+19|R19|K30
2184 +|Point 10|(s2)+20|R20|K7|
2185 +
2186 +✎**1** Like points 4, 5, and 6, if the coordinates are specified by 3 points, the intermediate value could be the output value.
2187 +
2188 +In this example, the output value (median value) is specified by the Y coordinate of point 5.
2189 +
2190 +When the X coordinate is the same at 3 or more points, the value of the second point is also output.
2191 +
2192 +✎**2** Like points 8 and 9, if the coordinates are specified by 2 points, the output value is the value of the Y coordinate of next point.
2193 +
2194 +In this example, the output value is specified by the Y coordinate of point 9.
2195 +
1156 1156  **Error code**
1157 1157  
1158 1158  |**Error code**|**Content**
1159 -|4084H|Input data in (s2) (s3) is outside the specified range.
1160 -|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range.
1161 -|4086H|Device tpye in (s1) is outside the specified range.
2199 +|4085H|When the specified device range for reading exceeds the range of the corresponding device.
2200 +|4086H|When the specified device range for writing exceeds the range of the corresponding device.
2201 +|4084H|(((
2202 +When the Xn data of data table is not sorted in ascending order. However, the instruction will be executed until the position where the error occurs;
1162 1162  
2204 +When the input value specified in (s1) exceeds the range of the set scale conversion data;
2205 +
2206 +When the number of start coordinate points of device (s2) is less than 0.
2207 +)))
2208 +
1163 1163  **Example**
1164 1164  
1165 -[[image:企业微信截图_1669174775341.png]]
2211 +[[image:07-5 Basic instructions_html_ace075fb7675de8e.gif]] [[image:07-5 Basic instructions_html_de529c9a16a62ef0.png]]
1166 1166  
2213 +When -100 ≤D0 (X) < 0, D100(Y)=
1167 1167  
1168 -T1 is used for storing time, setting the expected time as K5 and the time base as K10000.
2215 +[[image:07-5 Basic instructions_html_9acd6306c6d91847.gif]] when D0(X)=0, D100(Y)=0;
1169 1169  
1170 -When the enable input (M8) is on, the timer (T1) is started and the timer (T1) bit turns on immediately. Timer (T1) stops as time increases and reaches the expected time.
2217 +when 0 < D0(X) 100, D100(Y)=
1171 1171  
1172 -After timer (T1) reaches a predetermined time of 5s, timer (T1) bit is disconnected. At this time, timer (T1) stops increasing. If the enable input (M8) becomes FALSE, timer (T1) will reset. The expected time becomes 0.
2219 +[[image:07-5 Basic instructions_html_a5b19d1af74a9620.png]]
1173 1173  
1174 -After startup, if the enable input (M8) becomes FALSE before the timer (T1) reaches the estimated time of 5s, the timer will be reset after reaching the estimated time of 5s.
2221 +{{id name="_Toc5608"/}}{{id name="_Toc1756"/}}{{id name="_Toc21402"/}}**DSCL2/BIN 32-bit unit scale (X/Y coordinate data)**
2222 +
2223 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DSCL2(P)**
2224 +
2225 +The conversion data (32-bit data unit) for scaling specified in (s2) is scaled by the input value specified in (s1), and the operation result is stored in the device specified in (d).
2226 +
2227 +-[DSCL2 (s1) (s2) (d)]
2228 +
2229 +**Content, range and data type**
2230 +
2231 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
2232 +|(s1)|The input value for scaling or the start number of the device storing the input value|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S
2233 +|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 32 bit|ANY32_S
2234 +|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 32 bit|ANY32_S
2235 +
2236 +**Device used**
2237 +
2238 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
2239 +**Pulse**
2240 +
2241 +**extension**
2242 +)))
2243 +|**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**
2244 +|(% rowspan="3" %)DSCL2|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|●
2245 +|Parameter 2|||||||||||||||||●|●|●||||||●|●
2246 +|Parameter 3||||||||||||●|●|●|●|●|●|●|●|●|●||||●|●
2247 +
2248 +**Features**
2249 +
2250 +The conversion data (32-bit data unit) for scaling specified in (s2) is scaled by the input value specified in (s1), and the operation result is stored in the device number specified in (d). The scale conversion is performed based on the scale conversion data stored after the device specified in (s2).
2251 +
2252 +|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation**
2253 +|(% colspan="2" %)Coordinate points|(s2)+1, (s2)
2254 +|(% rowspan="4" %)X coordinate|Point 1|(s2)+3, (s2)+2
2255 +|Point 2|(s2)+5, (s2)+4
2256 +|.....|......
2257 +|Point n|(s2)+2n+1, (s2)+2n
2258 +|(% rowspan="4" %)Y coordinate|Point 1|(s2)+2n+3, (s2)+2n+2
2259 +|Point 2|(s2)+2n+5, (s2)+2n+4
2260 +|.....|.....
2261 +|Point n|(s2)+4n+1, (s2)+4n
2262 +
2263 +[[image:07-5 Basic instructions_html_6633ca18cee1218c.png]]
2264 +
2265 +• If the operation result is not an integer value, round the first digit below the decimal point.
2266 +
2267 +• The X coordinate data of the conversion data for scaling should be set in ascending order.
2268 +
2269 +• For (s1), set within the range of the conversion data for scaling ((s2), (s2) + 1 device value).
2270 +
2271 +• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output.
2272 +
2273 +• Set the number of coordinate points of conversion data for scaling within the range of 1 to 2,147,483,647.
2274 +
2275 +• Setting example of conversion table for scaling.
2276 +
2277 +In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet.
2278 +
2279 +[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]]
2280 +
2281 +|(% colspan="2" rowspan="2" %)**Set &nbsp;&nbsp;&nbsp;&nbsp;items**|(% colspan="3" %)**Set device and content**|(% rowspan="2" %)**Remarks**
2282 +|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content**
2283 +|(% colspan="2" %)Coordinate points|(s2)+1, (s2)|R1, R0|K10|
2284 +|(% rowspan="10" %)X|Point 1|(s2)+3, (s2)+2|R3, R2|K5|
2285 +|Point 2|(s2)+5, (s2)+4|R5, R4|K20|
2286 +|Point 3|(s2)+7, (s2)+6|R7, R6|K50|
2287 +|Point 4|(s2)+9, (s2)+8|R9, R8|K200|(% rowspan="3" %)Refer to** ✎1**
2288 +|Point 5|(s2)+11, (s2)+10|R10, R11|K200
2289 +|Point 6|(s2)+13, (s2)+12|R13, R12|K200
2290 +|Point 7|(s2)+15, (s2)+14|R15, R14|K250|
2291 +|Point 8|(s2)+17, (s2)+16|R17, R16|K350|(% rowspan="2" %)Refer to** ✎2**
2292 +|Point 9|(s2)+19, (s2)+18|R19, R18|K350
2293 +|Point 10|(s2)+21, (s2)+20|R21, R20|K400|
2294 +|(% rowspan="10" %)Y coordinate|Point 1|(s2)+23, (s2)+22|R23, R22|K7|
2295 +|Point 2|(s2)+25, (s2)+24|R25, R24|K30|
2296 +|Point 3|(s2)+27, (s2)+26|R27, R26|K100|
2297 +|Point 4|(s2)+29, (s2)+28|R29, R28|K25|(% rowspan="3" %)Refer to** ✎1**
2298 +|Point 5|(s2)+31, (s2)+30|R31, R30|K70
2299 +|Point 6|(s2)+33, (s2)+32|R33, R32|K250
2300 +|Point 7|(s2)+35, (s2)+34|R35, R34|K90|
2301 +|Point 8|(s2)+37, (s2)+36|R37, R36|K90|(% rowspan="2" %)Refer to** ✎2**
2302 +|Point 9|(s2)+39, (s2)+38|R39, R38|K30
2303 +|Point 10|(s2)+41, (s2)+40|R41, R40|K7|
2304 +
2305 +✎**1** Like points 4, 5, and 6, if the coordinates are specified by 3 points, the intermediate value could be the output value.
2306 +
2307 +In this example, the output value (median value) is specified by the Y coordinate of point 5.
2308 +
2309 +When the X coordinate is the same at 3 or more points, the value of the second point is also output.
2310 +
2311 +✎**2** Like points 8 and 9, if the coordinates are specified by 2 points, the output value is the value of the Y coordinate of the next point.
2312 +
2313 +In this example, the output value is specified by the Y coordinate of point 9.
2314 +
2315 +**Error code**
2316 +
2317 +|**Error code**|**Content**
2318 +|4085H|When the specified device range for reading exceeds the range of the corresponding device.
2319 +|4086H|When the specified device range for writing exceeds the range of the corresponding device.
2320 +|4084H|(((
2321 +When the Xn data of data table is not sorted in ascending order. However, the instruction will be executed until the position where the error occurs;
2322 +
2323 +When the input value specified in (s1) exceeds the range of the set scale conversion data;
2324 +
2325 +When the number of start coordinate points of device (s2) is less than 0.
2326 +)))
2327 +
2328 +**Example**
2329 +
2330 +[[image:07-5 Basic instructions_html_91dbc16faa9d2ec3.png]]
2331 +
2332 +When -100 ≤D0(X) < 0, D100(Y)=,,[[image:07-5 Basic instructions_html_2c96d630f666e72c.gif]] ,,;
2333 +
2334 +when D0(X)=0, D100(Y)=0;
2335 +
2336 +when 0< D0(X) ≤ 100, D100(Y)=,,[[image:07-5 Basic instructions_html_47ebf5cc7733fccc.gif]] ,,.
2337 +
2338 +[[image:07-5 Basic instructions_html_a5b19d1af74a9620.png]]
2339 +
2340 +{{id name="_Toc32057"/}}{{id name="_Toc9941"/}}{{id name="_Toc6492"/}}**ZONE/BIN 16-bit data zone control**
2341 +
2342 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **ZONE(P)**
2343 +
2344 +After adding the offset value specified in (s1) or (s2) to the input value specified in (s3), it is stored in the device number specified in (d).
2345 +
2346 +-[ZONE (s1) (s2) (s3) (d)]
2347 +
2348 +**Content, range and data type**
2349 +
2350 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
2351 +|s1|The negative offset value for addition in the input value|-32,768 to 32,767|BIN16 bit|ANY16_S
2352 +|s2|The positive offset value for addition in the input value|-32,768 to 32,767|BIN16 bit|ANY16_S
2353 +|s3|Input value for zone control`|-32,768 to 32,767|BIN16 bit|ANY16_S
2354 +|d|The start number of the device storing the output value controlled by zone control|-|BIN16 bit|ANY16_S
2355 +
2356 +**Device used**
2357 +
2358 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
2359 +**Pulse**
2360 +
2361 +**extension**
2362 +)))
2363 +|**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**
2364 +|(% rowspan="4" %)ZONE|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|●
2365 +|Parameter 2|||||||||||●|●|●|●|●|●|●|●|●|||●|●||●|●
2366 +|Parameter 3|||||||||||●|●|●|●|●|●|●|●|●||||||●|●
2367 +|Parameter 4||||||||||||●|●|●|●|●|●|●|●||||||●|●
2368 +
2369 +**Features**
2370 +
2371 +After adding the offset value specified in (s1) or (s2) to the input value (BIN 16-bit value) specified in (s3), it is stored in the device number specified in (d). The offset value is controlled as follows.
2372 +
2373 +|**Condition**|**The value stored in the output value**
2374 +|When input value (s3)<0|Input value (s3) + negative offset value (s1)
2375 +|When input value (s3)=0|0
2376 +|When input value (s3)>0|Input value (s3) + positive offset value (s2)
2377 +
2378 +
2379 +
2380 +(((
2381 +• When the output value stored in (d) is a signed BIN 16-bit value, and the operation result exceeds the range of -32,768 to 32,767, the situation is shown in the following example.
2382 +
2383 +For example, when (s1) is -100 and (s3) is -32,768,
2384 +
2385 +the output value = -32768+(-100)=8000H-FF9CH=7F9CH=32668.
2386 +
2387 +[[image:07-5 Basic instructions_html_a2adbf9ccf8f839.png]]
2388 +
2389 +
2390 +)))
2391 +
2392 +**Error code**
2393 +
2394 +|**Error code**|**Content**
2395 +|4085H|When the specified device range for reading exceeds the range of the corresponding device
2396 +|4086H|When the specified device range for writing exceeds the range of the corresponding device
2397 +
2398 +**Example**
2399 +
2400 +[[image:07-5 Basic instructions_html_5da523c7765bf5be.png]]
2401 +
2402 +When X000 is ON
2403 +
2404 +• When D0<0, the value of (D0)+(-1,000) is stored in D1.
2405 +
2406 +• When D0=0, 0 is stored in D1.
2407 +
2408 +• When 0<D0, the value of (D0)+(1,000) is stored in D1.
2409 +
2410 +{{id name="_Toc28351"/}}{{id name="_Toc11023"/}}{{id name="_Toc30269"/}}**DZONE/BIN 32-bit data zone control**
2411 +
2412 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] DZONE(P)
2413 +
2414 +After adding the offset value specified in (s1) or (s2) to the input value specified in (s3), it is stored in the device number specified in (d).
2415 +
2416 +-[DZONE (s1) (s2) (s3) (d)]
2417 +
2418 +**Content, range and data type**
2419 +
2420 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
2421 +|(s1)|The negative offset value for addition in the input value|-2147483648 to 2147483647|BIN32 bit|ANY32_S
2422 +|(s2)|The positive offset value for addition in the input value|-2147483648 to 2147483647|BIN32 bit|ANY32_S
2423 +|(s3)|Input value for zone control|-2147483648 to 2147483647|BIN32 bit|ANY32_S
2424 +|(d)|The start number of the device storing the output value controlled by zone control|-|BIN32 bit|ANY32_S
2425 +
2426 +**Device used**
2427 +
2428 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
2429 +**Pulse**
2430 +
2431 +**extension**
2432 +)))
2433 +|**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**
2434 +|(% rowspan="4" %)DZONE|Parameter 1|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|●
2435 +|Parameter 2|||||||||||●|●|●|●|●|●|●|●|●|●|●|●|●||●|●
2436 +|Parameter 3|||||||||||●|●|●|●|●|●|●|●|●|●|●||||●|●
2437 +|Parameter 4||||||||||||●|●|●|●|●|●|●|●|●|●||||●|●
2438 +
2439 +**Features**
2440 +
2441 +After adding the offset value specified in (s1) or (s2) to the input value (BIN 32-bit value) specified in (s3), it is stored in the device number specified in (d). The offset value is controlled as follows.
2442 +
2443 +|**Condition**|**The value stored in the output value**
2444 +|When input value ((s3), (s3)+1)<0|Input value ((s3), (s3)+1) + negative offset value (s1), (s1)+1
2445 +|When input value ((s3), (s3)+1)=0|0
2446 +|When input value ((s3), (s3)+1)>0|Input value ((s3), (s3)+1) + positive offset value (s2), (s2)+1
2447 +
2448 +
2449 +
2450 +(((
2451 +• When the output value stored in (d) and (d)+1 is a signed BIN 32-bit value, and the operation result exceeds the range of -2,147,483,648 to 2,147,483,647, the situation is shown in the following example.
2452 +
2453 +For example, (s1), (s1)+1 is -1,000, (s3), (s3)+1 is -2,147,483,648, then the output value=-2,147,483,648+(-1000)=80000000H+FFFFFC18H=2,147,482,648.
2454 +
2455 +[[image:07-5 Basic instructions_html_2f3a96a2565c75c7.png]]
2456 +)))
2457 +
2458 +**Error code**
2459 +
2460 +|**Error code**|**Content**
2461 +|4085H|When the specified device range for reading exceeds the range of the corresponding device
2462 +|4086H|When the specified device range for writing exceeds the range of the corresponding device
2463 +
2464 +**Example**
2465 +
2466 +[[image:07-5 Basic instructions_html_b831b14748df07ab.png]]
2467 +
2468 +• When (D1, D0)<0, the value of (D1, D0)+(-10,000) is stored in (D11, D10).
2469 +
2470 +• When (D1, D0)=0, 0 is stored in (D11, D10).
2471 +
2472 +• When 0<(D1, D0), the value of (D1, D0)+10,000 is stored in (D11, D10).
2TC2DAI.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Jim
Size
... ... @@ -1,1 +1,0 @@
1 -8.8 KB
Content
企业微信截图_16691725418532.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Bob
Size
... ... @@ -1,1 +1,0 @@
1 -17.1 KB
Content
企业微信截图_16691727487041.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Jim
Size
... ... @@ -1,1 +1,0 @@
1 -17.1 KB
Content
企业微信截图_16691729278938.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Bob
Size
... ... @@ -1,1 +1,0 @@
1 -4.8 KB
Content
企业微信截图_16691733488965.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Bob
Size
... ... @@ -1,1 +1,0 @@
1 -16.1 KB
Content
企业微信截图_16691733566206.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Bob
Size
... ... @@ -1,1 +1,0 @@
1 -6.4 KB
Content
企业微信截图_16691735281572.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Bob
Size
... ... @@ -1,1 +1,0 @@
1 -5.2 KB
Content
企业微信截图_16691735325382.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Bob
Size
... ... @@ -1,1 +1,0 @@
1 -14.8 KB
Content
企业微信截图_16691747709508.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Bob
Size
... ... @@ -1,1 +1,0 @@
1 -8.4 KB
Content
企业微信截图_1669174775341.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Bob
Size
... ... @@ -1,1 +1,0 @@
1 -4.2 KB
Content