Changes for page 12 Clock operation

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

From version 1.2
edited by Joey
on 2022/06/09 15:22
Change comment: (Autosaved)
To version 6.1
edited by Jim
on 2022/07/13 20:57
Change comment: Renamed from xwiki:PLC Editor2.1 User manual.2\.1 LX5V user manual.07.12.WebHome

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +12 Clock operation instruction
Parent
... ... @@ -1,1 +1,1 @@
1 -PLC Editor2.1 User manual.2\.1 LX5V user manual.WebHome
1 +PLC Editor2.1 User manual.2\.1 LX5V user manual.07.WebHome
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Joey
1 +XWiki.Jim
Content
... ... @@ -1,385 +1,5 @@
1 -= **Contact comparison instruction** =
1 +== **TADD/The addition of clock data** ==
2 2  
3 -== **Signed 16-bit contact comparison instruction** ==
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 -(% style="text-align:center" %)
18 -[[image:07-5 Basic instructions_html_63210db6b7e1512f.png]]
19 -
20 -(You can enter "=", "<>", ">", "<", ">=", "<=" in "£")
21 -
22 -**Content, range and data type**
23 -
24 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
25 -|(s1)|Comparison data or device storing comparison data|-32768 to 32767|Signed BIN 16 bit|ANY16_S
26 -|(s2)|Comparison data or device storing comparison data|-32768 to 32767|Signed BIN 16 bit|ANY16_S
27 -
28 -**Device used**
29 -
30 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|(((
31 -**Offset modification**
32 -)))|(((
33 -**Pulse extension**
34 -)))
35 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**[D]**|**XXP**
36 -|LD=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
37 -|LD>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
38 -|LD<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
39 -|LD>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
40 -|LD<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
41 -|LD<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
42 -|AND=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
43 -|AND>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
44 -|AND<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
45 -|AND>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
46 -|AND<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
47 -|AND<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
48 -|OR=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
49 -|OR>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
50 -|OR<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
51 -|OR>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
52 -|OR<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
53 -|OR<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|
54 -
55 -**Features**
56 -
57 -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.
58 -
59 -The comparison operation result of each instruction is shown below.
60 -
61 -|**Instruction Sign**|**Condition**|**Comparison operation result**|**Instruction Sign**|**Condition**|**Comparison operation result**
62 -|==|(s1)=(s2)|(% rowspan="6" %)On state|==|(s1)≠(s2)|(% rowspan="6" %)Non-conduction state
63 -|<>|(s1)≠(s2)|<>|(s1)=(s2)
64 -|>|(s1)>(s2)|>|(s1)≤(s2)
65 -|<|(s1)<(s2)|<|(s1)≥(s2)
66 -|>=|(s1)≥(s2)|>=|(s1)<(s2)
67 -|<=|(s1)≤(s2)|<=|(s1)>(s2)
68 -
69 -**Error code**
70 -
71 -|**Error code**|**Content**
72 -|4085H|(s) read address exceeds the device range
73 -
74 -**Example**
75 -
76 -(((
77 -(1) When the current value of counter C10 is 200, Y10 is set
78 -
79 -When the content of D200 is above -29, and X1 is ON, Y11 is set
80 -
81 -LD£ instruction:
82 -
83 -(% style="text-align:center" %)
84 -[[image:07-5 Basic instructions_html_1309199eccc7134.png]]
85 -)))
86 -
87 -(2) AND£ instruction
88 -
89 -(((
90 -When X0 is ON, or when the current value of counter C10 is 200, Y10 is set
91 -
92 -When X1 is OFF, and the content of data counter D0 is not -10, Y11 is set
93 -
94 -(% style="text-align:center" %)
95 -[[image:07-5 Basic instructions_html_1c966f74b0bd808e.png]]
96 -
97 -
98 -)))
99 -
100 -(3) OR£ instruction:
101 -
102 -(((
103 -When X1 is ON, or when the current value of counter C10 is 200, Y0 is set
104 -
105 -When X2 and M30 are ON, or the content of register D100 is K10000 and above, M60 is set
106 -
107 -(% style="text-align:center" %)
108 -[[image:07-5 Basic instructions_html_8b000809015ea436.png]]
109 -)))
110 -
111 -== **Signed 32-bit contact comparison instruction** ==
112 -
113 -**LDD £, ANDD £, ORD £**
114 -
115 -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.
116 -
117 -LDD£: Normally open contact comparison command
118 -
119 -ANDD£: Normally open contact series link comparison instruction
120 -
121 -ORD£: Normally open contact parallel link comparison instruction
122 -
123 -**Ladder diagram**
124 -
125 -(% style="text-align:center" %)
126 -[[image:07-5 Basic instructions_html_63210db6b7e1512f.png]]
127 -
128 -“=”, “<>”, “>”, “<”, “>=”, “<=” can be input in “£”
129 -
130 -**Content, range and data type**
131 -
132 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
133 -|(s1)|Comparison data or device storing comparison data|-2147483648 to 2147483647|Signed BIN 32 bit|ANY32_S
134 -|(s2)|Comparison data or device storing comparison data|-2147483648 to 2147483647|Signed BIN 32 bit|ANY32_S
135 -
136 -**Device used**
137 -
138 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="14" %)**Devices**|(((
139 -**Offset modification**
140 -)))|(((
141 -**Pulse extension**
142 -)))
143 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
144 -|LDD=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
145 -|LDD>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
146 -|LDD<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
147 -|LDD>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
148 -|LDD<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
149 -|LDD<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
150 -|ANDD=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
151 -|ANDD>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
152 -|ANDD<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
153 -|ANDD>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
154 -|ANDD<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
155 -|ANDD<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
156 -|ORD=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
157 -|ORD>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
158 -|ORD<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
159 -|ORD>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
160 -|ORD<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
161 -|ORD<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●| |●|
162 -
163 -**Features**
164 -
165 -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.
166 -
167 -The comparison operation result of each instruction is shown below.
168 -
169 -|**Instruction Sign**|**Condition**|**Comparison operation result**|**Instruction Sign**|**Condition**|**Comparison operation result**
170 -|==|(s1)=(s2)|(% rowspan="6" %)On state|==|(s1)≠(s2)|(% rowspan="6" %)Non-conduction state
171 -|<>|(s1)≠(s2)|<>|(s1)=(s2)
172 -|>|(s1)>(s2)|>|(s1)≤(s2)
173 -|<|(s1)<(s2)|<|(s1)≥(s2)
174 -|>=|(s1)≥(s2)|>=|(s1)<(s2)
175 -|<=|(s1)≤(s2)|<=|(s1)>(s2)
176 -
177 -**Error code**
178 -
179 -|**Error code**|**Content**
180 -|4085H|(S) read address exceeds the device range
181 -
182 -**Example**
183 -
184 -(1) LDD£ instruction:
185 -
186 -When the data of LC10 is 200000, Y10 is set, otherwise Y10 is reset.
187 -
188 -When the 32-bit data composed of D201 and D200 exceeds -5000, and X1 is ON, Y11 is turned ON.
189 -
190 -1. ANDD£ instruction:
191 -
192 -[[image:07-5 Basic instructions_html_38be93eec0ced6c.png]]
193 -
194 -When X0 is ON and the value of LC10 is 200000, Y10 is set, otherwise it is reset.
195 -
196 -When X1 is OFF and the 32-bit data composed of D1 and D0 is not equal to K-50000, Y11 is set.
197 -
198 -1. ORD£ instruction:
199 -
200 -[[image:07-5 Basic instructions_html_8ebfc7b0562cf370.png]]
201 -
202 -When X1 is ON, or the data of LC10 is equal to the data of LC10 is equal to 200000, Y0 is set.
203 -
204 -When X2 and M30 are set, or the double word data composed of D101 and D100 is greater than or equal to 100000, M60 is set.
205 -
206 -{{id name="_Toc28789"/}}{{id name="_Toc29577"/}}**Single precision real number contact comparison instruction**
207 -
208 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **LDE £, ANDE £, ORE £**
209 -
210 -The single precision real number of the device specified in (s1) and the single precision real number of the device specified in (s2) are compared by normal open contact processing.
211 -
212 -LDE□: Normally open contact comparison command
213 -
214 -ANDE□: Normally open contact series link comparison instruction
215 -
216 -ORE□: Normally open contact parallel link comparison instruction
217 -
218 -**Ladder diagram**
219 -
220 -[[image:07-5 Basic instructions_html_6ac28f30e24ad296.png]]
221 -
222 -“=”, “<>”, “>”, “<”, “>=”, “<=” can be input in “£”
223 -
224 -**Content, range and data type**
225 -
226 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
227 -|(s1)|{{id name="OLE_LINK28"/}}Comparison data or the device start number storing the comparison data|{{id name="OLE_LINK339"/}}0, 2^^-126^^ ≤~|(s)~|< 2^^128^^|Single precision real number|ANYREAL_32
228 -|(s2)|Comparison data or the device start number storing the comparison data|0, 2^^-126^^ ≤~|(s)~|< 2^^128^^|Single precision real number|ANYREAL_32
229 -
230 -**Device used**
231 -
232 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
233 -**Offset**
234 -
235 -**modification**
236 -)))|(((
237 -**Pulse**
238 -
239 -**extension**
240 -)))
241 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
242 -|LDE=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
243 -|LDE>|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
244 -|LDE<|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
245 -|LDE>=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
246 -|LDE<=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
247 -|LDE<>|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
248 -|ANDE=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
249 -|ANDE>|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
250 -|ANDE<|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
251 -|ANDE>=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
252 -|ANDE<=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
253 -|ANDE<>|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
254 -|ORE=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
255 -|ORD>|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
256 -|ORE<|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
257 -|ORE>=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
258 -|ORE<=|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
259 -|ORE<>|s1, s2| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | |●|●|
260 -
261 -**Features**
262 -
263 -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.
264 -
265 -The comparison operation result of each instruction is shown below.
266 -
267 -|**Instruction Sign**|**Condition**|**Comparison operation result**|**Instruction Sign**|**Condition**|**Comparison operation result**
268 -|E=|(s1)=(s2)|(% rowspan="6" %)On state|E=|(s1)≠(s2)|(% rowspan="6" %)Non-conduction state
269 -|E<>|(s1)≠(s2)|E<>|(s1)=(s2)
270 -|E>|(s1)>(s2)|E>|(s1)≤(s2)
271 -|E<|(s1)<(s2)|E<|(s1)≥(s2)
272 -|E>=|(s1)≥(s2)|E>=|(s1)<(s2)
273 -|E<=|(s1)≤(s2)|E<=|(s1)>(s2)
274 -
275 -**Error code**
276 -
277 -|**Error code**|**Content**
278 -|4084H|{{id name="OLE_LINK340"/}}When the content of the specified device by (s1) and (s2) is an irregular number, a non-number, or ±∞
279 -|4085H|{{id name="OLE_LINK343"/}}The read address of (s1) and (s2exceeds the device range
280 -
281 -**Example**
282 -
283 -1. LDE£ instruction:
284 -
285 -[[image:07-5 Basic instructions_html_c4c820cf59601493.png]]
286 -
287 -When the real number input in D0 is equal to E1.23, Y10 is ON, otherwise Y10 is OFF.
288 -
289 -When the real number in R0 is greater than or equal to the real number in LC0, Y11 is ON, otherwise it is OFF.
290 -
291 -If the input in D0, R0, LC0 is not a real number, it will report H4084 error.
292 -
293 -1. ANDE£ instruction:
294 -
295 -[[image:07-5 Basic instructions_html_7cdd2117360e179b.png]]
296 -
297 -Only when M0 is ON and D2 real number is not equal to E1.23 and R2 real number is less than real number LC2 , Y12 is ON, otherwise all are OFF.
298 -
299 -1. ORE£ instruction:
300 -
301 -[[image:07-5 Basic instructions_html_3eba0bd56176441d.png]]
302 -
303 -When the real number of R4 is less than or equal to the real number of R15, or the real number R6 is equal to the real number R20, Y13 is ON, otherwise Y13 is OFF.
304 -
305 -{{id name="_Toc16295"/}}{{id name="_Toc20251"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **String comparison**
306 -
307 -**LDS£、ANDS£、 ORS£**
308 -
309 -{{id name="OLE_LINK27"/}}Compare the string stored after the device number specified in (s1) with the string stored after the device number specified in (s2).
310 -
311 -LDS£: String comparison instruction
312 -
313 -ANDS£: String serial connection comparison instruction
314 -
315 -{{id name="OLE_LINK341"/}}ORS£: String parallel connection comparison instruction
316 -
317 -**Ladder diagram**
318 -
319 -[[image:07-5 Basic instructions_html_5fb3b3b70645fef5.png]]
320 -
321 -“=” and “<>” could be entered in “£”
322 -
323 -**Content, range and data type**
324 -
325 -|**Parameter**|**Content**|**Range**|**Date type**|**Date type(label)**
326 -|(S1)|{{id name="OLE_LINK342"/}}Connection data or the device start number storing the data or the string specified directly|-|String|ANYSTRING_SINGLE
327 -|(S1)|Connection data or the device start number storing the data or the string specified directly|-|{{id name="OLE_LINK29"/}}String|ANYSTRING_SINGLE
328 -
329 -**Device used**
330 -
331 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
332 -**Offset**
333 -
334 -**modification**
335 -)))|(((
336 -**Pulse**
337 -
338 -**extension**
339 -)))
340 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
341 -|LDS=|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
342 -|LDS<>|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
343 -|ANDS=|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
344 -|ANDS<>|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
345 -|ORS=|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
346 -|ORS<>|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
347 -
348 -**Features**
349 -
350 -• Compare the string stored after the device number specified in (s1) with the string stored after the device number specified in (s2).
351 -
352 -• The comparison operation result of each instruction is shown below.
353 -
354 -|**Instruction sign**|**Condition**|**Comparison operation result**|**Instruction sign**|**Condition**|**Comparison operation result**
355 -|= |(s1)=(s2)|(% rowspan="2" %)On stat|= |(s1)≠(s2)|(% rowspan="2" %)Non-conduction state
356 -|<>|(s1)≠(s2)|<>|(s1)=(s2)
357 -
358 -**Error code**
359 -
360 -|**Error code**|**Content**
361 -|4085H|The read address of (s1) or (s2) exceeds the device range
362 -|408AH|The length of the read string of (s1) or (s2) exceeds, and the continuous length of the string exceeds 400 characters.
363 -|408BH|When (s1) or (s2) reading the string, the maximum range of the device is read but 00H is not found as the end.
364 -
365 -**Example**
366 -
367 -1. 1、LDS£ instruction
368 -
369 -[[image:07-5 Basic instructions_html_449a071f61ff5b58.png]]
370 -
371 -1. ANDS£ instruction
372 -
373 -[[image:07-5 Basic instructions_html_dd6aa995d193bdd2.png]]
374 -
375 -1. ORS£ instruction
376 -
377 -[[image:07-5 Basic instructions_html_4f8fb7c94f87c58d.png]]
378 -
379 -{{id name="_Toc11737"/}}[[image:07-5 Basic instructions_html_a2e3294e01b2f206.gif]] **7.12 Clock operation instruction**
380 -
381 -{{id name="_Toc9100"/}}{{id name="_Toc26958"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TADD/The addition of clock data**
382 -
383 383  **TADD(P)**
384 384  
385 385  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) .
... ... @@ -389,7 +389,7 @@
389 389  **Content, range and data type**
390 390  
391 391  |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
392 -|(s1)|{{id name="OLE_LINK345"/}}The device start number that stores the added time data|-|Signed BIN 16 bit|(((
12 +|(s1)|The device start number that stores the added time data|-|Signed BIN 16 bit|(((
393 393  ANY16_ARRAY
394 394  
395 395  (number of elements: 3)
... ... @@ -407,35 +407,34 @@
407 407  
408 408  **Device used**
409 409  
410 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
411 -**Offset**
412 -
413 -**modification**
30 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="5" %)**Devices**|(((
31 +**Offset modification**
414 414  )))|(((
415 -**Pulse**
416 -
417 -**extension**
33 +**Pulse extension**
418 418  )))
419 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
420 -|(% rowspan="3" %)TADD|Parameter 1| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
421 -|Parameter 2| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
422 -|Parameter 3| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
35 +|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
36 +|(% rowspan="3" %)TADD|Parameter 1|●|●|●|●|●|●|●
37 +|Parameter 2|●|●|●|●|●|●|●
38 +|Parameter 3|●|●|●|●|●|●|●
423 423  
424 424  **Features**
425 425  
426 426  Add the time data specified in (s1) and the time data specified in (s2), and store the result of the addition in the device number specified in (d) or later.
427 427  
428 -[[image:07-5 Basic instructions_html_37222a6e282347f9.png]]
44 +(% style="text-align:center" %)
45 +[[image:07-5 Basic instructions_html_37222a6e282347f9.png||height="79" width="750"]]
429 429  
430 430  **Example**
431 431  
432 432  When 6:32:40 and 7:48:10 are added together
433 433  
434 -[[image:07-5 Basic instructions_html_90138670198ab422.png]]
51 +(% style="text-align:center" %)
52 +[[image:07-5 Basic instructions_html_90138670198ab422.png||height="94" width="750"]]
435 435  
436 436  When the calculation result time exceeds 24 o'clock, the carry flag turns ON, and the value after 24 hours is subtracted becomes the calculation result. For example, when 14:20:30 and 20:20:20 are added, the result is not 34:40:50, but 10:40:50.
437 437  
438 -[[image:07-5 Basic instructions_html_bac419ce2dc0dc2.png]]
56 +(% style="text-align:center" %)
57 +[[image:07-5 Basic instructions_html_bac419ce2dc0dc2.png||height="91" width="750"]]
439 439  
440 440  When the calculation result is 0 (0 hour, 0 minute, 0 second), the zero flag turns on.
441 441  
... ... @@ -447,7 +447,7 @@
447 447  |SM151|Carry|It is ON when the result of the TADD(P) instruction exceeds the maximum clock data value of 23:59:59
448 448  |SM153|Zero|It is ON when the result of the TADD(P) instruction is 0:00:00
449 449  
450 -✎**Note**
69 +✎**Note:**
451 451  
452 452  The devices specified in (s1), (s2), (d) occupy 3 points respectively. Be careful not to overlap with the device used for machine control.
453 453  
... ... @@ -456,7 +456,7 @@
456 456  **Error code**
457 457  
458 458  |**Error code**|**Content**
459 -|4085H|{{id name="OLE_LINK344"/}}When reading the specified device range exceeds the corresponding device range
78 +|4085H|When reading the specified device range exceeds the corresponding device range
460 460  |4086H|When writing the specified device range exceeds the corresponding device range
461 461  |4084H|(((
462 462  When the values specified in (s1) and (s2) are other than 0 to 23
... ... @@ -466,24 +466,26 @@
466 466  
467 467  **Example**
468 468  
469 -[[image:07-5 Basic instructions_html_4f75eedee7172bbb.png]]
88 +(% style="text-align:center" %)
89 +[[image:07-5 Basic instructions_html_4f75eedee7172bbb.png||height="35" width="349"]]
470 470  
471 471  Set D0 time to 16:30:00 and D10 time to 4:30:0
472 472  
93 +(% style="text-align:center" %)
473 473  [[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]]
474 474  
96 +(% style="text-align:center" %)
475 475  [[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]]
476 476  
477 477  After the coil is turned on, the D20 time is 21:0:0
478 478  
101 +(% style="text-align:center" %)
479 479  [[image:07-5 Basic instructions_html_a9b235835aa41200.png]]
480 480  
104 +== **TSUB/The subtraction of clock data** ==
481 481  
106 +**TSUB(P)**
482 482  
483 -{{id name="_Toc6604"/}}{{id name="_Toc16422"/}}**TSUB/The subtraction of clock data**
484 -
485 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TSUB(P)**
486 -
487 487  Subtract the time data stored after the device number specified in (s1) and the time data stored after the device number specified in (s2), and store the subtraction result in the device number specified in (d) or later .
488 488  
489 489  -[TSUB (s1) (s2) (d)]
... ... @@ -509,24 +509,21 @@
509 509  
510 510  **Device used**
511 511  
512 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
513 -**Offset**
514 -
515 -**modification**
133 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="5" %)**Devices**|(((
134 +**Offset modification**
516 516  )))|(((
517 -**Pulse**
518 -
519 -**extension**
136 +**Pulse extension**
520 520  )))
521 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
522 -|(% rowspan="3" %)TSUB|Parameter 1| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
523 -|Parameter 2| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
524 -|Parameter 3| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
138 +|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
139 +|(% rowspan="3" %)TSUB|Parameter 1|●|●|●|●|●|●|●
140 +|Parameter 2|●|●|●|●|●|●|●
141 +|Parameter 3|●|●|●|●|●|●|●
525 525  
526 526  **Features**
527 527  
528 528  Subtract the time data specified in (s1) and the time data specified in (s2), and store the subtraction result in the device number specified in (d) or later.
529 529  
147 +(% style="text-align:center" %)
530 530  [[image:07-5 Basic instructions_html_5a93455e4cd8a27.png]]
531 531  
532 532  **Example**
... ... @@ -533,10 +533,12 @@
533 533  
534 534  When subtracting 10:40:20 and 3:50:10
535 535  
154 +(% style="text-align:center" %)
536 536  [[image:07-5 Basic instructions_html_2473f03fc493780c.png]]
537 537  
538 538  When the calculation result time is a negative number, the borrow flag turns on and the data +24 is the calculation result. For example, in the case of subtracting 4:50:32 and 10:42:12, the result is not -6:8:20, but 18:8:20.
539 539  
159 +(% style="text-align:center" %)
540 540  [[image:07-5 Basic instructions_html_24b998b4c3c4ec73.png]]
541 541  
542 542  When the calculation result is 0 (0 hour, 0 minute, 0 second), the zero flag turns on.
... ... @@ -547,7 +547,7 @@
547 547  |SM152|Borrow|It is ON when the result of the TSUB(P) instruction is less than 0:00:00
548 548  |SM153|Zero|It is ON when the result of the TSUB(P) instruction is at the time of 0:00:00:00
549 549  
550 -✎**Note**
170 +✎**Note:**
551 551  
552 552  • The devices specified in (s1), (s2), and (d) occupy 3 points respectively. Be careful not to overlap with the device used for machine control.
553 553  
... ... @@ -566,19 +566,23 @@
566 566  
567 567  **Example**
568 568  
569 -[[image:07-5 Basic instructions_html_e3a5d4793d3ccd2d.png]]
189 +(% style="text-align:center" %)
190 +[[image:07-5 Basic instructions_html_e3a5d4793d3ccd2d.png||height="36" width="372"]]
570 570  
571 571  Set D0 time to 16:30:00 and D10 time to 4:30:0
572 572  
194 +(% style="text-align:center" %)
573 573  [[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]]
574 574  
197 +(% style="text-align:center" %)
575 575  [[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]]
576 576  
577 577  After the coil is turned on, the D20 time is 12:00:00
578 578  
202 +(% style="text-align:center" %)
579 579  [[image:07-5 Basic instructions_html_8f93ea19ba10652b.png]]
580 580  
581 -{{id name="_Toc10358"/}}{{id name="_Toc12073"/}}[[image:07-5 Basic instructions_html_501fb256fd034ca6.gif]] **TRD/Clock data reading**
205 +**TRD/Clock data reading**
582 582  
583 583  **TRD(P)**
584 584  
... ... @@ -597,17 +597,13 @@
597 597  
598 598  **Device used**
599 599  
600 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
601 -**Offset**
602 -
603 -**modification**
224 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="4" %)**Devices**|(((
225 +**Offset modification**
604 604  )))|(((
605 -**Pulse**
606 -
607 -**extension**
227 +**Pulse extension**
608 608  )))
609 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
610 -|TRD|Parameter 1| | | | | | | | | | | | | | |●|●|●|●| | | | | | |●|●
229 +|**T**|**C**|**D**|**R**|**[D]**|**XXP**
230 +|TRD|Parameter 1|●|●|●|●|●|●
611 611  
612 612  **Features**
613 613  
... ... @@ -633,7 +633,7 @@
633 633  |SD105|The year data of the clock data is stored in a 4-digit BIN code of the Gregorian calendar.
634 634  |SD106|The week data of the clock data is stored in BIN code. (0: day, 1: one, ..., 6: six) are stored in BIN code.
635 635  
636 -✎**Note**
256 +✎**Note:**
637 637  
638 638  • The device specified in (d) occupies 7 points. Be careful not to overlap with the device used for machine control.
639 639  
... ... @@ -644,15 +644,17 @@
644 644  
645 645  **Example**
646 646  
647 -[[image:07-5 Basic instructions_html_b81c1991fec5b4b1.png]]
267 +(% style="text-align:center" %)
268 +[[image:07-5 Basic instructions_html_b81c1991fec5b4b1.png||height="68" width="250"]]
648 648  
649 649  After the M0 coil is turned on, the current date and time are read as 2020-2-19 13:10:38 Wednesday
650 650  
651 -[[image:07-5 Basic instructions_html_fe82ecd18ebfd787.png]]
272 +(% style="text-align:center" %)
273 +[[image:07-5 Basic instructions_html_fe82ecd18ebfd787.png||height="48" width="602"]]
652 652  
653 -{{id name="_Toc24237"/}}{{id name="_Toc487"/}}**TWR/Clock data writing**
275 +== **TWR/Clock data writing** ==
654 654  
655 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TWR(P)**
277 +**TWR(P)**
656 656  
657 657  Write the clock data of the built-in real-time clock of the CPU module.
658 658  
... ... @@ -665,17 +665,13 @@
665 665  
666 666  **Device used**
667 667  
668 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
669 -**Offset**
670 -
671 -**modification**
290 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="4" %)**Devices**|(((
291 +**Offset modification**
672 672  )))|(((
673 -**Pulse**
674 -
675 -**extension**
293 +**Pulse extension**
676 676  )))
677 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
678 -|TWR|Parameter 1| | | | | | | | | | | | | | |●|●|●|●| | | | | | |●|●
295 +|**T**|**C**|**D**|**R**|**[D]**|**XXP**
296 +|TWR|Parameter 1|●|●|●|●|●|●
679 679  
680 680  **Features**
681 681  
... ... @@ -710,7 +710,7 @@
710 710  |SD105|The year data of the clock data is stored in a 4-digit BIN code of the Gregorian calendar.
711 711  |SD106|The week data of the clock data is stored in BIN code. (0: day, 1: one, ..., 6: six) are stored in BIN code.
712 712  
713 -✎**Note**
331 +✎**Note:**
714 714  
715 715  The device specified in (s) occupies 7 points. Be careful not to overlap with the device used for machine control.
716 716  
... ... @@ -723,13 +723,15 @@
723 723  
724 724  Set D0 date and time to 2020-2-19 12:36:00 in advance
725 725  
726 -[[image:07-5 Basic instructions_html_994c66d1a4cbd45f.png]]
344 +(% style="text-align:center" %)
345 +[[image:07-5 Basic instructions_html_994c66d1a4cbd45f.png||height="57" width="305"]]
727 727  
728 728  At the moment when the time 12:36:00 arrives, turn on the M0 coil and write the time.
729 729  
730 -[[image:07-5 Basic instructions_html_bf3e906ee5265598.png]]
349 +(% style="text-align:center" %)
350 +[[image:07-5 Basic instructions_html_bf3e906ee5265598.png||height="42" width="586"]]
731 731  
732 -{{id name="_Toc5357"/}}{{id name="_Toc6196"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **HTOS/16-bit data conversion of time data (hour, minute, second → second)**
352 +== **HTOS/16-bit data conversion of time data (hour, minute, second → second)** ==
733 733  
734 734  **HTOS(P)**
735 735  
... ... @@ -745,26 +745,26 @@
745 745  
746 746  **Device used**
747 747  
748 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
749 -**Pulse**
750 -
751 -**extension**
368 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|**Offset modification**|(((
369 +**Pulse extension**
752 752  )))
753 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
754 -|(% rowspan="2" %)HTOS|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|●
755 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
371 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
372 +|(% rowspan="2" %)HTOS|Parameter 1|●|●|●|●|●|●|●|●|●|●|●
373 +|Parameter 2| |●|●|●|●|●|●|●|●|●|●
756 756  
757 757  **Features**
758 758  
759 759  Convert the time data stored after the device number specified in (s) into seconds and store the conversion result in the device specified in (d).
760 760  
761 -[[image:07-5 Basic instructions_html_a84b7741fd5bef2f.png]]
379 +(% style="text-align:center" %)
380 +[[image:07-5 Basic instructions_html_a84b7741fd5bef2f.png||height="130" width="550"]]
762 762  
763 763  **Example**
764 764  
765 765  When 4 hours, 29 minutes and 31 seconds are specified in (s)
766 766  
767 -[[image:07-5 Basic instructions_html_5effb7bc9b8e5cf7.png]]
386 +(% style="text-align:center" %)
387 +[[image:07-5 Basic instructions_html_5effb7bc9b8e5cf7.png||height="162" width="550"]]
768 768  
769 769  **Error code**
770 770  
... ... @@ -772,7 +772,7 @@
772 772  |4085H|When reading the specified device range exceeds the corresponding device range
773 773  |4086H|When writing the specified device range exceeds the corresponding device range
774 774  |4084H|(((
775 -{{id name="OLE_LINK348"/}}When the calculation result is not in the range of 0 to 32767
395 +When the calculation result is not in the range of 0 to 32767
776 776  
777 777  When the value specified in (s) is not in the range of 0 to 9
778 778  
... ... @@ -781,19 +781,22 @@
781 781  
782 782  **Example**
783 783  
784 -[[image:07-5 Basic instructions_html_e23e38c4ba4c34bb.png]]
404 +(% style="text-align:center" %)
405 +[[image:07-5 Basic instructions_html_e23e38c4ba4c34bb.png||height="43" width="338"]]
785 785  
786 786  D0 time is set to 5:36:53
787 787  
409 +(% style="text-align:center" %)
788 788  [[image:07-5 Basic instructions_html_2866a121e5ca5713.png]]
789 789  
790 790  The time of D10 after the M0 coil is turned on is as below.
791 791  
414 +(% style="text-align:center" %)
792 792  [[image:07-5 Basic instructions_html_1dd6c5de05890797.png]]
793 793  
794 -{{id name="_Toc13431"/}}{{id name="_Toc5278"/}}**DHTOS/32-bit data conversion of time data (hour, minute, second → second)**
417 +== **DHTOS/32-bit data conversion of time data (hour, minute, second → second)** ==
795 795  
796 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DHTOS(P)**
419 +**DHTOS(P)**
797 797  
798 798  Convert the time data stored after the device number specified in (s) into seconds and store the conversion result as BIN 32-bit data in the device specified in (d).
799 799  
... ... @@ -807,30 +807,28 @@
807 807  
808 808  **Device used**
809 809  
810 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
811 -**Offset**
812 -
813 -**modification**
433 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|(((
434 +**Offset modification**
814 814  )))|(((
815 -**Pulse**
816 -
817 -**extension**
436 +**Pulse extension**
818 818  )))
819 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
820 -|(% rowspan="2" %)DHTOS|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|●
821 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
438 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
439 +|(% rowspan="2" %)DHTOS|Parameter 1|●|●|●|●|●|●|●|●|●|●|●
440 +|Parameter 2| |●|●|●|●|●|●|●|●|●|●
822 822  
823 823  **Features**
824 824  
825 825  Convert the time data stored after the device number specified in (s) into seconds and store the conversion result in the device specified in (d).
826 826  
827 -[[image:07-5 Basic instructions_html_f4be08508575ea01.png]]
446 +(% style="text-align:center" %)
447 +[[image:07-5 Basic instructions_html_f4be08508575ea01.png||height="99" width="550"]]
828 828  
829 829  **Example**
830 830  
831 831  When 35 hours, 10 minutes and 58 seconds are specified in (s)
832 832  
833 -[[image:07-5 Basic instructions_html_5b9ad230ed5e1fd0.png]]
453 +(% style="text-align:center" %)
454 +[[image:07-5 Basic instructions_html_5b9ad230ed5e1fd0.png||height="125" width="550"]]
834 834  
835 835  **Error code**
836 836  
... ... @@ -845,17 +845,20 @@
845 845  
846 846  **Example**
847 847  
848 -[[image:07-5 Basic instructions_html_ae8ab4379e8bdb91.png]]
469 +(% style="text-align:center" %)
470 +[[image:07-5 Basic instructions_html_ae8ab4379e8bdb91.png||height="45" width="263"]]
849 849  
850 850  D0 time is set to 15:33:24
851 851  
852 -[[image:07-5 Basic instructions_html_57a15d9e1045e93e.png]]
474 +(% style="text-align:center" %)
475 +[[image:07-5 Basic instructions_html_57a15d9e1045e93e.png||height="41" width="313"]]
853 853  
854 854  The second of D10 after the M0 coil is turned on is
855 855  
856 -[[image:07-5 Basic instructions_html_194e906b1dc12078.png]]
479 +(% style="text-align:center" %)
480 +[[image:07-5 Basic instructions_html_194e906b1dc12078.png||height="64" width="365"]]
857 857  
858 -{{id name="_Ref22686"/}}{{id name="_Toc11231"/}}{{id name="_Toc7401"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **HOUR/Hour measuring 16-bit**
482 +**HOUR/Hour measuring 16-bit**
859 859  
860 860  **HOUR(P)**
861 861  
... ... @@ -880,19 +880,15 @@
880 880  
881 881  **Device used**
882 882  
883 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
884 -**Offset**
885 -
886 -**modification**
507 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="17" %)**Devices**|(((
508 +**Offset modification**
887 887  )))|(((
888 -**Pulse**
889 -
890 -**extension**
510 +**Pulse extension**
891 891  )))
892 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
893 -|(% rowspan="3" %)HOUR|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
894 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|●
895 -|Parameter 3| |●|●|●|●| | | | |●| | | | | | | | | | | | | | |●|●
512 +|**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**E**|**[D]**|**XXP**
513 +|(% rowspan="3" %)HOUR|Parameter 1| | | | | |●|●|●|●|●|●|●|●|●|●|●| |●|●
514 +|Parameter 2| | | | | | | | | | | |●|●|●| | | |●|●
515 +|Parameter 3|●|●|●|●|●| | | | | | | | | | | | |●|●
896 896  
897 897  **Features**
898 898  
... ... @@ -914,7 +914,7 @@
914 914  
915 915  • 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.
916 916  
917 -✎**Note**
537 +✎**Note:**
918 918  
919 919  • The device specified in (d1) occupies 2 points. Be careful not to overlap with the device used for machine control.
920 920  
... ... @@ -927,15 +927,14 @@
927 927  |4086H|When writing the specified device range exceeds the corresponding device range
928 928  |4084H|When the value of (s) is negative
929 929  
930 -
931 -
932 932  **Example**
933 933  
934 -[[image:07-5 Basic instructions_html_7570f8c392470a9f.png]]
552 +(% style="text-align:center" %)
553 +[[image:07-5 Basic instructions_html_7570f8c392470a9f.png||height="45" width="320"]]
935 935  
936 936  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.
937 937  
938 -{{id name="_Toc8523"/}}{{id name="_Toc9364"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DHOUR/Hour measuring 32 bits**
557 +== **DHOUR/Hour measuring 32 bits** ==
939 939  
940 940  **DHOUR(P)**
941 941  
... ... @@ -947,9 +947,7 @@
947 947  
948 948  |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
949 949  |(s)|(((
950 -The time when the alarm (d2) is turned ON
951 -
952 -(set by one hour)
569 +The time when the alarm (d2) is turned ON (set by one hour)
953 953  )))|0 to 2147483647|Signed BIN 32 bit|ANY32
954 954  |(d1)|Device that stores the current value of measurement (specified data register for power failure retention)|-|Unsigned BIN 32 bit|(((
955 955  ANY32_ARRAY
... ... @@ -960,19 +960,15 @@
960 960  
961 961  **Device used**
962 962  
963 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
964 -**Offset**
965 -
966 -**modification**
580 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="18" %)**Devices**|(((
581 +**Offset modification**
967 967  )))|(((
968 -**Pulse**
969 -
970 -**extension**
583 +**Pulse extension**
971 971  )))
972 -|**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**
973 -|(% rowspan="3" %)DHOUR|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|●
974 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|●
975 -|Parameter 3| |●|●|●|●| | | | |●| | | | | | | | | | | | | | |●|●
585 +|**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP**
586 +|(% rowspan="3" %)DHOUR|Parameter 1| | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●|●|●
587 +|Parameter 2| | | | | | | | | | | |●|●|●| | | | |●|●
588 +|Parameter 3|●|●|●|●|●| | | | | | | | | | | | | |●|●
976 976  
977 977  **Features**
978 978  
... ... @@ -994,7 +994,7 @@
994 994  
995 995  • 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.
996 996  
997 -✎**Note**
610 +✎**Note:**
998 998  
999 999  • The device specified in (d1) occupies 3 points. Be careful not to overlap with the device used for machine control.
1000 1000  
... ... @@ -1007,17 +1007,16 @@
1007 1007  |4086H|When writing the specified device range exceeds the corresponding device range
1008 1008  |4084H|When the value of (s) is negative
1009 1009  
1010 -
1011 -
1012 1012  **Example**
1013 1013  
1014 -[[image:07-5 Basic instructions_html_3f1ef5ecc835de30.png]]
625 +(% style="text-align:center" %)
626 +[[image:07-5 Basic instructions_html_3f1ef5ecc835de30.png||height="43" width="448"]]
1015 1015  
1016 1016  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.
1017 1017  
1018 -**{{id name="_Toc11629"/}}STOH/16-bit data conversion of time data (second → hour, minute, second)**
630 +== **STOH/16-bit data conversion of time data (second → hour, minute, second)** ==
1019 1019  
1020 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **STOH(P)**
632 +**STOH(P)**
1021 1021  
1022 1022  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.
1023 1023  
... ... @@ -1026,39 +1026,35 @@
1026 1026  **Content, range and data type**
1027 1027  
1028 1028  |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1029 -|(s)|{{id name="OLE_LINK353"/}}The device start number that stores the clock data before conversion|0 to 32767|Signed BIN 16 bit|ANY16
641 +|(s)|The device start number that stores the clock data before conversion|0 to 32767|Signed BIN 16 bit|ANY16
1030 1030  |(d)|The device start number that stores the converted clock data|-|Signed BIN 16 bit|(((
1031 -ANY16_ARRAY
1032 -
1033 -(number of elements: 3)
643 +ANY16_ARRAY (number of elements: 3)
1034 1034  )))
1035 1035  
1036 1036  **Device used**
1037 1037  
1038 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
1039 -**Offset**
1040 -
1041 -**modification**
648 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|(((
649 +**Offset modification**
1042 1042  )))|(((
1043 -**Pulse**
1044 -
1045 -**extension**
651 +**Pulse extension**
1046 1046  )))
1047 -|**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**
1048 -|(% rowspan="2" %)STOH|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|●
1049 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
653 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
654 +|(% rowspan="2" %)STOH|Parameter 1|●|●|●|●|●|●|●|●|●|●|●
655 +|Parameter 2| |●|●|●|●|●|●|●|●|●|●
1050 1050  
1051 1051  **Features**
1052 1052  
1053 1053  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.
1054 1054  
1055 -[[image:07-5 Basic instructions_html_1f5f3f1d80af2a34.png]]
661 +(% style="text-align:center" %)
662 +[[image:07-5 Basic instructions_html_1f5f3f1d80af2a34.png||height="110" width="550"]]
1056 1056  
1057 1057  **Example**
1058 1058  
1059 1059  When 29,011 seconds are specified in (s)
1060 1060  
1061 -[[image:07-5 Basic instructions_html_682516cbf773f515.png]]
668 +(% style="text-align:center" %)
669 +[[image:07-5 Basic instructions_html_682516cbf773f515.png||height="163" width="550"]]
1062 1062  
1063 1063  **Error code**
1064 1064  
... ... @@ -1069,17 +1069,19 @@
1069 1069  
1070 1070  **Example**
1071 1071  
1072 -[[image:07-5 Basic instructions_html_e783349d57adf7d2.png]]
680 +(% style="text-align:center" %)
681 +[[image:07-5 Basic instructions_html_e783349d57adf7d2.png||height="47" width="350"]]
1073 1073  
1074 1074  Set D0 seconds to 12537
1075 1075  
1076 1076  The hour, minute and second of D10 after the M0 coil is turned on are
1077 1077  
1078 -[[image:07-5 Basic instructions_html_d3c33949e8684891.png]]
687 +(% style="text-align:center" %)
688 +[[image:07-5 Basic instructions_html_d3c33949e8684891.png||height="52" width="645"]]
1079 1079  
1080 -{{id name="_Toc10764"/}}{{id name="_Toc30243"/}}**DSTOH/32-bit data conversion of time data (second → hour, minute, second)**
690 +== **DSTOH/32-bit data conversion of time data (second → hour, minute, second)** ==
1081 1081  
1082 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DSTOH(P)**
692 +**DSTOH(P)**
1083 1083  
1084 1084  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.
1085 1085  
... ... @@ -1090,37 +1090,33 @@
1090 1090  |**Parameter**|**Content**|**Range**|**Data type**|**Data &nbsp;&nbsp;&nbsp;&nbsp;type (label)**
1091 1091  |(s)|The device start number that stores the clock data before conversion|0 to 117964799|Signed BIN 32 bit|ANY32
1092 1092  |(d)|The device start number that stores the converted clock data|-|Signed BIN 16 bit|(((
1093 -ANY16_ARRAY
1094 -
1095 -(number of elements: 3)
703 +ANY16_ARRAY (number of elements: 3)
1096 1096  )))
1097 1097  
1098 1098  **Device used**
1099 1099  
1100 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
1101 -**Offset**
1102 -
1103 -**modification**
708 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|(((
709 +**Offset modification**
1104 1104  )))|(((
1105 -**Pulse**
1106 -
1107 -**extension**
711 +**Pulse extension**
1108 1108  )))
1109 -|**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**
1110 -|(% rowspan="2" %)DSTOH|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|●
1111 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
713 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
714 +|(% rowspan="2" %)DSTOH|Parameter 1|●|●|●|●|●|●|●|●|●|●|●
715 +|Parameter 2| |●|●|●|●|●|●|●|●|●|●
1112 1112  
1113 1113  **Features**
1114 1114  
1115 1115  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.
1116 1116  
1117 -[[image:07-5 Basic instructions_html_cbf13fc3d10fbe61.png]]
721 +(% style="text-align:center" %)
722 +[[image:07-5 Basic instructions_html_cbf13fc3d10fbe61.png||height="99" width="600"]]
1118 1118  
1119 1119  **Example**
1120 1120  
1121 1121  When 45,325 seconds is specified in (s)
1122 1122  
1123 -[[image:07-5 Basic instructions_html_d6045506b13275a0.png]]
728 +(% style="text-align:center" %)
729 +[[image:07-5 Basic instructions_html_d6045506b13275a0.png||height="135" width="600"]]
1124 1124  
1125 1125  **Error code**
1126 1126  
... ... @@ -1131,15 +1131,17 @@
1131 1131  
1132 1132  **Example**
1133 1133  
1134 -[[image:07-5 Basic instructions_html_e7dd49d953db6da4.png]]
740 +(% style="text-align:center" %)
741 +[[image:07-5 Basic instructions_html_e7dd49d953db6da4.png||height="39" width="316"]]
1135 1135  
1136 1136  Set D0 seconds to 2152537
1137 1137  
1138 1138  The hour, minute and second of D10 after the M0 coil is turned on are
1139 1139  
1140 -[[image:07-5 Basic instructions_html_10d57bde1ac0a218.png]]
747 +(% style="text-align:center" %)
748 +[[image:07-5 Basic instructions_html_10d57bde1ac0a218.png||height="52" width="661"]]
1141 1141  
1142 -{{id name="_Toc2937"/}}{{id name="_Toc24209"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TCMP/Clock data comparison**
750 +== **TCMP/Clock data comparison** ==
1143 1143  
1144 1144  **TCMP(P)**
1145 1145  
... ... @@ -1158,29 +1158,26 @@
1158 1158  
1159 1159  **Device used**
1160 1160  
1161 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
1162 -**Offset**
1163 -
1164 -**modification**
769 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="17" %)**Devices**|(((
770 +**Offset modification**
1165 1165  )))|(((
1166 -**Pulse**
1167 -
1168 -**extension**
772 +**Pulse extension**
1169 1169  )))
1170 -|**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**
1171 -|(% rowspan="5" %)TCMP|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
1172 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
1173 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
1174 -|Parameter 4| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
1175 -|Parameter 5| |●|●|●|●| | | | |●| | | | | | | | | | | | | | |●|●
774 +|**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**E**|**[D]**|**XXP**
775 +|(% rowspan="5" %)TCMP|Parameter 1| | | | | |●|●|●|●|●|●|●|●|●|●|●| |●|●
776 +|Parameter 2| | | | | |●|●|●|●|●|●|●|●|●|●|●| |●|●
777 +|Parameter 3| | | | | |●|●|●|●|●|●|●|●|●|●|●| |●|●
778 +|Parameter 4| | | | | | | | | |●|●|●|●|●| | | |●|●
779 +|Parameter 5|●|●|●|●|●| | | | | | | | | | | | |●|●
1176 1176  
1177 1177  **Features**
1178 1178  
1179 1179  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.
1180 1180  
1181 -[[image:07-5 Basic instructions_html_5df7ad3057fada12.png]]
785 +(% style="text-align:center" %)
786 +[[image:07-5 Basic instructions_html_5df7ad3057fada12.png||height="385" width="750"]]
1182 1182  
1183 -✎**Note**
788 +✎**Note:**
1184 1184  
1185 1185  The device specified in (s4) and (d) occupies 3 points. Be careful not to overlap with the device used for machine control.
1186 1186  
... ... @@ -1194,26 +1194,29 @@
1194 1194  |4084H|(((
1195 1195  When the value specified in (s) and (s4) is not in the range of 0 to 23
1196 1196  
1197 -{{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
802 +When the value specified in (s2),(s3) (s4)+1 and (s4)+2 is not in the range of 0 to 59
1198 1198  )))
1199 1199  
1200 1200  **Example**
1201 1201  
1202 -[[image:07-5 Basic instructions_html_fcc16317cf7c0700.png]]
807 +(% style="text-align:center" %)
808 +[[image:07-5 Basic instructions_html_fcc16317cf7c0700.png||height="68" width="359"]]
1203 1203  
1204 1204  Set D10 to 1, D11 to 30, D12 to 0
1205 1205  
1206 1206  When M0 is turned on, the time that D23 will come is 0:31:27
1207 1207  
1208 -[[image:07-5 Basic instructions_html_de97dd7a612b2323.png]]
814 +(% style="text-align:center" %)
815 +[[image:07-5 Basic instructions_html_de97dd7a612b2323.png||height="50" width="653"]]
1209 1209  
1210 1210  M10 is turned ON
1211 1211  
1212 -[[image:07-5 Basic instructions_html_56e2d606adc09fd.png]]
819 +(% style="text-align:center" %)
820 +[[image:07-5 Basic instructions_html_56e2d606adc09fd.png||height="52" width="239"]]
1213 1213  
1214 -{{id name="_Toc29031"/}}{{id name="_Toc22923"/}}**TZCP/Clock data bandwidth comparison**
822 +== **TZCP/Clock data bandwidth comparison** ==
1215 1215  
1216 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TZCP(P)**
824 +**TZCP(P)**
1217 1217  
1218 1218  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.
1219 1219  
... ... @@ -1223,46 +1223,37 @@
1223 1223  
1224 1224  |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1225 1225  |(s1)|Specify the "hour" of the lower limit time (hour, minute, second)|-|Signed BIN 16 bit|(((
1226 -ANY16_ARRAY
1227 -
1228 -(number of elements: 3)
834 +ANY16_ARRAY (number of elements: 3)
1229 1229  )))
1230 1230  |(s2)|Specify the "hour" of the lower limit time (hour, minute, second)|-|Signed BIN 16 bit|(((
1231 -ANY16_ARRAY
1232 -
1233 -(number of elements: 3)
837 +ANY16_ARRAY (number of elements: 3)
1234 1234  )))
1235 1235  |(s3)|Specify "hour" of time data (hour, minute, second)|-|Signed BIN 16 bit|(((
1236 -ANY16_ARRAY
1237 -
1238 -(number of elements: 3)
840 +ANY16_ARRAY (number of elements: 3)
1239 1239  )))
1240 1240  |(d)|The bit device is turned ON/OFF according to the comparison result.|-|Bit|(((
1241 -ANY16_ARRAY
1242 -
1243 -(number of elements: 3)
843 +ANY16_ARRAY (number of elements: 3)
1244 1244  )))
1245 1245  
1246 1246  **Device used**
1247 1247  
1248 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1249 -**Pulse**
1250 -
1251 -**extension**
848 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="10" %)**Devices**|**Offset modification**|(((
849 +**Pulse extension**
1252 1252  )))
1253 -|**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**
1254 -|(% rowspan="4" %)TZCP|Parameter 1| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
1255 -|Parameter 2| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
1256 -|Parameter 3| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
1257 -|Parameter 4| |●|●|●|●| | | | |●| | | | | | | | | | | | | | |●|●
851 +|**Y**|**M**|**S**|**SM**|**D.b**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
852 +|(% rowspan="4" %)TZCP|Parameter 1| | | | | |●|●|●|●|●|●|●
853 +|Parameter 2| | | | | |●|●|●|●|●|●|●
854 +|Parameter 3| | | | | |●|●|●|●|●|●|●
855 +|Parameter 4|●|●|●|●|●| | | | | |●|●
1258 1258  
1259 1259  **Features**
1260 1260  
1261 1261  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.
1262 1262  
1263 -[[image:07-5 Basic instructions_html_844291270080313d.png]]
861 +(% style="text-align:center" %)
862 +[[image:07-5 Basic instructions_html_844291270080313d.png||height="339" width="750"]]
1264 1264  
1265 -✎**Note**
864 +✎**Note:**
1266 1266  
1267 1267  • The devices specified in (s1), (s2), (s3), (d) occupy 3 points. Be careful not to overlap with the device used for machine control.
1268 1268  
... ... @@ -1283,1176 +1283,23 @@
1283 1283  
1284 1284  **Example**
1285 1285  
1286 -[[image:07-5 Basic instructions_html_30027a2387c26c2e.png]]
885 +(% style="text-align:center" %)
886 +[[image:07-5 Basic instructions_html_30027a2387c26c2e.png||height="46" width="439"]]
1287 1287  
1288 1288  Set D0 time to 16:30:00 and D10 time to 4:30:0
1289 1289  
1290 -[[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]]
890 +(% style="text-align:center" %)
891 +[[image:07-5 Basic instructions_html_c64e0faf2af172f8.png||height="49" width="626"]]
1291 1291  
1292 -[[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]]
893 +(% style="text-align:center" %)
894 +[[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png||height="50" width="625"]]
1293 1293  
1294 1294  After the coil is turned on, the reading time to D20 time is 8:30:00
1295 1295  
1296 -[[image:07-5 Basic instructions_html_75c44dad07eaf80a.png]]
898 +(% style="text-align:center" %)
899 +[[image:07-5 Basic instructions_html_75c44dad07eaf80a.png||height="49" width="625"]]
1297 1297  
1298 1298  M0/M12 is ON
1299 1299  
1300 -[[image:07-5 Basic instructions_html_f512f36261705953.png]]
1301 -
1302 -{{id name="_Toc6129"/}}[[image:07-5 Basic instructions_html_a2e3294e01b2f206.gif]] **7.13 Data control instructions**
1303 -
1304 -{{id name="_Toc3339"/}}{{id name="_Toc27829"/}}{{id name="_Toc9204"/}}**BAND/BIN 16-bit data dead zone control**
1305 -
1306 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **BAND(P)**
1307 -
1308 -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).
1309 -
1310 --[BAND (s1) (s2) (S3) (d)]
1311 -
1312 -**Content, range and data type**
1313 -
1314 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1315 -|(s1)|Lower limit of dead zone (no output zone)|-32,768 to +32,767|Signed BIN 16 bit|ANY16_S
1316 -|(s2)|Upper limit of dead zone (no output zone)|-32,768 to +32,767|Signed BIN 16 bit|ANY16_S
1317 -|(S3)|Input value controlled by dead zone control|-32768 to +32,767|Signed BIN 16 bit|ANY16_S
1318 -|(D)|The start number of the device that stores the output value controlled by the dead zone control|-|Signed BIN 16 bit|ANY16_S
1319 -
1320 -**Device used**
1321 -
1322 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
1323 -**Offset**
1324 -
1325 -**modification**
1326 -)))|(((
1327 -**Pulse**
1328 -
1329 -**extension**
1330 -)))
1331 -|**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**
1332 -|(% rowspan="4" %)BAND|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
1333 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
1334 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|●
1335 -|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
1336 -
1337 -**Features**
1338 -
1339 -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.
1340 -
1341 -|**Condition**|**The value stored in the output value**
1342 -|When dead zone low limit (s1)> input value (s3)|Input value (s3)-Dead zone low limit (s1)
1343 -|When dead zone high limit (s1) <input value (s3)|Input value (s3)- Dead zone high limit (s2)
1344 -|When dead zone low limit (s1) ≤ input value (s3) ≤ dead zone low limit (s2)|0
1345 -
1346 -
1347 -(((
1348 -•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.
1349 -
1350 -For example, when (s1) is 10 and (s3) is -32768,
1351 -
1352 -the output value = -32768-10=8000H-000AH=7FFFH=32758.
1353 -
1354 -[[image:07-5 Basic instructions_html_6850e21a76b813c0.png]]
1355 -)))
1356 -
1357 -**Error code**
1358 -
1359 -|**Error code**|**Content**
1360 -|4085H|When the specified device range for reading exceeds the range of the corresponding device.
1361 -|4086H|When the specified device range for writing exceeds the range of the corresponding device.
1362 -|4084H|When the low limit specified in (s1) is greater than the high limit specified in (s2).
1363 -
1364 -**Example &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**
1365 -
1366 -[[image:07-5 Basic instructions_html_c0e65cfeed403ecf.png]]
1367 -
1368 -When X000 is ON, when D0<(-1,000), the value of ( D0)-(-1,000) is stored in (D1).
1369 -
1370 -• When -1,000≦ D0≦1,000, 0 is stored in D1.
1371 -
1372 -• When D0<1,000, the value of (D0)-1,000 is stored in D1.
1373 -
1374 -{{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**
1375 -
1376 -**DBAND(P)**
1377 -
1378 -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).
1379 -
1380 --[DBAND (s1) (s2) (S3) (d)]
1381 -
1382 -**Content, range and data type**
1383 -
1384 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1385 -|(s1)|Dead zone low limit (no output zone)|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S
1386 -|(s2)|Dead zone high limit (no output zone)|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S
1387 -|(S3)|Input value controlled by dead zone control|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S
1388 -|(d)|The start number of the device that stores the output value controlled by the dead zone control|-|Signed BIN 32 bit|ANY32_S
1389 -
1390 -**Device used**
1391 -
1392 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1393 -**Pulse**
1394 -
1395 -**extension**
1396 -)))
1397 -|**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**
1398 -|(% rowspan="4" %)DBAND|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|●
1399 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|●
1400 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●| | | |●|●
1401 -|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●|●
1402 -
1403 -**Features**
1404 -
1405 -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.
1406 -
1407 -|**Condition**|**The value stored in the output value**
1408 -|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)
1409 -|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)
1410 -|When dead zone low limit ((s1), (s1)+1) ≤ input value ((s3), (s3)+1) ≤ dead zone high limit ((s2), (s2)+1)|0
1411 -
1412 -
1413 -(((
1414 -• 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=
1415 -
1416 --2,147,483,648-1000=80000000H-000003E8H=7FFFFC18H=2,147,482,648.
1417 -
1418 -[[image:07-5 Basic instructions_html_e0144674dad3e8fd.png]]
1419 -
1420 -
1421 -
1422 -)))
1423 -
1424 -**Error code**
1425 -
1426 -|**Error code**|**Content**
1427 -|4085H|When the specified device range for reading exceeds the range of the corresponding device.
1428 -|4086H|When the specified device range for writing exceeds the range of the corresponding device.
1429 -|4084H|When the low limit specified in (s1) is greater than the high limit specified in (s2).
1430 -
1431 -**Example**
1432 -
1433 -[[image:07-5 Basic instructions_html_88f3fe0fb4841bab.png]]
1434 -
1435 -• When (D1, D0)<(-10,000), the value of (D1, D0)-(-10,000) is stored in (D11, D10).
1436 -
1437 -• When -10,000≦(D1, D0)≦10,000, 0 is stored in (D11, D10).
1438 -
1439 -• When 10,000< (D1, D0), the value of (D1, D0)-10,000 is stored in D1.
1440 -
1441 -{{id name="_Toc21668"/}}{{id name="_Toc25056"/}}{{id name="_Toc17582"/}}{{id name="OLE_LINK165"/}}**BINDA/BIN 16-bit data → Decimal ASCII conversion**
1442 -
1443 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **BINDA(P)**
1444 -
1445 -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).
1446 -
1447 --[BINDA(s)(d)]
1448 -
1449 -**Content, range and data type**
1450 -
1451 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1452 -|(s)|BIN data for ASCII conversion|-32768 to +32767|Signed BIN 16 bit|ANY16_S
1453 -|(d)|The start number of the device storing the conversion result|-|String|ANYSTRING_SINGLE
1454 -
1455 -**Device used**
1456 -
1457 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1458 -**Pulse**
1459 -
1460 -**extension**
1461 -)))
1462 -|**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**
1463 -|(% rowspan="2" %)BINDA|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
1464 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|●
1465 -
1466 -**Features**
1467 -
1468 -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).
1469 -
1470 -
1471 -
1472 -(((
1473 -←Only store 0 when SM191 is OFF
1474 -
1475 -[[image:07-5 Basic instructions_html_57bda5f08026449d.png]]
1476 -)))
1477 -
1478 -For example, when -12,345 is specified in (s) (in the case of specifying signed)
1479 -
1480 -[[image:07-5 Basic instructions_html_f346102467b9bef9.png]]
1481 -
1482 -The calculation result stored in (d) will be as below.
1483 -
1484 -• In "Sign", 20H is stored when the BIN data is positive, and 2DH is stored when it is negative.
1485 -
1486 -• 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.
1487 -
1488 -• 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.
1489 -
1490 -✎**Note: **The number of occupied points of (d) is 3 when SM191 is ON, and it is 4 when SM191 is OFF.
1491 -
1492 -**Error code**
1493 -
1494 -|**Error code**|**Content**
1495 -|4085H|The read address of (s) exceeds the device range.
1496 -|4086H|The write address of (d) exceeds the device range.
1497 -
1498 -**Example**
1499 -
1500 -
1501 -
1502 -(((
1503 -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
1504 -
1505 -converted ASCII code character by character to the program of Y040 to Y057.
1506 -
1507 -[[image:07-5 Basic instructions_html_c598806a42484ed.png]]
1508 -)))
1509 -
1510 -{{id name="_Toc12255"/}}{{id name="_Toc8216"/}}{{id name="_Toc470"/}}**DBINDA/BIN 32-bit data → Decimal ASCII conversion**
1511 -
1512 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DBINDA(P)**
1513 -
1514 -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).
1515 -
1516 --[DBINDA(s)(d)]
1517 -
1518 -**Content, range and data type**
1519 -
1520 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1521 -|(s)|BIN data for ASCII conversion|-2,147483648 to 2147483647|Signed BIN 32 bit|ANY32_S
1522 -|(d)|{{id name="OLE_LINK2"/}}The start number of the device storing the conversion result|-|String|ANYSTRING_SINGLE
1523 -
1524 -**Device used**
1525 -
1526 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
1527 -**Offset**
1528 -
1529 -**modification**
1530 -)))|(((
1531 -**Pulse**
1532 -
1533 -**extension**
1534 -)))
1535 -|**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**
1536 -|(% rowspan="2" %)DBINDA|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|●
1537 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|●
1538 -
1539 -**Features**
1540 -
1541 -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).
1542 -
1543 -For example, when -12345678 is specified in (s). (in the case of specifying signed)
1544 -
1545 -[[image:07-5 Basic instructions_html_4d939462838cf09b.gif]] The calculation result stored in (d) will be as below.
1546 -
1547 -• In "Sign", 20H is stored when the BIN data is positive, and 2DH is stored when it is negative.
1548 -
1549 -• 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.
1550 -
1551 -• 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.
1552 -
1553 -✎**Note: **(d) Occupies 6 points.
1554 -
1555 -**Error code**
1556 -
1557 -|**Error code**|**Content**
1558 -|4085H|(s) read address exceeds the device range
1559 -|4086H|(d) write address exceeds the device range
1560 -
1561 -**Example**
1562 -
1563 -[[image:07-5 Basic instructions_html_ec8ac32d748a991c.png]]
1564 -
1565 -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.
1566 -
1567 -{{id name="_Toc19693"/}}{{id name="_Toc18078"/}}{{id name="_Toc5726"/}}**DABIN/Decimal ASCII → BIN conversion**
1568 -
1569 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DABIN(P)**
1570 -
1571 -Digital ASCII code (30H to 39H) is a instruction to convert real data into BIN data.
1572 -
1573 --[DABIN (s) (d)]
1574 -
1575 -**Content, range and data type**
1576 -
1577 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1578 -|(s)|The start number of the device that stores the data (ASCII code) to be converted into a BIN value|-|String|ANYSTRING_SINGLE
1579 -|(d)|The device number for storing conversion result|-|BIN16 bit|ANY16_S
1580 -
1581 -**Device used**
1582 -
1583 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1584 -**Pulse**
1585 -
1586 -**extension**
1587 -)))
1588 -|**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**
1589 -|(% rowspan="2" %)DABIN|Parameter 1| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|●
1590 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
1591 -
1592 -**Features**
1593 -
1594 -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).
1595 -
1596 -[[image:07-5 Basic instructions_html_22c5cb32a0a32214.png]]
1597 -
1598 -|**ASCII S**|**ASCII 10^^0^^**|**ASCII 10^^1^^**|**ASCII 10^^2^^**|**ASCII 10^^3^^**|**ASCII 10^^4^^**
1599 -|**ASCII code**|(((
1600 -{{id name="OLE_LINK36"/}}Units of
1601 -
1602 -ASCII code
1603 -)))|(((
1604 -Tens of
1605 -
1606 -ASCII code
1607 -)))|(((
1608 -Hundreds of
1609 -
1610 -ASCII code
1611 -)))|(((
1612 -Thousands of
1613 -
1614 -ASCII code
1615 -)))|(((
1616 -Ten thousands
1617 -
1618 -of ASCII code
1619 -)))
1620 -
1621 -For example, When -25,108 is specified in (s)
1622 -
1623 -[[image:07-5 Basic instructions_html_10fb2792e37dbf23.png]]
1624 -
1625 -• The ASCII data specified in (s) to (s)+2 is within the range of -32,768 to +32,767.
1626 -
1627 -• 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))
1628 -
1629 -• The range of the ASCII code set in each digit is 30H to 39H.
1630 -
1631 -• When the ASCII code set in each bit is 20H or 00H, it will be treated as 30H.
1632 -
1633 -**Error code**
1634 -
1635 -|**Error code**|**Content**
1636 -|4084H|(((
1637 -When the Sign data exceeds the range of 30H to 39H, 20H, 00H, 2DH;
1638 -
1639 -When the ASCII code of each bit specified in (s) to (s)+2 exceeds the range of 30H to 39H, 20H, 00H;
1640 -
1641 -When the ASCII data specified in (s) to (s)+2 is other than -32,768 to +32,767.
1642 -)))
1643 -|4085H|The read address of (s) exceeds the device range.
1644 -|4086H|The write address of (d) exceeds the device range.
1645 -
1646 -
1647 -(((
1648 -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.
1649 -
1650 -**Example**
1651 -)))
1652 -
1653 -[[image:07-5 Basic instructions_html_bec2bea131b58c03.png]]
1654 -
1655 -{{id name="_Toc3351"/}}{{id name="_Toc26383"/}}{{id name="_Toc26233"/}}**DDABIN/Decimal ASCII → BIN32-bit data conversion**
1656 -
1657 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DDABIN(P)**
1658 -
1659 -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).
1660 -
1661 --[DDABIN (s) (d) ]
1662 -
1663 -**Content, range and data type**
1664 -
1665 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1666 -|(s)|The start number of the device that stores data (ASCII code) to be converted into a BIN value|-|String|ANYSTRING_SINGLE
1667 -|(d)|The device number for storing conversion result|-|Signed BIN 32 bit|ANY32_S
1668 -
1669 -**Device used**
1670 -
1671 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1672 -**Pulse**
1673 -
1674 -**extension**
1675 -)))
1676 -|**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**
1677 -|(% rowspan="2" %)DDABIN|Parameter 1| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|●
1678 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●|●
1679 -
1680 -**Features**
1681 -
1682 -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).
1683 -
1684 -[[image:07-5 Basic instructions_html_c444110b273f33b7.gif]]
1685 -
1686 -|**ASCII S**|**ASCII code**|**ASCII S**|**ASCII code**
1687 -|ASCII 10^^0^^|Units of ASCII code|ASCII 10^^5^^|{{id name="OLE_LINK38"/}}Hundred thousands of ASCII code
1688 -|ASCII 10^^1^^|Tens of ASCII code|ASCII 10^^6^^|Millions of ASCII code
1689 -|ASCII 10^^2^^|Hundreds of ASCII code|ASCII 10^^7^^|Ten millions of ASCII code
1690 -|ASCII 10^^3^^|{{id name="OLE_LINK37"/}}Thousands of ASCII code|ASCII 10^^8^^|Hundred millions of ASCII code
1691 -|ASCII 10^^4^^|Tens thousands of ASCII code|ASCII 10^^9^^|billions of ASCII code
1692 -
1693 -When -1234543210 is specified in (s) (When signed is specified)
1694 -
1695 -[[image:07-5 Basic instructions_html_1b4c7e1c663a4399.png]]
1696 -
1697 -• 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.
1698 -
1699 -• 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))
1700 -
1701 -• The range of ASCII code set in each digit is 30H to 39H.
1702 -
1703 -• When the ASCII code set in each bit is 20H or 00H, it will be treated as 30H.
1704 -
1705 -**Error code**
1706 -
1707 -|**Error code**|**Content**
1708 -|4084H|(((
1709 -When the Sign data exceeds the range of 30H to 39H, 20H, 00H and 2DH;
1710 -
1711 -{{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;
1712 -
1713 -When the ASCII data specified in (s) to (s)+5 exceeds the range of -2,147,483,648 to +2,147,483,647
1714 -)))
1715 -|4085H|The read address of (s) exceeds the device range.
1716 -|4086H|The write address of (d) exceeds the device range.
1717 -
1718 -**Example**
1719 -
1720 -[[image:07-5 Basic instructions_html_feea438c943ea9dd.png]]
1721 -
1722 -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.
1723 -
1724 -{{id name="_Toc26556"/}}{{id name="_Toc12799"/}}{{id name="_Toc23863"/}}**LIMIT/ BIN 16-bit data high and low limit control**
1725 -
1726 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **LIMIT(P)**
1727 -
1728 -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).
1729 -
1730 --[LIMIT (s1) (s2) (s3) (d)]
1731 -
1732 -**Content, range and data type**
1733 -
1734 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1735 -|s1|Low limit value (minimum output limit value)|-32,768 to 32,767|BIN16 bit|ANY16_S
1736 -|s2|High limit value (maximum output limit value)|-32,768 to 32,767|BIN16 bit|ANY16_S
1737 -|s3|Input value controlled by high and low limit control|-32,768 to 32,767|BIN16 bit|ANY16_S
1738 -|d|The start number of device that stores the output value controlled by high and low limit control|-|BIN16 bit|ANY16_S
1739 -
1740 -**Device used**
1741 -
1742 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1743 -**Pulse**
1744 -
1745 -**extension**
1746 -)))
1747 -|**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**
1748 -|(% rowspan="4" %)LIMIT|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
1749 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
1750 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|●
1751 -|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
1752 -
1753 -**Features**
1754 -
1755 -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.
1756 -
1757 -|**Condition**|**The value stored in the output value**
1758 -|Low limit value (s1)>input value (s3)|Low limit value (s1)
1759 -|High limit value (s1) <input value (s3)|High limit value (s2)
1760 -|Low limit value (s1) ≤ input value (s3) ≤ high limit value (s2)|Input value (s3)
1761 -
1762 -
1763 -(((
1764 -•Only in the case of controlling high limit value, set the minimum value of data range in the low limit value specified in (s1).
1765 -
1766 -• Only in the case of controlling low limit value, set the maximum value of data range in the high limit value specified in (s2).
1767 -
1768 -[[image:07-5 Basic instructions_html_50eb5229b027aa14.png]]
1769 -)))
1770 -
1771 -**Error code**
1772 -
1773 -|**Error code**|**Content**
1774 -|4085H|The read address exceeds the device range
1775 -|4086H|The write address exceeds the device range
1776 -|4084H|High limit <low limit
1777 -
1778 -**Example**
1779 -
1780 -[[image:07-5 Basic instructions_html_d67a2e740d4fc738.png]]
1781 -
1782 -When X000 is ON
1783 -
1784 -• When D0 <500, D1 is 500.
1785 -
1786 -• When 500 ≤ D0 ≤ 5,000, D1 is the value of D0.
1787 -
1788 -• When 5,000 <D0, D1 is 5,000.
1789 -
1790 -{{id name="_Toc32553"/}}{{id name="_Toc9981"/}}{{id name="_Toc9158"/}}**DLIMIT/BIN 32-bit data high and low limit control**
1791 -
1792 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DLIMIT(P)**
1793 -
1794 -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).
1795 -
1796 --[DLIMIT (s1) (s2) (s3) (d)]
1797 -
1798 -**Content, range and data type**
1799 -
1800 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1801 -|s1|Low limit value (minimum output limit value)|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S
1802 -|s2|High limit value (maximum output limit value)|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S
1803 -|s3|Input value controlled by high and low limit control|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S
1804 -|d|The start number of the device that stores the output value controlled by high and low limit control|-|BIN32 bit|ANY32_S
1805 -
1806 -**Device used**
1807 -
1808 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1809 -**Pulse**
1810 -
1811 -**extension**
1812 -)))
1813 -|**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**
1814 -|(% rowspan="4" %)DLIMIT|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|●
1815 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|●
1816 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●| | | |●|●
1817 -|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●|●
1818 -
1819 -**Features**
1820 -
1821 -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.
1822 -
1823 -|**Condition**|**The value stored in the output value**
1824 -|Low limit value ((s1), (s1)+1)> input value ((s3), (s3)+1)|Low limit value ((s1), (s1)+1)
1825 -|High limit value ((s2), (s2)+1) <input value ((s3), (s3)+1)|High limit value ((s2), (s2)+1)
1826 -|Low limit value ((s1), (s1)+1) ≤ input value ((s3), (s3)+1) ≤ high limit value ((s2), (s2)+1)|Input value ((s3), (s3)+1)
1827 -
1828 -{{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).
1829 -
1830 -• Only in the case of controlling low limit value, set the maximum value of data range in the high limit value specified in (s2).
1831 -
1832 -**Error code**
1833 -
1834 -|**Error code**|**Content**
1835 -|4085H|The read address exceeds the device range
1836 -|4086H|The write address exceeds the device range
1837 -|4084H|High limit <low limit
1838 -
1839 -**Example**
1840 -
1841 -[[image:07-5 Basic instructions_html_217355b90f4b4e16.png]]
1842 -
1843 -Operation:
1844 -
1845 -• When (D1, D0) <10,000, (D11, D10) is 10,000.
1846 -
1847 -• When 10,000 ≤ (D1, D0) ≤ 1,000,000, (D11, D10) is the value of (D1, D0).
1848 -
1849 -• When 1,000,000 <(D1, D0), (D11, D10) is 1,000,000.
1850 -
1851 -{{id name="_Toc12534"/}}{{id name="_Toc28213"/}}{{id name="_Toc24591"/}}**SCL/BIN 16-bit unit scale (coordinate data of each point)**
1852 -
1853 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **SCL(P)**
1854 -
1855 -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).
1856 -
1857 --[SCL (s1) (s2) (d)]
1858 -
1859 -**Content, range and data type**
1860 -
1861 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1862 -|(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
1863 -|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 16 bit|ANY16_S
1864 -|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 16 bit|ANY16_S
1865 -
1866 -**Device used**
1867 -
1868 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1869 -**Pulse**
1870 -
1871 -**extension**
1872 -)))
1873 -|**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**
1874 -|(% rowspan="3" %)SCL|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
1875 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|●
1876 -|Parameter 3| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
1877 -
1878 -**Features**
1879 -
1880 -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).
1881 -
1882 -|(% colspan="2" %)**Setting items (n represents the number of coordinate points specified in (s2))**|**Device allocation**
1883 -|(% colspan="2" %)Coordinate points|(s2)
1884 -|(% rowspan="2" %)Point 1|X coordinate|(s2)+1
1885 -|Y coordinate|(s2)+2
1886 -|(% rowspan="2" %)Point 2|X coordinate|(s2)+3
1887 -|Y coordinate|(s2)+4
1888 -|(% colspan="3" %)........
1889 -|(% rowspan="2" %)Point n|X coordinate|(s2)+2n-1
1890 -|Y coordinate|(s2)+2n
1891 -
1892 -[[image:07-5 Basic instructions_html_80185ccddb878234.png]]
1893 -
1894 -• If the operation result is not an integer value, round the first digit below the decimal point.
1895 -
1896 -• The X coordinate data of the conversion data for scaling should be set in ascending order.
1897 -
1898 -• (s1) should be set within the range of conversion data for scaling (device value of (s2)).
1899 -
1900 -• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output.
1901 -
1902 -• Set the number of coordinate points of the conversion data for scaling within the range of 1 to 32,767.
1903 -
1904 -• Setting example of conversion table for scaling.
1905 -
1906 -In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet.
1907 -
1908 -[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]]
1909 -
1910 -|(% colspan="2" rowspan="2" %)**Set &nbsp;&nbsp;&nbsp;&nbsp;items**|(% colspan="3" %)**Sett &nbsp;&nbsp;&nbsp;&nbsp;device and content**|(% rowspan="2" %)**Remarks**
1911 -|(% colspan="2" %)**When R0 is specified in (s2)**|**Set &nbsp;&nbsp;&nbsp;&nbsp;content**
1912 -|(% colspan="2" %)Coordinate points|(s2)|R0|K10|
1913 -|(% rowspan="2" %)Point 1|X coordinate|(s2)+1|R1|K5|
1914 -|Y coordinate|(s2)+2|R2|K20|
1915 -|(% rowspan="2" %)Point 2|X coordinate|(s2)+3|R3|K30|
1916 -|Y coordinate|(s2)+4|R4|K50|
1917 -|(% rowspan="2" %)Point 3|X coordinate|(s2)+5|R5|K100|
1918 -|Y coordinate|(s2)+6|R6|K200|
1919 -|(% rowspan="2" %)Point 4|X coordinate|(s2)+7|R7|K25|(% rowspan="6" %)(((
1920 -If the coordinates are specified by 3 points, the intermediate value could be the output value.
1921 -
1922 -In this example, the output value (median value) is specified by the Y coordinate of point 5.
1923 -
1924 -When the X coordinate is the same at 3 points or more, the value of the 2nd point is also output.
1925 -)))
1926 -|Y coordinate|(s2)+8|R8|K200
1927 -|(% rowspan="2" %)Point 5|X coordinate|(s2)+9|R9|K70
1928 -|Y coordinate|(s2)+10|R10|K200
1929 -|(% rowspan="2" %)Point 6|X coordinate|(s2)+11|R11|K250
1930 -|Y coordinate|(s2)+12|R12|K250
1931 -|(% rowspan="2" %)Point 7|X coordinate|(s2)+13|R13|K250|
1932 -|Y coordinate|(s2)+14|R14|K90|
1933 -|(% rowspan="2" %)Point 8|X coordinate|(s2)+15|R15|K350|(% rowspan="4" %)(((
1934 -If the coordinates are specified by two points, the output value is the value of the Y coordinate of the next point.
1935 -
1936 -In this example, the output value is specified by the Y coordinate of point 9.
1937 -)))
1938 -|Y coordinate|(s2)+16|R16|K90
1939 -|(% rowspan="2" %)Point 9|X coordinate|(s2)+17|R17|K350
1940 -|Y coordinate|(s2)+18|R18|K30
1941 -|(% rowspan="2" %)Point 10|X coordinate|(s2)+19|R19|K400|
1942 -|Y coordinate|(s2)+20|R20|K7|
1943 -
1944 -**Error code**
1945 -
1946 -|**Error code**|**Content**
1947 -|4085H|When the specified device range for reading exceeds the range of the corresponding device.
1948 -|4086H|When the specified device range for writing exceeds the range of the corresponding device.
1949 -|4084H|(((
1950 -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;
1951 -
1952 -When the input value specified in (s1) exceeds the range of the set scale conversion data;
1953 -
1954 -When the number of start coordinate points of device (s2) is less than 0.
1955 -)))
1956 -
1957 -**Example**
1958 -
1959 -[[image:07-5 Basic instructions_html_5519d7b41f15b6d6.png]]
1960 -
1961 -[[image:07-5 Basic instructions_html_ace075fb7675de8e.gif]] When -100 ≤ D0(X) < 0, D100(Y)=
1962 -
1963 -[[image:07-5 Basic instructions_html_9acd6306c6d91847.gif]] when D0(X)=0, D100(Y)=0;
1964 -
1965 -when 0< D0(X) ≤ 100, D100(Y)=
1966 -
1967 -[[image:07-5 Basic instructions_html_e35e13160c08a133.png]]
1968 -
1969 -
1970 -
1971 -{{id name="_Toc4862"/}}{{id name="_Toc11340"/}}{{id name="_Toc25383"/}}**DSCL/32-bit unit scale (coordinate data of each point)**
1972 -
1973 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DSCL(P)**
1974 -
1975 -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).
1976 -
1977 --[DSCL (s1) (s2) (d)]
1978 -
1979 -**Content, range and data type**
1980 -
1981 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1982 -|(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
1983 -|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 32 bit|ANY32_S
1984 -|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 32 bit|ANY32_S
1985 -
1986 -**Device used**
1987 -
1988 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Device**|**Offset modification**|(((
1989 -**Pulse**
1990 -
1991 -**extension**
1992 -)))
1993 -|**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**
1994 -|(% rowspan="3" %)DSCL|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|●
1995 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|●
1996 -|Parameter 3| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●|●
1997 -
1998 -**Features**
1999 -
2000 -{{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).
2001 -
2002 -|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation**
2003 -|(% colspan="2" %)Coordinate points|(s2)+1, (s2)
2004 -|(% rowspan="2" %)Point 1|X coordinate|(s2)+3, (s2)+2
2005 -|Y coordinate|(s2)+5, (s2)+4
2006 -|(% rowspan="2" %)Point 2|X coordinate|(s2)+7, (s2)+6
2007 -|Y coordinate|(s2)+9, (s2)+8
2008 -|(% colspan="3" %)........
2009 -|(% rowspan="2" %)Point n|X coordinate|(s2)+4n-1, (s2)+4n-2
2010 -|Y coordinate|(s2)+4n+1, (s2)+4n
2011 -
2012 -[[image:07-5 Basic instructions_html_6633ca18cee1218c.png]]
2013 -
2014 -• If the calculation result is not an integer value, round the first digit below the decimal point.
2015 -
2016 -• The X coordinate data of the conversion data for scaling should be set in ascending order.
2017 -
2018 -• For (s1), set within the range of the conversion data for scaling ((s2), (s2) + 1 device value).
2019 -
2020 -• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output.
2021 -
2022 -• Set the number of coordinate points of conversion data for scaling within the range of 1 to 2,147,483,647.
2023 -
2024 -• Setting example of conversion table for scaling.
2025 -
2026 -In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet.
2027 -
2028 -[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]]
2029 -
2030 -|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Set &nbsp;&nbsp;&nbsp;&nbsp;device and content**|(% rowspan="2" %)**Remarks**
2031 -|(% colspan="2" %)**When R0 is specified in (s2)**|**Set &nbsp;&nbsp;&nbsp;&nbsp;content**
2032 -|(% colspan="2" %)Coordinate points|(s2)+1, (s2)|R1, R0|K10|
2033 -|(% rowspan="2" %)Point 1|X coordinate|(s2)+3, (s2)+2|R3, R2|K5|
2034 -|Y coordinate|(s2)+5, (s2)+4|R5, R4|K7|
2035 -|(% rowspan="2" %)Point 2|X coordinate|(s2)+7, (s2)+6|R7, R6|K20|
2036 -|Y coordinate|(s2)+9, (s2)+8|R9, R8|K30|
2037 -|(% rowspan="2" %)Point 3|X coordinate|(s2)+11, (s2)+10|R10, R11|K50|
2038 -|Y coordinate|(s2)+13, (s2)+12|R13, R12|K100|
2039 -|(% rowspan="2" %)Point 4|X coordinate|(s2)+15, (s2)+14|R15, R14|K200|(% rowspan="6" %)(((
2040 -if the coordinates are specified by 3 points, the intermediate value could be the output value.
2041 -
2042 -In this example, the output value (median value) is specified by the Y coordinate of point 5.
2043 -
2044 -When the X coordinate is the same at 3 points or more, the value of the 2nd point is also output.
2045 -)))
2046 -|Y coordinate|(s2)+17, (s2)+16|R17, R16|K25
2047 -|(% rowspan="2" %)Point 5|X coordinate|(s2)+19, (s2)+18|R19, R18|K200
2048 -|Y coordinate|(s2)+21, (s2)+20|R21, R20|K70
2049 -|(% rowspan="2" %)Point 6|X coordinate|(s2)+23, (s2)+22|R23, R22|K200
2050 -|Y coordinate|(s2)+25, (s2)+24|R25, R24|K250
2051 -|(% rowspan="2" %)Point 7|X coordinate|(s2)+27, (s2)+26|R27, R26|K250|
2052 -|Y coordinate|(s2)+29, (s2)+28|R29, R28|K90|
2053 -|(% rowspan="2" %)Point 8|X coordinate|(s2)+31, (s2)+30|R31, R30|K350|(% rowspan="4" %)(((
2054 -If the coordinates are specified by two points, the output value is the value of the Y coordinate of the next point.
2055 -
2056 -In this example, the output value is specified by the Y coordinate of point 9.
2057 -)))
2058 -|Y coordinate|(s2)+33, (s2)+32|R33, R32|K90
2059 -|(% rowspan="2" %)Point 9|X coordinate|(s2)+35, (s2)+34|R35, R34|K350
2060 -|Y coordinate|(s2)+37, (s2)+36|R37, R36|K30
2061 -|(% rowspan="2" %)Point 10|X coordinate|(s2)+39, (s2)+38|R39, R38|K400|
2062 -|Y coordinate|(s2)+41, (s2)+40|R41, R40|K7|
2063 -
2064 -**Error code**
2065 -
2066 -|**Error code**|**Content**
2067 -|4085H|When the specified device range for reading exceeds the range of the corresponding device.
2068 -|4086H|When the specified device range for writing exceeds the range of the corresponding device.
2069 -|4084H|(((
2070 -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;
2071 -
2072 -When the input value specified in (s1) exceeds the range of the set scale conversion data;
2073 -
2074 -When the number of start coordinate points of device (s2) is less than 0.
2075 -)))
2076 -
2077 -**Example**
2078 -
2079 -[[image:07-5 Basic instructions_html_ba95b2d50d8d1d3e.png]]
2080 -
2081 -[[image:07-5 Basic instructions_html_1de79c7d87d51f78.gif]] When -100 ≤ D0(X) < 0, D100(Y)=
2082 -
2083 -[[image:07-5 Basic instructions_html_9acd6306c6d91847.gif]] When D0(X)=0, D100(Y)=0;
2084 -
2085 -When 0 < D0(X) ≤ 100, D100(Y)=
2086 -
2087 -[[image:07-5 Basic instructions_html_a5b19d1af74a9620.png]]
2088 -
2089 -{{id name="_Toc3776"/}}{{id name="_Toc11170"/}}{{id name="_Toc2957"/}}**SCL2/BIN 16-bit unit scale (X/Y coordinate data)**
2090 -
2091 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **SCL2(P)**
2092 -
2093 -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).
2094 -
2095 --[SCL2 (s1) (s2) (d)]
2096 -
2097 -**Content, range and data type**
2098 -
2099 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
2100 -|(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
2101 -|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 16 bit|ANY16_S
2102 -|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 16 bit|ANY16_S
2103 -
2104 -**Device used**
2105 -
2106 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
2107 -**Pulse**
2108 -
2109 -**extension**
2110 -)))
2111 -|**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**
2112 -|(% rowspan="3" %)SCL2|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
2113 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|●
2114 -|Parameter 3| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
2115 -
2116 -**Features**
2117 -
2118 -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).
2119 -
2120 -|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation**
2121 -|(% colspan="2" %)Coordinate points|(s2)
2122 -|(% rowspan="4" %)X coordinate|Point 1|(s2)+1
2123 -|Point 2|(s2)+2
2124 -|.....|......
2125 -|Point n|(s2)+n
2126 -|(% rowspan="4" %)Y coordinate|Point 1|(s2)+n+1
2127 -|Point 2|(s2)+n+2
2128 -|.....|.....
2129 -|Point n|(s2)+2n
2130 -
2131 -[[image:07-5 Basic instructions_html_80185ccddb878234.png]]
2132 -
2133 -• If the operation result is not an integer value, round the first digit below the decimal point.
2134 -
2135 -• The X coordinate data of the conversion data for scaling should be set in ascending order.
2136 -
2137 -• For (s1), set within the range of the conversion data for scaling ((s2), (s2) + 1 device value).
2138 -
2139 -• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output.
2140 -
2141 -• Set the number of coordinate points of conversion data for scaling within the range of 1 to 32,767.
2142 -
2143 -• Setting example of conversion table for scaling.
2144 -
2145 -In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet.
2146 -
2147 -[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]]
2148 -
2149 -|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Set device and content**|(% rowspan="2" %)**Remarks**
2150 -|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content**
2151 -|(% colspan="2" %)Coordinate points|(s2)|R0|K10|
2152 -|(% rowspan="10" %)X coordinate|Point 1|(s2)+1|R1|K5|
2153 -|Point 2|(s2)+2|R2|K20|
2154 -|Point 3|(s2)+3|R3|K50|
2155 -|Point 4|(s2)+4|R4|K200|(% rowspan="3" %)Refer to** ✎1**
2156 -|Point 5|(s2)+5|R5|K200
2157 -|Point 6|(s2)+6|R6|K200
2158 -|Point 7|(s2)+7|R7|K250|
2159 -|Point 8|(s2)+8|R8|K350|(% rowspan="2" %)Refer to** ✎2**
2160 -|Point 9|(s2)+9|R9|K350
2161 -|Point 10|(s2)+10|R10|K400|
2162 -|(% rowspan="10" %)Y coordinate|Point 1|(s2)+11|R11|K7|
2163 -|Point 2|(s2)+12|R12|K30|
2164 -|Point 3|(s2)+13|R13|K100|
2165 -|Point 4|(s2)+14|R14|K25|(% rowspan="3" %)Refer to**✎1**
2166 -|Point 5|(s2)+15|R15|K70
2167 -|Point 6|(s2)+16|R16|K250
2168 -|Point 7|(s2)+17|R17|K90|
2169 -|Point 8|(s2)+18|R18|K90|(% rowspan="2" %)Refer to** ✎2**
2170 -|Point 9|(s2)+19|R19|K30
2171 -|Point 10|(s2)+20|R20|K7|
2172 -
2173 -✎**1** Like points 4, 5, and 6, if the coordinates are specified by 3 points, the intermediate value could be the output value.
2174 -
2175 -In this example, the output value (median value) is specified by the Y coordinate of point 5.
2176 -
2177 -When the X coordinate is the same at 3 or more points, the value of the second point is also output.
2178 -
2179 -✎**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.
2180 -
2181 -In this example, the output value is specified by the Y coordinate of point 9.
2182 -
2183 -**Error code**
2184 -
2185 -|**Error code**|**Content**
2186 -|4085H|When the specified device range for reading exceeds the range of the corresponding device.
2187 -|4086H|When the specified device range for writing exceeds the range of the corresponding device.
2188 -|4084H|(((
2189 -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;
2190 -
2191 -When the input value specified in (s1) exceeds the range of the set scale conversion data;
2192 -
2193 -When the number of start coordinate points of device (s2) is less than 0.
2194 -)))
2195 -
2196 -**Example**
2197 -
2198 -[[image:07-5 Basic instructions_html_ace075fb7675de8e.gif]] [[image:07-5 Basic instructions_html_de529c9a16a62ef0.png]]
2199 -
2200 -When -100 ≤D0 (X) < 0, D100(Y)=
2201 -
2202 -[[image:07-5 Basic instructions_html_9acd6306c6d91847.gif]] when D0(X)=0, D100(Y)=0;
2203 -
2204 -when 0 < D0(X) ≤ 100, D100(Y)=
2205 -
2206 -[[image:07-5 Basic instructions_html_a5b19d1af74a9620.png]]
2207 -
2208 -{{id name="_Toc5608"/}}{{id name="_Toc1756"/}}{{id name="_Toc21402"/}}**DSCL2/BIN 32-bit unit scale (X/Y coordinate data)**
2209 -
2210 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DSCL2(P)**
2211 -
2212 -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).
2213 -
2214 --[DSCL2 (s1) (s2) (d)]
2215 -
2216 -**Content, range and data type**
2217 -
2218 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
2219 -|(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
2220 -|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 32 bit|ANY32_S
2221 -|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 32 bit|ANY32_S
2222 -
2223 -**Device used**
2224 -
2225 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
2226 -**Pulse**
2227 -
2228 -**extension**
2229 -)))
2230 -|**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**
2231 -|(% rowspan="3" %)DSCL2|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|●
2232 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|●
2233 -|Parameter 3| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●|●
2234 -
2235 -**Features**
2236 -
2237 -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).
2238 -
2239 -|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation**
2240 -|(% colspan="2" %)Coordinate points|(s2)+1, (s2)
2241 -|(% rowspan="4" %)X coordinate|Point 1|(s2)+3, (s2)+2
2242 -|Point 2|(s2)+5, (s2)+4
2243 -|.....|......
2244 -|Point n|(s2)+2n+1, (s2)+2n
2245 -|(% rowspan="4" %)Y coordinate|Point 1|(s2)+2n+3, (s2)+2n+2
2246 -|Point 2|(s2)+2n+5, (s2)+2n+4
2247 -|.....|.....
2248 -|Point n|(s2)+4n+1, (s2)+4n
2249 -
2250 -[[image:07-5 Basic instructions_html_6633ca18cee1218c.png]]
2251 -
2252 -• If the operation result is not an integer value, round the first digit below the decimal point.
2253 -
2254 -• The X coordinate data of the conversion data for scaling should be set in ascending order.
2255 -
2256 -• For (s1), set within the range of the conversion data for scaling ((s2), (s2) + 1 device value).
2257 -
2258 -• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output.
2259 -
2260 -• Set the number of coordinate points of conversion data for scaling within the range of 1 to 2,147,483,647.
2261 -
2262 -• Setting example of conversion table for scaling.
2263 -
2264 -In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet.
2265 -
2266 -[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]]
2267 -
2268 -|(% colspan="2" rowspan="2" %)**Set &nbsp;&nbsp;&nbsp;&nbsp;items**|(% colspan="3" %)**Set device and content**|(% rowspan="2" %)**Remarks**
2269 -|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content**
2270 -|(% colspan="2" %)Coordinate points|(s2)+1, (s2)|R1, R0|K10|
2271 -|(% rowspan="10" %)X|Point 1|(s2)+3, (s2)+2|R3, R2|K5|
2272 -|Point 2|(s2)+5, (s2)+4|R5, R4|K20|
2273 -|Point 3|(s2)+7, (s2)+6|R7, R6|K50|
2274 -|Point 4|(s2)+9, (s2)+8|R9, R8|K200|(% rowspan="3" %)Refer to** ✎1**
2275 -|Point 5|(s2)+11, (s2)+10|R10, R11|K200
2276 -|Point 6|(s2)+13, (s2)+12|R13, R12|K200
2277 -|Point 7|(s2)+15, (s2)+14|R15, R14|K250|
2278 -|Point 8|(s2)+17, (s2)+16|R17, R16|K350|(% rowspan="2" %)Refer to** ✎2**
2279 -|Point 9|(s2)+19, (s2)+18|R19, R18|K350
2280 -|Point 10|(s2)+21, (s2)+20|R21, R20|K400|
2281 -|(% rowspan="10" %)Y coordinate|Point 1|(s2)+23, (s2)+22|R23, R22|K7|
2282 -|Point 2|(s2)+25, (s2)+24|R25, R24|K30|
2283 -|Point 3|(s2)+27, (s2)+26|R27, R26|K100|
2284 -|Point 4|(s2)+29, (s2)+28|R29, R28|K25|(% rowspan="3" %)Refer to** ✎1**
2285 -|Point 5|(s2)+31, (s2)+30|R31, R30|K70
2286 -|Point 6|(s2)+33, (s2)+32|R33, R32|K250
2287 -|Point 7|(s2)+35, (s2)+34|R35, R34|K90|
2288 -|Point 8|(s2)+37, (s2)+36|R37, R36|K90|(% rowspan="2" %)Refer to** ✎2**
2289 -|Point 9|(s2)+39, (s2)+38|R39, R38|K30
2290 -|Point 10|(s2)+41, (s2)+40|R41, R40|K7|
2291 -
2292 -✎**1** Like points 4, 5, and 6, if the coordinates are specified by 3 points, the intermediate value could be the output value.
2293 -
2294 -In this example, the output value (median value) is specified by the Y coordinate of point 5.
2295 -
2296 -When the X coordinate is the same at 3 or more points, the value of the second point is also output.
2297 -
2298 -✎**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.
2299 -
2300 -In this example, the output value is specified by the Y coordinate of point 9.
2301 -
2302 -**Error code**
2303 -
2304 -|**Error code**|**Content**
2305 -|4085H|When the specified device range for reading exceeds the range of the corresponding device.
2306 -|4086H|When the specified device range for writing exceeds the range of the corresponding device.
2307 -|4084H|(((
2308 -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;
2309 -
2310 -When the input value specified in (s1) exceeds the range of the set scale conversion data;
2311 -
2312 -When the number of start coordinate points of device (s2) is less than 0.
2313 -)))
2314 -
2315 -**Example**
2316 -
2317 -[[image:07-5 Basic instructions_html_91dbc16faa9d2ec3.png]]
2318 -
2319 -When -100 ≤D0(X) < 0, D100(Y)=[[image:/xwiki/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/07-5%20Basic%20instruction/WebHome/07-5%20Basic%20instructions_html_2c96d630f666e72c.gif?rev=1.1||alt="07-5 Basic instructions_html_2c96d630f666e72c.gif"]],,[[image:07-5 Basic instructions_html_2c96d630f666e72c.gif]] ,,;
2320 -
2321 -when D0(X)=0, D100(Y)=0;
2322 -
2323 -when 0< D0(X) ≤ 100, D100(Y)=[[image:/xwiki/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/07-5%20Basic%20instruction/WebHome/07-5%20Basic%20instructions_html_47ebf5cc7733fccc.gif?rev=1.1||alt="07-5 Basic instructions_html_47ebf5cc7733fccc.gif"]],,[[image:07-5 Basic instructions_html_47ebf5cc7733fccc.gif]] ,,.
2324 -
2325 -[[image:07-5 Basic instructions_html_a5b19d1af74a9620.png]]
2326 -
2327 -{{id name="_Toc32057"/}}{{id name="_Toc9941"/}}{{id name="_Toc6492"/}}**ZONE/BIN 16-bit data zone control**
2328 -
2329 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **ZONE(P)**
2330 -
2331 -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).
2332 -
2333 --[ZONE (s1) (s2) (s3) (d)]
2334 -
2335 -**Content, range and data type**
2336 -
2337 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
2338 -|s1|The negative offset value for addition in the input value|-32,768 to 32,767|BIN16 bit|ANY16_S
2339 -|s2|The positive offset value for addition in the input value|-32,768 to 32,767|BIN16 bit|ANY16_S
2340 -|s3|Input value for zone control`|-32,768 to 32,767|BIN16 bit|ANY16_S
2341 -|d|The start number of the device storing the output value controlled by zone control|-|BIN16 bit|ANY16_S
2342 -
2343 -**Device used**
2344 -
2345 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
2346 -**Pulse**
2347 -
2348 -**extension**
2349 -)))
2350 -|**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**
2351 -|(% rowspan="4" %)ZONE|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
2352 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
2353 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|●
2354 -|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
2355 -
2356 -**Features**
2357 -
2358 -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.
2359 -
2360 -|**Condition**|**The value stored in the output value**
2361 -|When input value (s3)<0|Input value (s3) + negative offset value (s1)
2362 -|When input value (s3)=0|0
2363 -|When input value (s3)>0|Input value (s3) + positive offset value (s2)
2364 -
2365 -
2366 -(((
2367 -• 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.
2368 -
2369 -For example, when (s1) is -100 and (s3) is -32,768,
2370 -
2371 -the output value = -32768+(-100)=8000H-FF9CH=7F9CH=32668.
2372 -
2373 -[[image:07-5 Basic instructions_html_a2adbf9ccf8f839.png]]
2374 -
2375 -
2376 -
2377 -)))
2378 -
2379 -**Error code**
2380 -
2381 -|**Error code**|**Content**
2382 -|4085H|When the specified device range for reading exceeds the range of the corresponding device
2383 -|4086H|When the specified device range for writing exceeds the range of the corresponding device
2384 -
2385 -**Example**
2386 -
2387 -[[image:07-5 Basic instructions_html_5da523c7765bf5be.png]]
2388 -
2389 -When X000 is ON
2390 -
2391 -• When D0<0, the value of (D0)+(-1,000) is stored in D1.
2392 -
2393 -• When D0=0, 0 is stored in D1.
2394 -
2395 -• When 0<D0, the value of (D0)+(1,000) is stored in D1.
2396 -
2397 -{{id name="_Toc28351"/}}{{id name="_Toc11023"/}}{{id name="_Toc30269"/}}**DZONE/BIN 32-bit data zone control**
2398 -
2399 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] DZONE(P)
2400 -
2401 -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).
2402 -
2403 --[DZONE (s1) (s2) (s3) (d)]
2404 -
2405 -**Content, range and data type**
2406 -
2407 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
2408 -|(s1)|The negative offset value for addition in the input value|-2147483648 to 2147483647|BIN32 bit|ANY32_S
2409 -|(s2)|The positive offset value for addition in the input value|-2147483648 to 2147483647|BIN32 bit|ANY32_S
2410 -|(s3)|Input value for zone control|-2147483648 to 2147483647|BIN32 bit|ANY32_S
2411 -|(d)|The start number of the device storing the output value controlled by zone control|-|BIN32 bit|ANY32_S
2412 -
2413 -**Device used**
2414 -
2415 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
2416 -**Pulse**
2417 -
2418 -**extension**
2419 -)))
2420 -|**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**
2421 -|(% rowspan="4" %)DZONE|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|●
2422 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|●
2423 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●| | | |●|●
2424 -|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●|●
2425 -
2426 -**Features**
2427 -
2428 -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.
2429 -
2430 -|**Condition**|**The value stored in the output value**
2431 -|When input value ((s3), (s3)+1)<0|Input value ((s3), (s3)+1) + negative offset value (s1), (s1)+1
2432 -|When input value ((s3), (s3)+1)=0|0
2433 -|When input value ((s3), (s3)+1)>0|Input value ((s3), (s3)+1) + positive offset value (s2), (s2)+1
2434 -
2435 -
2436 -(((
2437 -• 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.
2438 -
2439 -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.
2440 -
2441 -[[image:07-5 Basic instructions_html_2f3a96a2565c75c7.png]]
2442 -)))
2443 -
2444 -**Error code**
2445 -
2446 -|**Error code**|**Content**
2447 -|4085H|When the specified device range for reading exceeds the range of the corresponding device
2448 -|4086H|When the specified device range for writing exceeds the range of the corresponding device
2449 -
2450 -**Example**
2451 -
2452 -[[image:07-5 Basic instructions_html_b831b14748df07ab.png]]
2453 -
2454 -• When (D1, D0)<0, the value of (D1, D0)+(-10,000) is stored in (D11, D10).
2455 -
2456 -• When (D1, D0)=0, 0 is stored in (D11, D10).
2457 -
2458 -• When 0<(D1, D0), the value of (D1, D0)+10,000 is stored in (D11, D10).
903 +(% style="text-align:center" %)
904 +[[image:07-5 Basic instructions_html_f512f36261705953.png||height="48" width="218"]]