Changes for page 12 Clock operation
Last modified by Mora Zhou on 2023/11/21 17:27
Summary
-
Page properties (4 modified, 0 added, 0 removed)
-
Attachments (0 modified, 10 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,0 +1,1 @@ 1 +12 Clock operation - Parent
-
... ... @@ -1,1 +1,1 @@ 1 -PLC Editor2. 1Usermanual.2\.1 LX5V usermanual.WebHome1 +PLC Editor2.07 Basic instructions.WebHome - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Joey1 +XWiki.Bob - Content
-
... ... @@ -1,388 +1,5 @@ 1 -= **Contactcomparison instruction**=1 +== == 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) LD£ instruction: 78 - 79 -(% style="text-align:center" %) 80 -[[image:07-5 Basic instructions_html_1309199eccc7134.png]] 81 -))) 82 - 83 -When the current value of counter C10 is 200, Y10 is set 84 - 85 -When the content of D200 is above -29, and X1 is ON, Y11 is set 86 - 87 -(2) AND£ instruction: 88 - 89 -(% style="text-align:center" %) 90 -[[image:07-5 Basic instructions_html_1c966f74b0bd808e.png]] 91 - 92 -((( 93 -When X0 is ON, or when the current value of counter C10 is 200, Y10 is set 94 - 95 -When X1 is OFF, and the content of data counter D0 is not -10, Y11 is set 96 - 97 - 98 -))) 99 - 100 -(3) OR£ instruction: 101 - 102 -(% style="text-align:center" %) 103 -[[image:07-5 Basic instructions_html_8b000809015ea436.png]] 104 - 105 -((( 106 -When X1 is ON, or when the current value of counter C10 is 200, Y0 is set 107 - 108 -When X2 and M30 are ON, or the content of register D100 is K10000 and above, M60 is set 109 -))) 110 - 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="13" %)**Devices**|((( 139 -**Offset modification** 140 -)))|((( 141 -**Pulse extension** 142 -))) 143 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 144 -|LDD=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 145 -|LDD>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 146 -|LDD<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 147 -|LDD>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 148 -|LDD<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 149 -|LDD<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 150 -|ANDD=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 151 -|ANDD>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 152 -|ANDD<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 153 -|ANDD>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 154 -|ANDD<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 155 -|ANDD<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 156 -|ORD=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 157 -|ORD>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 158 -|ORD<|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 159 -|ORD>=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 160 -|ORD<=|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 161 -|ORD<>|s1, s2|●|●|●|●|●|●|●|●|●|●|●|●|●|●| 162 - 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 -(% style="text-align:center" %) 187 -[[image:07-5 Basic instructions_html_8acf0d489297c561.png]] 188 - 189 -When the data of LC10 is 200000, Y10 is set, otherwise Y10 is reset. 190 - 191 -When the 32-bit data composed of D201 and D200 exceeds -5000, and X1 is ON, Y11 is turned ON. 192 - 193 -(2) ANDD£ instruction: 194 - 195 -(% style="text-align:center" %) 196 -[[image:07-5 Basic instructions_html_38be93eec0ced6c.png]] 197 - 198 -When X0 is ON and the value of LC10 is 200000, Y10 is set, otherwise it is reset. 199 - 200 -When X1 is OFF and the 32-bit data composed of D1 and D0 is not equal to K-50000, Y11 is set. 201 - 202 -(3) ORD£ instruction: 203 - 204 -(% style="text-align:center" %) 205 -[[image:07-5 Basic instructions_html_8ebfc7b0562cf370.png]] 206 - 207 -When X1 is ON, or the data of LC10 is equal to the data of LC10 is equal to 200000, Y0 is set. 208 - 209 -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. 210 - 211 -== **Single precision real number contact comparison instruction** == 212 - 213 -**LDE £, ANDE £, ORE £** 214 - 215 -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. 216 - 217 -LDE£: Normally open contact comparison command 218 - 219 -ANDE£: Normally open contact series link comparison instruction 220 - 221 -ORE£: Normally open contact parallel link comparison instruction 222 - 223 -**Ladder diagram** 224 - 225 -(% style="text-align:center" %) 226 -[[image:07-5 Basic instructions_html_6ac28f30e24ad296.png||height="352" width="550"]] 227 - 228 -“=”, “<>”, “>”, “<”, “>=”, “<=” can be input in “£” 229 - 230 -**Content, range and data type** 231 - 232 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 233 -|(s1)|Comparison data or the device start number storing the comparison data|0, 2^^-126^^ ≤~|(s)~|< 2^^128^^|Single precision real number|ANYREAL_32 234 -|(s2)|Comparison data or the device start number storing the comparison data|0, 2^^-126^^ ≤~|(s)~|< 2^^128^^|Single precision real number|ANYREAL_32 235 - 236 -**Device used** 237 - 238 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="8" %)**Devices**|((( 239 -**Offset modification** 240 -)))|((( 241 -**Pulse extension** 242 -))) 243 -|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**E**|**[D]**|**XXP** 244 -|LDE=|s1, s2|●|●|●|●|●|●|●|●|●| 245 -|LDE>|s1, s2|●|●|●|●|●|●|●|●|●| 246 -|LDE<|s1, s2|●|●|●|●|●|●|●|●|●| 247 -|LDE>=|s1, s2|●|●|●|●|●|●|●|●|●| 248 -|LDE<=|s1, s2|●|●|●|●|●|●|●|●|●| 249 -|LDE<>|s1, s2|●|●|●|●|●|●|●|●|●| 250 -|ANDE=|s1, s2|●|●|●|●|●|●|●|●|●| 251 -|ANDE>|s1, s2|●|●|●|●|●|●|●|●|●| 252 -|ANDE<|s1, s2|●|●|●|●|●|●|●|●|●| 253 -|ANDE>=|s1, s2|●|●|●|●|●|●|●|●|●| 254 -|ANDE<=|s1, s2|●|●|●|●|●|●|●|●|●| 255 -|ANDE<>|s1, s2|●|●|●|●|●|●|●|●|●| 256 -|ORE=|s1, s2|●|●|●|●|●|●|●|●|●| 257 -|ORD>|s1, s2|●|●|●|●|●|●|●|●|●| 258 -|ORE<|s1, s2|●|●|●|●|●|●|●|●|●| 259 -|ORE>=|s1, s2|●|●|●|●|●|●|●|●|●| 260 -|ORE<=|s1, s2|●|●|●|●|●|●|●|●|●| 261 -|ORE<>|s1, s2|●|●|●|●|●|●|●|●|●| 262 - 263 -**Features** 264 - 265 -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. 266 - 267 -The comparison operation result of each instruction is shown below. 268 - 269 -|**Instruction Sign**|**Condition**|**Comparison operation result**|**Instruction Sign**|**Condition**|**Comparison operation result** 270 -|E=|(s1)=(s2)|(% rowspan="6" %)On state|E=|(s1)≠(s2)|(% rowspan="6" %)Non-conduction state 271 -|E<>|(s1)≠(s2)|E<>|(s1)=(s2) 272 -|E>|(s1)>(s2)|E>|(s1)≤(s2) 273 -|E<|(s1)<(s2)|E<|(s1)≥(s2) 274 -|E>=|(s1)≥(s2)|E>=|(s1)<(s2) 275 -|E<=|(s1)≤(s2)|E<=|(s1)>(s2) 276 - 277 -**Error code** 278 - 279 -|**Error code**|**Content** 280 -|4084H|When the content of the specified device by (s1) and (s2) is an irregular number, a non-number, or ±∞ 281 -|4085H|The read address of (s1) and (s2exceeds the device range 282 - 283 -**Example** 284 - 285 -(1) LDE£ instruction: 286 - 287 -(% style="text-align:center" %) 288 -[[image:07-5 Basic instructions_html_c4c820cf59601493.png]] 289 - 290 -When the real number input in D0 is equal to E1.23, Y10 is ON, otherwise Y10 is OFF. 291 - 292 -When the real number in R0 is greater than or equal to the real number in LC0, Y11 is ON, otherwise it is OFF. 293 - 294 -If the input in D0, R0, LC0 is not a real number, it will report H4084 error. 295 - 296 -(2) ANDE£ instruction: 297 - 298 -(% style="text-align:center" %) 299 -[[image:07-5 Basic instructions_html_7cdd2117360e179b.png]] 300 - 301 -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. 302 - 303 -(3) ORE£ instruction: 304 - 305 -(% style="text-align:center" %) 306 -[[image:07-5 Basic instructions_html_3eba0bd56176441d.png]] 307 - 308 -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. 309 - 310 -== **String comparison** == 311 - 312 -**LDS£、ANDS£、 ORS£** 313 - 314 -Compare the string stored after the device number specified in (s1) with the string stored after the device number specified in (s2). 315 - 316 -LDS£: String comparison instruction 317 - 318 -ANDS£: String serial connection comparison instruction 319 - 320 -ORS£: String parallel connection comparison instruction 321 - 322 -**Ladder diagram** 323 - 324 -(% style="text-align:center" %) 325 -[[image:07-5 Basic instructions_html_5fb3b3b70645fef5.png||height="371" width="550"]] 326 - 327 -“=” and “<>” could be entered in “£” 328 - 329 -**Content, range and data type** 330 - 331 -|**Parameter**|**Content**|**Range**|**Date type**|**Date type(label)** 332 -|(S1)|Connection data or the device start number storing the data or the string specified directly|-|String|ANYSTRING_SINGLE 333 -|(S1)|Connection data or the device start number storing the data or the string specified directly|-|String|ANYSTRING_SINGLE 334 - 335 -**Device used** 336 - 337 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|((( 338 -**Offset modification** 339 -)))|((( 340 -**Pulse extension** 341 -))) 342 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 343 -|LDS=|s1、s2|●|●|●|●|●|●|●|●|●|●| 344 -|LDS<>|s1、s2|●|●|●|●|●|●|●|●|●|●| 345 -|ANDS=|s1、s2|●|●|●|●|●|●|●|●|●|●| 346 -|ANDS<>|s1、s2|●|●|●|●|●|●|●|●|●|●| 347 -|ORS=|s1、s2|●|●|●|●|●|●|●|●|●|●| 348 -|ORS<>|s1、s2|●|●|●|●|●|●|●|●|●|●| 349 - 350 -**Features** 351 - 352 -• Compare the string stored after the device number specified in (s1) with the string stored after the device number specified in (s2). 353 - 354 -• The comparison operation result of each instruction is shown below. 355 - 356 -|**Instruction sign**|**Condition**|**Comparison operation result**|**Instruction sign**|**Condition**|**Comparison operation result** 357 -|==|(s1)=(s2)|(% rowspan="2" %)On stat|==|(s1)≠(s2)|(% rowspan="2" %)Non-conduction state 358 -|<>|(s1)≠(s2)|<>|(s1)=(s2) 359 - 360 -**Error code** 361 - 362 -|**Error code**|**Content** 363 -|4085H|The read address of (s1) or (s2) exceeds the device range 364 -|408AH|The length of the read string of (s1) or (s2) exceeds, and the continuous length of the string exceeds 400 characters. 365 -|408BH|When (s1) or (s2) reading the string, the maximum range of the device is read but 00H is not found as the end. 366 - 367 -**Example** 368 - 369 -(1) LDS£ instruction: 370 - 371 -(% style="text-align:center" %) 372 -[[image:07-5 Basic instructions_html_449a071f61ff5b58.png]] 373 - 374 -(2) ANDS£ instruction: 375 - 376 -(% style="text-align:center" %) 377 -[[image:07-5 Basic instructions_html_dd6aa995d193bdd2.png]] 378 - 379 -(3) ORS£ instruction: 380 - 381 -(% style="text-align:center" %) 382 -[[image:07-5 Basic instructions_html_4f8fb7c94f87c58d.png]] 383 - 384 -= **Clock operation instruction** = 385 - 386 386 == **TADD/The addition of clock data** == 387 387 388 388 **TADD(P)** ... ... @@ -587,7 +587,7 @@ 587 587 (% style="text-align:center" %) 588 588 [[image:07-5 Basic instructions_html_8f93ea19ba10652b.png]] 589 589 590 -**TRD/Clock data reading** 207 +== **TRD/Clock data reading** == 591 591 592 592 **TRD(P)** 593 593 ... ... @@ -1288,1154 +1288,272 @@ 1288 1288 (% style="text-align:center" %) 1289 1289 [[image:07-5 Basic instructions_html_f512f36261705953.png||height="48" width="218"]] 1290 1290 1291 -= **Data control instructions** = 1292 1292 1293 -== ** BAND/BIN 16-bitdatadeadzone control** ==909 +== **TON/BIN 16-bit Turn-on delay timer** == 1294 1294 1295 -** BAND(P)**911 +**TON(P)** 1296 1296 1297 - Thenput value (BIN16-bitvalue)specified in (s3)controlstheoutputvalue storedin thedevice specified in(d) accordingtotheupperdlower limits ofthe dead zoneand (s2).913 +Specify the T timer device in (s1), the expected time in (s2), and the time base (resolution) in (s3). And the result of the measured individual time interval operation is stored in the device specified in (s1). 1298 1298 1299 - -[BAND(s1)(s2)(S3)(d)]915 +PLC Editor2 version that supports this instruction: 2.3.1 and above. 1300 1300 1301 - **Content,rangeand data type**917 +-[TON (s1) (s2) (s3)] 1302 1302 1303 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1304 -|(s1)|Lower limit of dead zone (no output zone)|-32,768 to +32,767|Signed BIN 16 bit|ANY16_S 1305 -|(s2)|Upper limit of dead zone (no output zone)|-32,768 to +32,767|Signed BIN 16 bit|ANY16_S 1306 -|(S3)|Input value controlled by dead zone control|-32768 to +32,767|Signed BIN 16 bit|ANY16_S 1307 -|(D)|The start number of the device that stores the output value controlled by the dead zone control|-|Signed BIN 16 bit|ANY16_S 919 +**Content, scope, data type** 1308 1308 1309 -**Device used** 921 +|**parameter**|**Content**|**range**|**type of data**|**Data type (label)** 922 +|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S 923 +|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S 924 +|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S 1310 1310 1311 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|((( 1312 -**Offset modification** 1313 -)))|((( 1314 -**Pulse extension** 1315 -))) 1316 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**[D]**|**XXP** 1317 -|(% rowspan="4" %)BAND|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|● 1318 -|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|●|● 1319 -|Parameter 3|●|●|●|●|●|●|●|●|●| | |●|● 1320 -|Parameter 4| |●|●|●|●|●|●|●|●| | |●|● 1321 - 1322 -**Features** 1323 - 1324 -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. 1325 - 1326 -|**Condition**|**The value stored in the output value** 1327 -|When dead zone low limit (s1)> input value (s3)|Input value (s3)-Dead zone low limit (s1) 1328 -|When dead zone high limit (s1) <input value (s3)|Input value (s3)- Dead zone high limit (s2) 1329 -|When dead zone low limit (s1) ≤ input value (s3) ≤ dead zone low limit (s2)|0 1330 - 1331 -((( 1332 -•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. 1333 - 1334 -For example, when (s1) is 10 and (s3) is -32768, 1335 - 1336 -the output value = -32768-10=8000H-000AH=7FFFH=32758. 1337 - 1338 -(% style="text-align:center" %) 1339 -[[image:07-5 Basic instructions_html_6850e21a76b813c0.png||height="295" width="550"]] 1340 -))) 1341 - 1342 -**Error code** 1343 - 1344 -|**Error code**|**Content** 1345 -|4085H|When the specified device range for reading exceeds the range of the corresponding device. 1346 -|4086H|When the specified device range for writing exceeds the range of the corresponding device. 1347 -|4084H|When the low limit specified in (s1) is greater than the high limit specified in (s2). 1348 - 1349 -**Example** 1350 - 1351 -(% style="text-align:center" %) 1352 -[[image:07-5 Basic instructions_html_c0e65cfeed403ecf.png||height="49" width="450"]] 1353 - 1354 -When X000 is ON, when D0<(-1,000), the value of ( D0)-(-1,000) is stored in (D1). 1355 - 1356 -• When -1,000≦ D0≦1,000, 0 is stored in D1. 1357 - 1358 -• When D0<1,000, the value of (D0)-1,000 is stored in D1. 1359 - 1360 -== **DBAND/BIN 32-bit data dead zone control** == 1361 - 1362 -**DBAND(P)** 1363 - 1364 -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). 1365 - 1366 --[DBAND (s1) (s2) (S3) (d)] 1367 - 1368 -**Content, range and data type** 1369 - 1370 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1371 -|(s1)|Dead zone low limit (no output zone)|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S 1372 -|(s2)|Dead zone high limit (no output zone)|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S 1373 -|(S3)|Input value controlled by dead zone control|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S 1374 -|(d)|The start number of the device that stores the output value controlled by the dead zone control|-|Signed BIN 32 bit|ANY32_S 1375 - 1376 1376 **Device used** 1377 1377 1378 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="13" %)**Devices**|**Offset modification**|((( 1379 -**Pulse extension** 1380 -))) 1381 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 1382 -|(% rowspan="4" %)DBAND|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 1383 -|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 1384 -|Parameter 3|●|●|●|●|●|●|●|●|●|●|●| | |●|● 1385 -|Parameter 4| |●|●|●|●|●|●|●|●|●|●| | |●|● 928 +|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension** 929 +|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 930 +|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | | 931 +|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | | 932 +|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | | 1386 1386 1387 -** Features**934 +**Timing Chart** 1388 1388 1389 - Theinput value (BIN 32-bit value) specified in (s3) controls the output value stored in the device specified in (d) accordingto theupper and lower limits of the dead zone specified in (s1) and (s2).The output value is controlled as follows.936 +[[image:企业微信截图_16691725418532.png]] 1390 1390 1391 -|**Condition**|**The value stored in the output value** 1392 -|When dead zone low limit ((s1), (s1)+1)> input value ((s3), (s3)+1)|Input value ((s3), (s3)+1)-dead zone low limit ((s1), (s1)+1) 1393 -|When dead zone high limit ((s1), (s1)+1) <input value ((s3), (s3)+1)|Input value ((s3), (s3)+1)-dead zone high limit ((s2), (s2)+1) 1394 -|When dead zone low limit ((s1), (s1)+1) ≤ input value ((s3), (s3)+1) ≤ dead zone high limit ((s2), (s2)+1)|0 1395 - 1396 -((( 1397 -• 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,** **When (s1) and (s1)+1 are 1000, (s3) and (s3)+1 are -2,147,483,648, then the output value= 1398 - 1399 --2,147,483,648-1000=80000000H-000003E8H=7FFFFC18H=2,147,482,648. 1400 - 1401 -(% style="text-align:center" %) 1402 -[[image:07-5 Basic instructions_html_e0144674dad3e8fd.png||height="243" width="550"]] 1403 -))) 1404 - 1405 -**Error code** 1406 - 1407 -|**Error code**|**Content** 1408 -|4085H|When the specified device range for reading exceeds the range of the corresponding device. 1409 -|4086H|When the specified device range for writing exceeds the range of the corresponding device. 1410 -|4084H|When the low limit specified in (s1) is greater than the high limit specified in (s2). 1411 - 1412 -**Example** 1413 - 1414 -(% style="text-align:center" %) 1415 -[[image:07-5 Basic instructions_html_88f3fe0fb4841bab.png||height="42" width="453"]] 1416 - 1417 -• When (D1, D0)<(-10,000), the value of (D1, D0)-(-10,000) is stored in (D11, D10). 1418 - 1419 -• When -10,000≦(D1, D0)≦10,000, 0 is stored in (D11, D10). 1420 - 1421 -• When 10,000< (D1, D0), the value of (D1, D0)-10,000 is stored in D1. 1422 - 1423 -== **BINDA/BIN 16-bit data → Decimal ASCII conversion** == 1424 - 1425 -**BINDA(P)** 1426 - 1427 -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). 1428 - 1429 --[BINDA(s)(d)] 1430 - 1431 -**Content, range and data type** 1432 - 1433 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1434 -|(s)|BIN data for ASCII conversion|-32768 to +32767|Signed BIN 16 bit|ANY16_S 1435 -|(d)|The start number of the device storing the conversion result|-|String|ANYSTRING_SINGLE 1436 - 1437 -**Device used** 1438 - 1439 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|**Offset modification**|((( 1440 -**Pulse extension** 1441 -))) 1442 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**[D]**|**XXP** 1443 -|(% rowspan="2" %)BINDA|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|● 1444 -|Parameter 2| | | | | | |●|●|●| | |●|● 1445 - 1446 1446 **Features** 1447 1447 1448 - ConverttheBIN 16-bitdatapecifiedin(s)andthevalueof eachdigitindecimalnumbersintoASCII codes and store themafterthedevicenumberspecifiedin(d).940 +1) When the timer starts timing, the instruction after the timer starts to run when the timing time is greater than the time value of "the product of S2 and S3". 1449 1449 1450 -((( 1451 -(% style="text-align:center" %) 1452 -[[image:07-5 Basic instructions_html_57bda5f08026449d.png]] 942 +2) When the timer value is greater than 0 and less than the time value of "the product of S2 and S3", the timer will stop whenever the contact is disconnected, and when the contact is connected, the timer will start timing again. 1453 1453 1454 -←Only store 0 when SM191 is OFF 1455 -))) 1456 1456 1457 -For example, when -12,345 is specified in (s) (in the case of specifying signed) 945 +|**S3 time base**|**Actual value** 946 +|1|100us 947 +|10|1ms 948 +|100|10ms 949 +|1000|100ms 950 +|10000|1s 1458 1458 1459 -(% style="text-align:center" %) 1460 -[[image:07-5 Basic instructions_html_f346102467b9bef9.png||height="169" width="850"]] 952 +**Precautions** 1461 1461 1462 - The calculation result storedin(d)willbe asbelow.954 +• Avoid timer number conflict: the same timer number cannot be used for TON, TONR, TOF, TP, OUT_T timers at the same time. For example, TON T32 and TOF T32 cannot be used at the same time (it may cause data confusion and not achieve the effect of the corresponding instruction function). 1463 1463 1464 -• In "Sign", 20H is stored when the BIN data is positive, and 2DH is stored when it is negative. 1465 - 1466 -• 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. 1467 - 1468 -• 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. 1469 - 1470 -✎**Note: **The number of occupied points of (d) is 3 when SM191 is ON, and it is 4 when SM191 is OFF. 1471 - 1472 1472 **Error code** 1473 1473 1474 1474 |**Error code**|**Content** 1475 -|4085H|The read address of (s) exceeds the device range. 1476 -|4086H|The write address of (d) exceeds the device range. 959 +|4084H|Input data in (s2) (s3) is outside the specified range. 960 +|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range. 961 +|4086H|Device tpye in (s1) is outside the specified range. 1477 1477 1478 1478 **Example** 1479 1479 1480 -(% style="text-align:center" %) 1481 -[[image:07-5 Basic instructions_html_c598806a42484ed.png||height="76" width="300"]] 965 +[[image:企业微信截图_16691729278938.png]] 1482 1482 1483 -((( 1484 -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 967 +T1 is used for storing time, setting the expected time as K10 and the time base as K10000. 1485 1485 1486 - convertedASCIIcodecharacterbycharacter to theprogram ofY040to Y057.969 +After set on (M8) contact and waiting for the value in the turn-on delay timer (T1) to reach the estimated time of 10s, the contact of (T1) on and output Y0. 1487 1487 1488 - 1489 -))) 971 +If the (M8) contact is off in the process of turn-on delay timer (T1) timing, the turn-on delay timer (T1) value is cleared to 0 and the timing ends. 1490 1490 1491 -== ** DBINDA/BIN32-bit data→DecimalASCII conversion** ==973 +== **TONR/BIN 16-bit Hold-type turn-on delay timer** == 1492 1492 1493 - **DBINDA(P)**975 +[[image:file:///C:\Users\ADMINI~~1\AppData\Local\Temp\ksohtml8784\wps1.png]]**TONR(P)** 1494 1494 1495 - ConverttheBIN32-bitataspecified in (s) and thevalueof eachbit in decimalnumbersintoASCII codesandstore themafter the devicenumberspecified in (d).977 +Specify the T timer device in (s1), the expected time in (s2), and the time base (resolution) in (s3). And store the time values of the accumulated multiple timing intervals into the device specified in (s1). 1496 1496 1497 - -[DBINDA(s)(d)]979 +PLC Editor2 version that supports this instruction: 2.3.1 and above. 1498 1498 1499 - **Content,rangeand data type**981 +-[TONR (s1) (s2) (s3)] 1500 1500 1501 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1502 -|(s)|BIN data for ASCII conversion|-2,147483648 to 2147483647|Signed BIN 32 bit|ANY32_S 1503 -|(d)|The start number of the device storing the conversion result|-|String|ANYSTRING_SINGLE 983 +**Content, scope, data type** 1504 1504 1505 -**Device used** 985 +|**parameter**|**Content**|**range**|**type of data**|**Data type (label)** 986 +|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S 987 +|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S 988 +|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S 1506 1506 1507 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="13" %)**Devices**|((( 1508 -**Offset modification** 1509 -)))|((( 1510 -**Pulse extension** 1511 -))) 1512 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 1513 -|(% rowspan="2" %)DBINDA|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 1514 -|Parameter 2| | | | | | |●|●|●| | | | |●|● 1515 - 1516 -**Features** 1517 - 1518 -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). 1519 - 1520 -For example, when -12345678 is specified in (s). (in the case of specifying signed) 1521 - 1522 -(% style="text-align:center" %) 1523 -[[image:07-5 Basic instructions_html_4d939462838cf09b.gif]] 1524 - 1525 - The calculation result stored in (d) will be as below. 1526 - 1527 -• In "Sign", 20H is stored when the BIN data is positive, and 2DH is stored when it is negative. 1528 - 1529 -• 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. 1530 - 1531 -• 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. 1532 - 1533 -✎**Note: **(d) Occupies 6 points. 1534 - 1535 -**Error code** 1536 - 1537 -|**Error code**|**Content** 1538 -|4085H|(s) read address exceeds the device range 1539 -|4086H|(d) write address exceeds the device range 1540 - 1541 -**Example** 1542 - 1543 -(% style="text-align:center" %) 1544 -[[image:07-5 Basic instructions_html_ec8ac32d748a991c.png||height="59" width="300"]] 1545 - 1546 -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. 1547 - 1548 -== **DABIN/Decimal ASCII → BIN conversion** == 1549 - 1550 -**DABIN(P)** 1551 - 1552 -Digital ASCII code (30H to 39H) is a instruction to convert real data into BIN data. 1553 - 1554 --[DABIN (s) (d)] 1555 - 1556 -**Content, range and data type** 1557 - 1558 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1559 -|(s)|The start number of the device that stores the data (ASCII code) to be converted into a BIN value|-|String|ANYSTRING_SINGLE 1560 -|(d)|The device number for storing conversion result|-|BIN16 bit|ANY16_S 1561 - 1562 1562 **Device used** 1563 1563 1564 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="8" %)**Devices**|**Offset modification**|((( 1565 -**Pulse extension** 1566 -))) 1567 -|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 1568 -|(% rowspan="2" %)DABIN|Parameter 1| | | | | |●|●|●|●|● 1569 -|Parameter 2|●|●|●|●|●|●|●|●|●|● 1570 - 1571 -**Features** 1572 - 1573 -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). 1574 - 1575 -(% style="text-align:center" %) 1576 -[[image:07-5 Basic instructions_html_22c5cb32a0a32214.png||height="273" width="750"]] 1577 - 1578 -|**ASCII S**|**ASCII 10^^0^^**|**ASCII 10^^1^^**|**ASCII 10^^2^^**|**ASCII 10^^3^^**|**ASCII 10^^4^^** 1579 -|**ASCII code**|((( 1580 -Units of 1581 - 1582 -ASCII code 1583 -)))|((( 1584 -Tens of 1585 - 1586 -ASCII code 1587 -)))|((( 1588 -Hundreds of 1589 - 1590 -ASCII code 1591 -)))|((( 1592 -Thousands of 1593 - 1594 -ASCII code 1595 -)))|((( 1596 -Ten thousands 1597 - 1598 -of ASCII code 1599 -))) 1600 - 1601 -For example, When -25,108 is specified in (s) 1602 - 1603 -(% style="text-align:center" %) 1604 -[[image:07-5 Basic instructions_html_10fb2792e37dbf23.png||height="123" width="750"]] 1605 - 1606 -• The ASCII data specified in (s) to (s)+2 is within the range of -32,768 to +32,767. 1607 - 1608 -• 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)) 1609 - 1610 -• The range of the ASCII code set in each digit is 30H to 39H. 1611 - 1612 -• When the ASCII code set in each bit is 20H or 00H, it will be treated as 30H. 1613 - 1614 -**Error code** 1615 - 1616 -|**Error code**|**Content** 1617 -|4084H|((( 1618 -When the Sign data exceeds the range of 30H to 39H, 20H, 00H, 2DH; 1619 - 1620 -When the ASCII code of each bit specified in (s) to (s)+2 exceeds the range of 30H to 39H, 20H, 00H; 1621 - 1622 -When the ASCII data specified in (s) to (s)+2 is other than -32,768 to +32,767. 1623 -))) 1624 -|4085H|The read address of (s) exceeds the device range. 1625 -|4086H|The write address of (d) exceeds the device range. 1626 - 1627 - 1628 -((( 1629 -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. 1630 - 1631 -**Example** 1632 -))) 1633 - 1634 -(% style="text-align:center" %) 1635 -[[image:07-5 Basic instructions_html_bec2bea131b58c03.png||height="55" width="300"]] 1636 - 1637 -== **DDABIN/Decimal ASCII → BIN32-bit data conversion** == 1638 - 1639 -**DDABIN(P)** 1640 - 1641 -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). 1642 - 1643 --[DDABIN (s) (d) ] 1644 - 1645 -**Content, range and data type** 1646 - 1647 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1648 -|(s)|The start number of the device that stores data (ASCII code) to be converted into a BIN value|-|String|ANYSTRING_SINGLE 1649 -|(d)|The device number for storing conversion result|-|Signed BIN 32 bit|ANY32_S 1650 - 1651 -**Device used** 1652 - 1653 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="10" %)**Devices**|**Offset modification**|((( 1654 -**Pulse extension** 1655 -))) 1656 -|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**[D]**|**XXP** 1657 -|(% rowspan="2" %)DDABIN|Parameter 1| | | | | |●|●|●| | |●|● 1658 -|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|● 1659 - 1660 -**Features** 1661 - 1662 -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). 1663 - 1664 -(% style="text-align:center" %) 1665 -[[image:07-5 Basic instructions_html_c444110b273f33b7.gif||height="193" width="800"]] 1666 - 1667 -|**ASCII S**|**ASCII code**|**ASCII S**|**ASCII code** 1668 -|ASCII 10^^0^^|Units of ASCII code|ASCII 10^^5^^|Hundred thousands of ASCII code 1669 -|ASCII 10^^1^^|Tens of ASCII code|ASCII 10^^6^^|Millions of ASCII code 1670 -|ASCII 10^^2^^|Hundreds of ASCII code|ASCII 10^^7^^|Ten millions of ASCII code 1671 -|ASCII 10^^3^^|Thousands of ASCII code|ASCII 10^^8^^|Hundred millions of ASCII code 1672 -|ASCII 10^^4^^|Tens thousands of ASCII code|ASCII 10^^9^^|billions of ASCII code 1673 - 1674 -When -1234543210 is specified in (s) (When signed is specified) 1675 - 1676 -(% style="text-align:center" %) 1677 -[[image:07-5 Basic instructions_html_1b4c7e1c663a4399.png||height="230" width="800"]] 1678 - 1679 -• 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. 1680 - 1681 -• 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)) 1682 - 1683 -• The range of ASCII code set in each digit is 30H to 39H. 1684 - 1685 -• When the ASCII code set in each bit is 20H or 00H, it will be treated as 30H. 1686 - 1687 -**Error code** 1688 - 1689 -|**Error code**|**Content** 1690 -|4084H|((( 1691 -When the Sign data exceeds the range of 30H to 39H, 20H, 00H and 2DH; 1692 - 1693 -When the ASCII code of each bit specified in (s) to (s)+5 exceeds the range of 30H to 39H, 20H and 00H; 1694 - 1695 -When the ASCII data specified in (s) to (s)+5 exceeds the range of -2,147,483,648 to +2,147,483,647 1696 -))) 1697 -|4085H|The read address of (s) exceeds the device range. 1698 -|4086H|The write address of (d) exceeds the device range. 1699 - 1700 -**Example** 1701 - 1702 -(% style="text-align:center" %) 1703 -[[image:07-5 Basic instructions_html_feea438c943ea9dd.png||height="34" width="300"]] 1704 - 1705 -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. 1706 - 1707 -== **LIMIT/ BIN 16-bit data high and low limit control** == 1708 - 1709 -**LIMIT(P)** 1710 - 1711 -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). 1712 - 1713 --[LIMIT (s1) (s2) (s3) (d)] 1714 - 1715 -**Content, range and data type** 1716 - 1717 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1718 -|s1|Low limit value (minimum output limit value)|-32,768 to 32,767|BIN16 bit|ANY16_S 1719 -|s2|High limit value (maximum output limit value)|-32,768 to 32,767|BIN16 bit|ANY16_S 1720 -|s3|Input value controlled by high and low limit control|-32,768 to 32,767|BIN16 bit|ANY16_S 1721 -|d|The start number of device that stores the output value controlled by high and low limit control|-|BIN16 bit|ANY16_S 1722 - 1723 -**Device used** 1724 - 1725 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="12" %)**Devices**|**Offset modification**|((( 1726 -**Pulse** 1727 - 1728 -**extension** 1729 -))) 1730 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**E**|**[D]**|**XXP** 1731 -|(% rowspan="4" %)LIMIT|Parameter 1|●|●|●|●|●|●|●|●|●|●|●| |●|● 1732 -|Parameter 2|●|●|●|●|●|●|●|●|●|●|●| |●|● 1733 -|Parameter 3|●|●|●|●|●|●|●|●|●| | | |●|● 1734 -|Parameter 4| |●|●|●|●|●|●|●|●| | | |●|● 1735 - 1736 -**Features** 1737 - 1738 -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. 1739 - 1740 -|**Condition**|**The value stored in the output value** 1741 -|Low limit value (s1)>input value (s3)|Low limit value (s1) 1742 -|High limit value (s1) <input value (s3)|High limit value (s2) 1743 -|Low limit value (s1) ≤ input value (s3) ≤ high limit value (s2)|Input value (s3) 1744 - 1745 - 1746 -((( 1747 -•Only in the case of controlling high limit value, set the minimum value of data range in the low limit value specified in (s1). 1748 - 1749 -• Only in the case of controlling low limit value, set the maximum value of data range in the high limit value specified in (s2). 1750 - 1751 -[[image:07-5 Basic instructions_html_50eb5229b027aa14.png]] 1752 -))) 1753 - 1754 -**Error code** 1755 - 1756 -|**Error code**|**Content** 1757 -|4085H|The read address exceeds the device range 1758 -|4086H|The write address exceeds the device range 1759 -|4084H|High limit <low limit 1760 - 1761 -**Example** 1762 - 1763 -[[image:07-5 Basic instructions_html_d67a2e740d4fc738.png]] 1764 - 1765 -When X000 is ON 1766 - 1767 -• When D0 <500, D1 is 500. 1768 - 1769 -• When 500 ≤ D0 ≤ 5,000, D1 is the value of D0. 1770 - 1771 -• When 5,000 <D0, D1 is 5,000. 1772 - 1773 -{{id name="_Toc32553"/}}{{id name="_Toc9981"/}}{{id name="_Toc9158"/}}**DLIMIT/BIN 32-bit data high and low limit control** 1774 - 1775 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DLIMIT(P)** 1776 - 1777 -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). 1778 - 1779 --[DLIMIT (s1) (s2) (s3) (d)] 1780 - 1781 -**Content, range and data type** 1782 - 1783 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1784 -|s1|Low limit value (minimum output limit value)|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S 1785 -|s2|High limit value (maximum output limit value)|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S 1786 -|s3|Input value controlled by high and low limit control|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S 1787 -|d|The start number of the device that stores the output value controlled by high and low limit control|-|BIN32 bit|ANY32_S 1788 - 1789 -**Device used** 1790 - 1791 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1792 -**Pulse** 1793 - 1794 -**extension** 1795 -))) 992 +|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension** 1796 1796 |**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** 1797 -|(% rowspan="4" %)DLIMIT|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|● 1798 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|● 1799 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●| | | |●|● 1800 -|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●|● 994 +|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | | 995 +|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | | 996 +|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | | 1801 1801 1802 -** Features**998 +**Timing Chart** 1803 1803 1804 - Theinput value (BIN 32-bit value) specified in (s3) controls the output value stored in the device specified in (d) accordingto therange of high and low limit values specified in (s1) and (s2).The output value is controlled as follows.1000 +[[image:企业微信截图_16691733488965.png]] 1805 1805 1806 -|**Condition**|**The value stored in the output value** 1807 -|Low limit value ((s1), (s1)+1)> input value ((s3), (s3)+1)|Low limit value ((s1), (s1)+1) 1808 -|High limit value ((s2), (s2)+1) <input value ((s3), (s3)+1)|High limit value ((s2), (s2)+1) 1809 -|Low limit value ((s1), (s1)+1) ≤ input value ((s3), (s3)+1) ≤ high limit value ((s2), (s2)+1)|Input value ((s3), (s3)+1) 1810 - 1811 -{{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). 1812 - 1813 -• Only in the case of controlling low limit value, set the maximum value of data range in the high limit value specified in (s2). 1814 - 1815 -**Error code** 1816 - 1817 -|**Error code**|**Content** 1818 -|4085H|The read address exceeds the device range 1819 -|4086H|The write address exceeds the device range 1820 -|4084H|High limit <low limit 1821 - 1822 -**Example** 1823 - 1824 -[[image:07-5 Basic instructions_html_217355b90f4b4e16.png]] 1825 - 1826 -Operation: 1827 - 1828 -• When (D1, D0) <10,000, (D11, D10) is 10,000. 1829 - 1830 -• When 10,000 ≤ (D1, D0) ≤ 1,000,000, (D11, D10) is the value of (D1, D0). 1831 - 1832 -• When 1,000,000 <(D1, D0), (D11, D10) is 1,000,000. 1833 - 1834 -{{id name="_Toc12534"/}}{{id name="_Toc28213"/}}{{id name="_Toc24591"/}}**SCL/BIN 16-bit unit scale (coordinate data of each point)** 1835 - 1836 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **SCL(P)** 1837 - 1838 -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). 1839 - 1840 --[SCL (s1) (s2) (d)] 1841 - 1842 -**Content, range and data type** 1843 - 1844 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1845 -|(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 1846 -|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 16 bit|ANY16_S 1847 -|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 16 bit|ANY16_S 1848 - 1849 -**Device used** 1850 - 1851 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1852 -**Pulse** 1853 - 1854 -**extension** 1855 -))) 1856 -|**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** 1857 -|(% rowspan="3" %)SCL|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|● 1858 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|● 1859 -|Parameter 3| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|● 1860 - 1861 1861 **Features** 1862 1862 1863 - Forthescaleconversiondata(16-bitdata unit) specified in(s2),scale bythe inputvalue specified in(s1),and store theoperationresultin thedevice specified in(d). Scaleconversion isperformed basedon thescaleconversion data storedafterthe devicespecifiedin(s2).1004 +1) When the timer starts timing, the instruction after the timer starts to run when the timing time is greater than the time value of "the product of S2 and S3". 1864 1864 1865 -|(% colspan="2" %)**Setting items (n represents the number of coordinate points specified in (s2))**|**Device allocation** 1866 -|(% colspan="2" %)Coordinate points|(s2) 1867 -|(% rowspan="2" %)Point 1|X coordinate|(s2)+1 1868 -|Y coordinate|(s2)+2 1869 -|(% rowspan="2" %)Point 2|X coordinate|(s2)+3 1870 -|Y coordinate|(s2)+4 1871 -|(% colspan="3" %)........ 1872 -|(% rowspan="2" %)Point n|X coordinate|(s2)+2n-1 1873 -|Y coordinate|(s2)+2n 1006 +2) When the coil in front of the timer is off, the TONR timer saves the current value. When the coil is on, the TONR timer continues to timing. 1874 1874 1875 - [[image:07-5Basic instructions_html_80185ccddb878234.png]]1008 +3) The current value of TONR can be cleared using the reset command. After the preset time is reached, TONR maintains the current value of the timer. 1876 1876 1877 -• If the operation result is not an integer value, round the first digit below the decimal point. 1878 1878 1879 -• The X coordinate data of the conversion data for scaling should be set in ascending order. 1011 +|**S3 time base**|**Actual value** 1012 +|1|100us 1013 +|10|1ms 1014 +|100|10ms 1015 +|1000|100ms 1016 +|10000|1s 1880 1880 1881 - • (s1) should be set within therangeofconversion data for scaling (device valueof (s2)).1018 +**Precautions** 1882 1882 1883 -• If the sameXcoordinateisspecifiedfor multiplepoints,theYcoordinatevalue of thesecondpointwill beoutput.1020 +• Avoid timer number conflict: the same timer number cannot be used for TON, TONR, TOF, TP, OUT_T timers at the same time. For example, TON T32 and TOF T32 cannot be used at the same time (it may cause data confusion and not achieve the effect of the corresponding instruction function). 1884 1884 1885 -• Set the number of coordinate points of the conversion data for scaling within the range of 1 to 32,767. 1886 - 1887 -• Setting example of conversion table for scaling. 1888 - 1889 -In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet. 1890 - 1891 -[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]] 1892 - 1893 -|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Sett device and content**|(% rowspan="2" %)**Remarks** 1894 -|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content** 1895 -|(% colspan="2" %)Coordinate points|(s2)|R0|K10| 1896 -|(% rowspan="2" %)Point 1|X coordinate|(s2)+1|R1|K5| 1897 -|Y coordinate|(s2)+2|R2|K20| 1898 -|(% rowspan="2" %)Point 2|X coordinate|(s2)+3|R3|K30| 1899 -|Y coordinate|(s2)+4|R4|K50| 1900 -|(% rowspan="2" %)Point 3|X coordinate|(s2)+5|R5|K100| 1901 -|Y coordinate|(s2)+6|R6|K200| 1902 -|(% rowspan="2" %)Point 4|X coordinate|(s2)+7|R7|K25|(% rowspan="6" %)((( 1903 -If the coordinates are specified by 3 points, the intermediate value could be the output value. 1904 - 1905 -In this example, the output value (median value) is specified by the Y coordinate of point 5. 1906 - 1907 -When the X coordinate is the same at 3 points or more, the value of the 2nd point is also output. 1908 -))) 1909 -|Y coordinate|(s2)+8|R8|K200 1910 -|(% rowspan="2" %)Point 5|X coordinate|(s2)+9|R9|K70 1911 -|Y coordinate|(s2)+10|R10|K200 1912 -|(% rowspan="2" %)Point 6|X coordinate|(s2)+11|R11|K250 1913 -|Y coordinate|(s2)+12|R12|K250 1914 -|(% rowspan="2" %)Point 7|X coordinate|(s2)+13|R13|K250| 1915 -|Y coordinate|(s2)+14|R14|K90| 1916 -|(% rowspan="2" %)Point 8|X coordinate|(s2)+15|R15|K350|(% rowspan="4" %)((( 1917 -If the coordinates are specified by two points, the output value is the value of the Y coordinate of the next point. 1918 - 1919 -In this example, the output value is specified by the Y coordinate of point 9. 1920 -))) 1921 -|Y coordinate|(s2)+16|R16|K90 1922 -|(% rowspan="2" %)Point 9|X coordinate|(s2)+17|R17|K350 1923 -|Y coordinate|(s2)+18|R18|K30 1924 -|(% rowspan="2" %)Point 10|X coordinate|(s2)+19|R19|K400| 1925 -|Y coordinate|(s2)+20|R20|K7| 1926 - 1927 1927 **Error code** 1928 1928 1929 1929 |**Error code**|**Content** 1930 -|4085H|When the specified device range for reading exceeds the range of the corresponding device. 1931 -|4086H|When the specified device range for writing exceeds the range of the corresponding device. 1932 -|4084H|((( 1933 -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; 1025 +|4084H|Input data in (s2) (s3) is outside the specified range. 1026 +|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range. 1027 +|4086H|Device tpye in (s1) is outside the specified range. 1934 1934 1935 -When the input value specified in (s1) exceeds the range of the set scale conversion data; 1936 - 1937 -When the number of start coordinate points of device (s2) is less than 0. 1938 -))) 1939 - 1940 1940 **Example** 1941 1941 1942 -[[image: 07-5 Basic instructions_html_5519d7b41f15b6d6.png]]1031 +[[image:企业微信截图_16691733566206.png]] 1943 1943 1944 - [[image:07-5Basicinstructions_html_ace075fb7675de8e.gif]]When-100≤D0(X)<0,D100(Y)=1033 +T1 is used for storing time, setting the expected time as K10 and the time base as K10000. 1945 1945 1946 - [[image:07-5Basic instructions_html_9acd6306c6d91847.gif]]whenD0(X)=0,D100(Y)=0;1035 +When the (M8) contact off and on again during timing. (T1) maintains the value at the last disconnection and continues timing until the estimated time of 10s. After the estimated time is reached, the (T1) contact on and output Y0. If the (M8) contact off in this time, the (T1) contact is still ON but Y0 is off. 1947 1947 1948 - when 0<D0(X)≤100,D100(Y)=1037 +When (M0) contact turn ON, the (T1) timer value is cleared to 0 with the RST reset command, the (T1) contact is off, and the Y0 OFF. 1949 1949 1950 - [[image:07-5Basicinstructions_html_e35e13160c08a133.png]]1039 +== **TOF/BIN 16-bit Turn-off delay timer** == 1951 1951 1041 +[[image:file:///C:\Users\ADMINI~~1\AppData\Local\Temp\ksohtml8784\wps6.png]]**TOF(P)** 1952 1952 1043 +Specify the T timer device in (s1), the expected time in (s2), and the time base (resolution) in (s3). And store the time values of the accumulated multiple timing intervals into the device specified in (s1). 1953 1953 1954 - {{idname="_Toc4862"/}}{{idname="_Toc11340"/}}{{idname="_Toc25383"/}}**DSCL/32-bit unit scale(coordinate dataofeachpoint)**1045 +PLC Editor2 version that supports this instruction: 2.3.1 and above. 1955 1955 1956 - [[image:07-5 Basicinstructions_html_11b3991e89e21efc.gif]]**DSCL(P)**1047 +-[TOF (s1) (s2) (s3)] 1957 1957 1958 - The conversiondata(32-bit data unit) forscaling specified in (s2) is scaled by the input value specified in (s1),andthe operationresultis stored in the device specified in (d).1049 +**Content, scope, data type** 1959 1959 1960 --[DSCL (s1) (s2) (d)] 1051 +|**parameter**|**Content**|**range**|**type of data**|**Data type (label)** 1052 +|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S 1053 +|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S 1054 +|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S 1961 1961 1962 -**Content, range and data type** 1963 - 1964 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1965 -|(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 1966 -|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 32 bit|ANY32_S 1967 -|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 32 bit|ANY32_S 1968 - 1969 1969 **Device used** 1970 1970 1971 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Device**|**Offset modification**|((( 1972 -**Pulse** 1973 - 1974 -**extension** 1975 -))) 1058 +|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension** 1976 1976 |**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** 1977 -|(% rowspan="3" %) DSCL|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|●1978 -|Parameter 2| | | | | | | | | | | ●|●1979 -|Parameter 3| | | | | | | | | | | | ●|●|●|●|●|●|●|●|●|●| | ||●|●1060 +|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | | 1061 +|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | | 1062 +|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | | 1980 1980 1981 -** Features**1064 +**Timing Chart** 1982 1982 1983 - {{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 isperformed based onthe scale conversion data stored after the device specified in (s2).1066 +[[image:企业微信截图_16691735325382.png]] 1984 1984 1985 -|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation** 1986 -|(% colspan="2" %)Coordinate points|(s2)+1, (s2) 1987 -|(% rowspan="2" %)Point 1|X coordinate|(s2)+3, (s2)+2 1988 -|Y coordinate|(s2)+5, (s2)+4 1989 -|(% rowspan="2" %)Point 2|X coordinate|(s2)+7, (s2)+6 1990 -|Y coordinate|(s2)+9, (s2)+8 1991 -|(% colspan="3" %)........ 1992 -|(% rowspan="2" %)Point n|X coordinate|(s2)+4n-1, (s2)+4n-2 1993 -|Y coordinate|(s2)+4n+1, (s2)+4n 1994 - 1995 -[[image:07-5 Basic instructions_html_6633ca18cee1218c.png]] 1996 - 1997 -• If the calculation result is not an integer value, round the first digit below the decimal point. 1998 - 1999 -• The X coordinate data of the conversion data for scaling should be set in ascending order. 2000 - 2001 -• For (s1), set within the range of the conversion data for scaling ((s2), (s2) + 1 device value). 2002 - 2003 -• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output. 2004 - 2005 -• Set the number of coordinate points of conversion data for scaling within the range of 1 to 2,147,483,647. 2006 - 2007 -• Setting example of conversion table for scaling. 2008 - 2009 -In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet. 2010 - 2011 -[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]] 2012 - 2013 -|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Set device and content**|(% rowspan="2" %)**Remarks** 2014 -|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content** 2015 -|(% colspan="2" %)Coordinate points|(s2)+1, (s2)|R1, R0|K10| 2016 -|(% rowspan="2" %)Point 1|X coordinate|(s2)+3, (s2)+2|R3, R2|K5| 2017 -|Y coordinate|(s2)+5, (s2)+4|R5, R4|K7| 2018 -|(% rowspan="2" %)Point 2|X coordinate|(s2)+7, (s2)+6|R7, R6|K20| 2019 -|Y coordinate|(s2)+9, (s2)+8|R9, R8|K30| 2020 -|(% rowspan="2" %)Point 3|X coordinate|(s2)+11, (s2)+10|R10, R11|K50| 2021 -|Y coordinate|(s2)+13, (s2)+12|R13, R12|K100| 2022 -|(% rowspan="2" %)Point 4|X coordinate|(s2)+15, (s2)+14|R15, R14|K200|(% rowspan="6" %)((( 2023 -if the coordinates are specified by 3 points, the intermediate value could be the output value. 2024 - 2025 -In this example, the output value (median value) is specified by the Y coordinate of point 5. 2026 - 2027 -When the X coordinate is the same at 3 points or more, the value of the 2nd point is also output. 2028 -))) 2029 -|Y coordinate|(s2)+17, (s2)+16|R17, R16|K25 2030 -|(% rowspan="2" %)Point 5|X coordinate|(s2)+19, (s2)+18|R19, R18|K200 2031 -|Y coordinate|(s2)+21, (s2)+20|R21, R20|K70 2032 -|(% rowspan="2" %)Point 6|X coordinate|(s2)+23, (s2)+22|R23, R22|K200 2033 -|Y coordinate|(s2)+25, (s2)+24|R25, R24|K250 2034 -|(% rowspan="2" %)Point 7|X coordinate|(s2)+27, (s2)+26|R27, R26|K250| 2035 -|Y coordinate|(s2)+29, (s2)+28|R29, R28|K90| 2036 -|(% rowspan="2" %)Point 8|X coordinate|(s2)+31, (s2)+30|R31, R30|K350|(% rowspan="4" %)((( 2037 -If the coordinates are specified by two points, the output value is the value of the Y coordinate of the next point. 2038 - 2039 -In this example, the output value is specified by the Y coordinate of point 9. 2040 -))) 2041 -|Y coordinate|(s2)+33, (s2)+32|R33, R32|K90 2042 -|(% rowspan="2" %)Point 9|X coordinate|(s2)+35, (s2)+34|R35, R34|K350 2043 -|Y coordinate|(s2)+37, (s2)+36|R37, R36|K30 2044 -|(% rowspan="2" %)Point 10|X coordinate|(s2)+39, (s2)+38|R39, R38|K400| 2045 -|Y coordinate|(s2)+41, (s2)+40|R41, R40|K7| 2046 - 2047 -**Error code** 2048 - 2049 -|**Error code**|**Content** 2050 -|4085H|When the specified device range for reading exceeds the range of the corresponding device. 2051 -|4086H|When the specified device range for writing exceeds the range of the corresponding device. 2052 -|4084H|((( 2053 -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; 2054 - 2055 -When the input value specified in (s1) exceeds the range of the set scale conversion data; 2056 - 2057 -When the number of start coordinate points of device (s2) is less than 0. 2058 -))) 2059 - 2060 -**Example** 2061 - 2062 -[[image:07-5 Basic instructions_html_ba95b2d50d8d1d3e.png]] 2063 - 2064 -[[image:07-5 Basic instructions_html_1de79c7d87d51f78.gif]] When -100 ≤ D0(X) < 0, D100(Y)= 2065 - 2066 -[[image:07-5 Basic instructions_html_9acd6306c6d91847.gif]] When D0(X)=0, D100(Y)=0; 2067 - 2068 -When 0 < D0(X) ≤ 100, D100(Y)= 2069 - 2070 -[[image:07-5 Basic instructions_html_a5b19d1af74a9620.png]] 2071 - 2072 -{{id name="_Toc3776"/}}{{id name="_Toc11170"/}}{{id name="_Toc2957"/}}**SCL2/BIN 16-bit unit scale (X/Y coordinate data)** 2073 - 2074 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **SCL2(P)** 2075 - 2076 -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). 2077 - 2078 --[SCL2 (s1) (s2) (d)] 2079 - 2080 -**Content, range and data type** 2081 - 2082 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 2083 -|(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 2084 -|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 16 bit|ANY16_S 2085 -|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 16 bit|ANY16_S 2086 - 2087 -**Device used** 2088 - 2089 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 2090 -**Pulse** 2091 - 2092 -**extension** 2093 -))) 2094 -|**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** 2095 -|(% rowspan="3" %)SCL2|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|● 2096 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|● 2097 -|Parameter 3| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|● 2098 - 2099 2099 **Features** 2100 2100 2101 - Theconversionata(16-bit dataunit)for scalingspecifiedin(s2)isscaledby the inputvaluespecifiedin (s1),and theoperationresult is storedin thedevicenumberspecified in(d). Thescale conversionisperformed based on the scaleconversiondatastoredafterthedevice specified in(s2).1070 +1) After the input is disconnected, the output is delayed for a fixed time before stopping. The timer bit turns on immediately when the input is started and the current value is set to 0. When the input is disconnected, timing starts until the current time is equal to the preset time, then timing stops. 2102 2102 2103 -|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation** 2104 -|(% colspan="2" %)Coordinate points|(s2) 2105 -|(% rowspan="4" %)X coordinate|Point 1|(s2)+1 2106 -|Point 2|(s2)+2 2107 -|.....|...... 2108 -|Point n|(s2)+n 2109 -|(% rowspan="4" %)Y coordinate|Point 1|(s2)+n+1 2110 -|Point 2|(s2)+n+2 2111 -|.....|..... 2112 -|Point n|(s2)+2n 1072 +2) When the preset value is reached, the timer bit is disconnected and the current value stops incrementing; If the input is turned on again before the TOF reaches the preset value, the timer bit remains on. 2113 2113 2114 - [[image:07-5Basicinstructions_html_80185ccddb878234.png]]1074 +3) For the TOF timer to start timing, the enable input must perform an on-off transition. 2115 2115 2116 -• If the operation result is not an integer value, round the first digit below the decimal point. 2117 2117 2118 -• The X coordinate data of the conversion data for scaling should be set in ascending order. 1077 +|**S3 time base**|**Actual value** 1078 +|1|100us 1079 +|10|1ms 1080 +|100|10ms 1081 +|1000|100ms 1082 +|10000|1s 2119 2119 2120 - • For(s1), set within the range ofthe conversiondata forscaling ((s2), (s2) + 1 device value).1084 +**Precautions** 2121 2121 2122 -• If the sameXcoordinateisspecifiedfor multiplepoints,theYcoordinatevalue of thesecondpointwill beoutput.1086 +• Avoid timer number conflict: the same timer number cannot be used for TON, TONR, TOF, TP, OUT_T timers at the same time. For example, TON T32 and TOF T32 cannot be used at the same time (it may cause data confusion and not achieve the effect of the corresponding instruction function). 2123 2123 2124 -• Set the number of coordinate points of conversion data for scaling within the range of 1 to 32,767. 2125 - 2126 -• Setting example of conversion table for scaling. 2127 - 2128 -In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet. 2129 - 2130 -[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]] 2131 - 2132 -|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Set device and content**|(% rowspan="2" %)**Remarks** 2133 -|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content** 2134 -|(% colspan="2" %)Coordinate points|(s2)|R0|K10| 2135 -|(% rowspan="10" %)X coordinate|Point 1|(s2)+1|R1|K5| 2136 -|Point 2|(s2)+2|R2|K20| 2137 -|Point 3|(s2)+3|R3|K50| 2138 -|Point 4|(s2)+4|R4|K200|(% rowspan="3" %)Refer to** ✎1** 2139 -|Point 5|(s2)+5|R5|K200 2140 -|Point 6|(s2)+6|R6|K200 2141 -|Point 7|(s2)+7|R7|K250| 2142 -|Point 8|(s2)+8|R8|K350|(% rowspan="2" %)Refer to** ✎2** 2143 -|Point 9|(s2)+9|R9|K350 2144 -|Point 10|(s2)+10|R10|K400| 2145 -|(% rowspan="10" %)Y coordinate|Point 1|(s2)+11|R11|K7| 2146 -|Point 2|(s2)+12|R12|K30| 2147 -|Point 3|(s2)+13|R13|K100| 2148 -|Point 4|(s2)+14|R14|K25|(% rowspan="3" %)Refer to**✎1** 2149 -|Point 5|(s2)+15|R15|K70 2150 -|Point 6|(s2)+16|R16|K250 2151 -|Point 7|(s2)+17|R17|K90| 2152 -|Point 8|(s2)+18|R18|K90|(% rowspan="2" %)Refer to** ✎2** 2153 -|Point 9|(s2)+19|R19|K30 2154 -|Point 10|(s2)+20|R20|K7| 2155 - 2156 -✎**1** Like points 4, 5, and 6, if the coordinates are specified by 3 points, the intermediate value could be the output value. 2157 - 2158 -In this example, the output value (median value) is specified by the Y coordinate of point 5. 2159 - 2160 -When the X coordinate is the same at 3 or more points, the value of the second point is also output. 2161 - 2162 -✎**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. 2163 - 2164 -In this example, the output value is specified by the Y coordinate of point 9. 2165 - 2166 2166 **Error code** 2167 2167 2168 2168 |**Error code**|**Content** 2169 -|4085H|When the specified device range for reading exceeds the range of the corresponding device. 2170 -|4086H|When the specified device range for writing exceeds the range of the corresponding device. 2171 -|4084H|((( 2172 -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; 1091 +|4084H|Input data in (s2) (s3) is outside the specified range. 1092 +|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range. 1093 +|4086H|Device tpye in (s1) is outside the specified range. 2173 2173 2174 -When the input value specified in (s1) exceeds the range of the set scale conversion data; 2175 - 2176 -When the number of start coordinate points of device (s2) is less than 0. 2177 -))) 2178 - 2179 2179 **Example** 2180 2180 2181 -[[image: 07-5 Basic instructions_html_ace075fb7675de8e.gif]] [[image:07-5Basic instructions_html_de529c9a16a62ef0.png]]1097 +[[image:企业微信截图_16691735281572.png]] 2182 2182 2183 - When-100≤D0(X)<0,D100(Y)=1099 +T1 is used for storing time, setting the expected time as K10 and the time base as K10000. 2184 2184 2185 - [[image:07-5Basicinstructions_html_9acd6306c6d91847.gif]]whenD0(X)=0,D100(Y)=0;1101 +Make the (M8) contact ON and oFF, When (M8) ON, (T1) contact is ON and Y0 is ON. when (M8) OFF, (Y0) is OFF and (T1) starts timing. When the estimated time of 5s is reached, the (T1) contact is also 0FF. 2186 2186 2187 - when0<D0(X)≤ 100,D100(Y)=1103 +If the (M8) contact ON again during (T1) timing, the (T1) value clears to 0 and the timing ends 2188 2188 2189 - [[image:07-5Basicinstructions_html_a5b19d1af74a9620.png]]1105 +== **TP/BIN 16-bit Start pulse timer** == 2190 2190 2191 - {{id name="_Toc5608"/}}{{id name="_Toc1756"/}}{{id name="_Toc21402"/}}**DSCL2/BIN 32-bit unit scale(X/Y coordinate data)**1107 +**TP(P)** 2192 2192 2193 - [[image:07-5Basic instructions_html_11b3991e89e21efc.gif]]**DSCL2(P)**1109 +Specify the T timer device in (s1), the expected time in (s2), and the time base (resolution) in (s3). And output TRUE in the set time of "(s2)*(s3)" product. 2194 2194 2195 - Theconversiondata(32-bitdataunit) forcalingspecifiedin(s2) is scaled bythe input value specified in(s1),andthe operation result is stored in the devicespecified in (d).1111 +PLC Editor2 version that supports this instruction: 2.3.1 and above. 2196 2196 2197 --[ DSCL2(s1) (s2) (d)]1113 +-[TP (s1) (s2) (s3)] 2198 2198 2199 -**Content, rangeanddata type**1115 +**Content, scope, data type** 2200 2200 2201 -|** Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**2202 -|(s1)|T heinput value for scaling or the start number of thedevicestoring the input value|-2,147,483,648 to +2,147,483,647|Signed BIN32bit|ANY32_S2203 -|(s2)| Thestart number of thedevicestoring conversion data for scaling|-|Signed BIN32bit|ANY32_S2204 -|( d)|The start numberof the device thatstorestheoutput value controlled by scaling|-|Signed BIN32bit|ANY32_S1117 +|**parameter**|**Content**|**range**|**type of data**|**Data type (label)** 1118 +|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S 1119 +|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S 1120 +|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S 2205 2205 2206 2206 **Device used** 2207 2207 2208 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 2209 -**Pulse** 2210 - 2211 -**extension** 2212 -))) 1124 +|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension** 2213 2213 |**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** 2214 -|(% rowspan="3" %) DSCL2|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|●2215 -|Parameter 2| | | | | | | | | | | ●|●2216 -|Parameter 3| | | | | | | | | | | | ●|●|●|●|●|●|●|●|●|●| | ||●|●1126 +|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | | 1127 +|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | | 1128 +|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | | 2217 2217 2218 -** Features**1130 +**Timing Chart** 2219 2219 2220 -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). 1132 +(% style="text-align:center" %) 1133 +[[image:企业微信截图_16691747709508.png]] 2221 2221 2222 -|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation** 2223 -|(% colspan="2" %)Coordinate points|(s2)+1, (s2) 2224 -|(% rowspan="4" %)X coordinate|Point 1|(s2)+3, (s2)+2 2225 -|Point 2|(s2)+5, (s2)+4 2226 -|.....|...... 2227 -|Point n|(s2)+2n+1, (s2)+2n 2228 -|(% rowspan="4" %)Y coordinate|Point 1|(s2)+2n+3, (s2)+2n+2 2229 -|Point 2|(s2)+2n+5, (s2)+2n+4 2230 -|.....|..... 2231 -|Point n|(s2)+4n+1, (s2)+4n 2232 - 2233 -[[image:07-5 Basic instructions_html_6633ca18cee1218c.png]] 2234 - 2235 -• If the operation result is not an integer value, round the first digit below the decimal point. 2236 - 2237 -• The X coordinate data of the conversion data for scaling should be set in ascending order. 2238 - 2239 -• For (s1), set within the range of the conversion data for scaling ((s2), (s2) + 1 device value). 2240 - 2241 -• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output. 2242 - 2243 -• Set the number of coordinate points of conversion data for scaling within the range of 1 to 2,147,483,647. 2244 - 2245 -• Setting example of conversion table for scaling. 2246 - 2247 -In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet. 2248 - 2249 -[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]] 2250 - 2251 -|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Set device and content**|(% rowspan="2" %)**Remarks** 2252 -|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content** 2253 -|(% colspan="2" %)Coordinate points|(s2)+1, (s2)|R1, R0|K10| 2254 -|(% rowspan="10" %)X|Point 1|(s2)+3, (s2)+2|R3, R2|K5| 2255 -|Point 2|(s2)+5, (s2)+4|R5, R4|K20| 2256 -|Point 3|(s2)+7, (s2)+6|R7, R6|K50| 2257 -|Point 4|(s2)+9, (s2)+8|R9, R8|K200|(% rowspan="3" %)Refer to** ✎1** 2258 -|Point 5|(s2)+11, (s2)+10|R10, R11|K200 2259 -|Point 6|(s2)+13, (s2)+12|R13, R12|K200 2260 -|Point 7|(s2)+15, (s2)+14|R15, R14|K250| 2261 -|Point 8|(s2)+17, (s2)+16|R17, R16|K350|(% rowspan="2" %)Refer to** ✎2** 2262 -|Point 9|(s2)+19, (s2)+18|R19, R18|K350 2263 -|Point 10|(s2)+21, (s2)+20|R21, R20|K400| 2264 -|(% rowspan="10" %)Y coordinate|Point 1|(s2)+23, (s2)+22|R23, R22|K7| 2265 -|Point 2|(s2)+25, (s2)+24|R25, R24|K30| 2266 -|Point 3|(s2)+27, (s2)+26|R27, R26|K100| 2267 -|Point 4|(s2)+29, (s2)+28|R29, R28|K25|(% rowspan="3" %)Refer to** ✎1** 2268 -|Point 5|(s2)+31, (s2)+30|R31, R30|K70 2269 -|Point 6|(s2)+33, (s2)+32|R33, R32|K250 2270 -|Point 7|(s2)+35, (s2)+34|R35, R34|K90| 2271 -|Point 8|(s2)+37, (s2)+36|R37, R36|K90|(% rowspan="2" %)Refer to** ✎2** 2272 -|Point 9|(s2)+39, (s2)+38|R39, R38|K30 2273 -|Point 10|(s2)+41, (s2)+40|R41, R40|K7| 2274 - 2275 -✎**1** Like points 4, 5, and 6, if the coordinates are specified by 3 points, the intermediate value could be the output value. 2276 - 2277 -In this example, the output value (median value) is specified by the Y coordinate of point 5. 2278 - 2279 -When the X coordinate is the same at 3 or more points, the value of the second point is also output. 2280 - 2281 -✎**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. 2282 - 2283 -In this example, the output value is specified by the Y coordinate of point 9. 2284 - 2285 -**Error code** 2286 - 2287 -|**Error code**|**Content** 2288 -|4085H|When the specified device range for reading exceeds the range of the corresponding device. 2289 -|4086H|When the specified device range for writing exceeds the range of the corresponding device. 2290 -|4084H|((( 2291 -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; 2292 - 2293 -When the input value specified in (s1) exceeds the range of the set scale conversion data; 2294 - 2295 -When the number of start coordinate points of device (s2) is less than 0. 2296 -))) 2297 - 2298 -**Example** 2299 - 2300 -[[image:07-5 Basic instructions_html_91dbc16faa9d2ec3.png]] 2301 - 2302 -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]] ,,; 2303 - 2304 -when D0(X)=0, D100(Y)=0; 2305 - 2306 -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]] ,,. 2307 - 2308 -[[image:07-5 Basic instructions_html_a5b19d1af74a9620.png]] 2309 - 2310 -{{id name="_Toc32057"/}}{{id name="_Toc9941"/}}{{id name="_Toc6492"/}}**ZONE/BIN 16-bit data zone control** 2311 - 2312 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **ZONE(P)** 2313 - 2314 -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). 2315 - 2316 --[ZONE (s1) (s2) (s3) (d)] 2317 - 2318 -**Content, range and data type** 2319 - 2320 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 2321 -|s1|The negative offset value for addition in the input value|-32,768 to 32,767|BIN16 bit|ANY16_S 2322 -|s2|The positive offset value for addition in the input value|-32,768 to 32,767|BIN16 bit|ANY16_S 2323 -|s3|Input value for zone control`|-32,768 to 32,767|BIN16 bit|ANY16_S 2324 -|d|The start number of the device storing the output value controlled by zone control|-|BIN16 bit|ANY16_S 2325 - 2326 -**Device used** 2327 - 2328 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 2329 -**Pulse** 2330 - 2331 -**extension** 2332 -))) 2333 -|**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** 2334 -|(% rowspan="4" %)ZONE|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|● 2335 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|● 2336 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|● 2337 -|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|● 2338 - 2339 2339 **Features** 2340 2340 2341 - Afteraddingtheoffsetvaluespecifiedin(s1)or (s2) to the input value(BIN 16-bit value) specified in (s3), it is storedinthedevice numberspecifiedin (d). Theoffsetvalueiscontrolledas follows.1137 +Timer that outputs TRUE only for the set time after startup 2342 2342 2343 -|**Condition**|**The value stored in the output value** 2344 -|When input value (s3)<0|Input value (s3) + negative offset value (s1) 2345 -|When input value (s3)=0|0 2346 -|When input value (s3)>0|Input value (s3) + positive offset value (s2) 1139 +1) When the enable input is turned on, timer (s1) is started and timer (s1) bit is immediately turned on. Timer (s1) stops as time increases and reaches the expected time. 2347 2347 1141 +2) After timer (s1) reaches the predetermined time (s2), timer (s1) bit is disconnected. At this time, timer (s1) stops increasing. If the enable input becomes FALSE, timer (s1) will reset. The expected time (s2) becomes 0. 2348 2348 2349 -((( 2350 -• 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. 1143 +3) After starting, if the enable input becomes FALSE before the timer (s1) reaches the expected time (s2), the timer will be reset after reaching the expected time (s2). 2351 2351 2352 -For example, when (s1) is -100 and (s3) is -32,768, 2353 2353 2354 -the output value = -32768+(-100)=8000H-FF9CH=7F9CH=32668. 1146 +|**S3 time base**|**Actual value** 1147 +|1|100us 1148 +|10|1ms 1149 +|100|10ms 1150 +|1000|100ms 1151 +|10000|1s 2355 2355 2356 - [[image:07-5 Basicinstructions_html_a2adbf9ccf8f839.png]]1153 +**Precautions** 2357 2357 1155 +• Avoid timer number conflict: the same timer number cannot be used for TON, TONR, TOF, TP, OUT_T timers at the same time. For example, TON T32 and TOF T32 cannot be used at the same time (it may cause data confusion and not achieve the effect of the corresponding instruction function). 2358 2358 2359 - 2360 -))) 2361 - 2362 2362 **Error code** 2363 2363 2364 2364 |**Error code**|**Content** 2365 -|4085H|When the specified device range for reading exceeds the range of the corresponding device 2366 -|4086H|When the specified device range for writing exceeds the range of the corresponding device 1160 +|4084H|Input data in (s2) (s3) is outside the specified range. 1161 +|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range. 1162 +|4086H|Device tpye in (s1) is outside the specified range. 2367 2367 2368 2368 **Example** 2369 2369 2370 -[[image:07-5 Basic instructions_html_5da523c7765bf5be.png]] 1166 +(% style="text-align:center" %) 1167 +[[image:企业微信截图_1669174775341.png]] 2371 2371 2372 -When X000 is ON 2373 2373 2374 - •WhenD0<0, thevalueof (D0)+(-1,000)isstoredinD1.1170 +T1 is used for storing time, setting the expected time as K5 and the time base as K10000. 2375 2375 2376 - •WhenD0=0,0is stored inD1.1172 +When the enable input (M8) is on, the timer (T1) is started and the timer (T1) bit turns on immediately. Timer (T1) stops as time increases and reaches the expected time. 2377 2377 2378 - •When0<D0, thevalue of (D0)+(1,000) isstored inD1.1174 +After timer (T1) reaches a predetermined time of 5s, timer (T1) bit is disconnected. At this time, timer (T1) stops increasing. If the enable input (M8) becomes FALSE, timer (T1) will reset. The expected time becomes 0. 2379 2379 2380 -{{id name="_Toc28351"/}}{{id name="_Toc11023"/}}{{id name="_Toc30269"/}}**DZONE/BIN 32-bit data zone control** 2381 - 2382 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] DZONE(P) 2383 - 2384 -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). 2385 - 2386 --[DZONE (s1) (s2) (s3) (d)] 2387 - 2388 -**Content, range and data type** 2389 - 2390 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 2391 -|(s1)|The negative offset value for addition in the input value|-2147483648 to 2147483647|BIN32 bit|ANY32_S 2392 -|(s2)|The positive offset value for addition in the input value|-2147483648 to 2147483647|BIN32 bit|ANY32_S 2393 -|(s3)|Input value for zone control|-2147483648 to 2147483647|BIN32 bit|ANY32_S 2394 -|(d)|The start number of the device storing the output value controlled by zone control|-|BIN32 bit|ANY32_S 2395 - 2396 -**Device used** 2397 - 2398 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 2399 -**Pulse** 2400 - 2401 -**extension** 2402 -))) 2403 -|**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** 2404 -|(% rowspan="4" %)DZONE|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|● 2405 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|● 2406 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●| | | |●|● 2407 -|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●|● 2408 - 2409 -**Features** 2410 - 2411 -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. 2412 - 2413 -|**Condition**|**The value stored in the output value** 2414 -|When input value ((s3), (s3)+1)<0|Input value ((s3), (s3)+1) + negative offset value (s1), (s1)+1 2415 -|When input value ((s3), (s3)+1)=0|0 2416 -|When input value ((s3), (s3)+1)>0|Input value ((s3), (s3)+1) + positive offset value (s2), (s2)+1 2417 - 2418 - 2419 -((( 2420 -• 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. 2421 - 2422 -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. 2423 - 2424 -[[image:07-5 Basic instructions_html_2f3a96a2565c75c7.png]] 2425 -))) 2426 - 2427 -**Error code** 2428 - 2429 -|**Error code**|**Content** 2430 -|4085H|When the specified device range for reading exceeds the range of the corresponding device 2431 -|4086H|When the specified device range for writing exceeds the range of the corresponding device 2432 - 2433 -**Example** 2434 - 2435 -[[image:07-5 Basic instructions_html_b831b14748df07ab.png]] 2436 - 2437 -• When (D1, D0)<0, the value of (D1, D0)+(-10,000) is stored in (D11, D10). 2438 - 2439 -• When (D1, D0)=0, 0 is stored in (D11, D10). 2440 - 2441 -• When 0<(D1, D0), the value of (D1, D0)+10,000 is stored in (D11, D10). 1176 +After startup, if the enable input (M8) becomes FALSE before the timer (T1) reaches the estimated time of 5s, the timer will be reset after reaching the estimated time of 5s.
- 2TC2DAI.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +8.8 KB - Content
- 企业微信截图_16691725418532.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bob - Size
-
... ... @@ -1,0 +1,1 @@ 1 +17.1 KB - Content
- 企业微信截图_16691727487041.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +17.1 KB - Content
- 企业微信截图_16691729278938.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bob - Size
-
... ... @@ -1,0 +1,1 @@ 1 +4.8 KB - Content
- 企业微信截图_16691733488965.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bob - Size
-
... ... @@ -1,0 +1,1 @@ 1 +16.1 KB - Content
- 企业微信截图_16691733566206.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bob - Size
-
... ... @@ -1,0 +1,1 @@ 1 +6.4 KB - Content
- 企业微信截图_16691735281572.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bob - Size
-
... ... @@ -1,0 +1,1 @@ 1 +5.2 KB - Content
- 企业微信截图_16691735325382.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bob - Size
-
... ... @@ -1,0 +1,1 @@ 1 +14.8 KB - Content
- 企业微信截图_16691747709508.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bob - Size
-
... ... @@ -1,0 +1,1 @@ 1 +8.4 KB - Content
- 企业微信截图_1669174775341.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bob - Size
-
... ... @@ -1,0 +1,1 @@ 1 +4.2 KB - Content