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)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,0 @@ 1 -12 Clock operation instruction - Parent
-
... ... @@ -1,1 +1,1 @@ 1 -PLC Editor2.1 User manual.2\.1 LX5V user manual. 07.WebHome1 +PLC Editor2.1 User manual.2\.1 LX5V user manual.WebHome - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.J im1 +XWiki.Joey - Content
-
... ... @@ -1,3 +1,388 @@ 1 += **Contact comparison instruction** = 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 + 1 1 == **TADD/The addition of clock data** == 2 2 3 3 **TADD(P)** ... ... @@ -782,10 +782,9 @@ 782 782 783 783 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. 784 784 785 -(% style="text-align:center" %) 786 -[[image:07-5 Basic instructions_html_5df7ad3057fada12.png||height="385" width="750"]] 1170 +[[image:07-5 Basic instructions_html_5df7ad3057fada12.png]] 787 787 788 -✎**Note :**1172 +✎**Note** 789 789 790 790 The device specified in (s4) and (d) occupies 3 points. Be careful not to overlap with the device used for machine control. 791 791 ... ... @@ -799,29 +799,26 @@ 799 799 |4084H|((( 800 800 When the value specified in (s) and (s4) is not in the range of 0 to 23 801 801 802 -When the value specified in (s2),(s3) (s4)+1 and (s4)+2 is not in the range of 0 to 59 1186 +{{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 803 803 ))) 804 804 805 805 **Example** 806 806 807 -(% style="text-align:center" %) 808 -[[image:07-5 Basic instructions_html_fcc16317cf7c0700.png||height="68" width="359"]] 1191 +[[image:07-5 Basic instructions_html_fcc16317cf7c0700.png]] 809 809 810 810 Set D10 to 1, D11 to 30, D12 to 0 811 811 812 812 When M0 is turned on, the time that D23 will come is 0:31:27 813 813 814 -(% style="text-align:center" %) 815 -[[image:07-5 Basic instructions_html_de97dd7a612b2323.png||height="50" width="653"]] 1197 +[[image:07-5 Basic instructions_html_de97dd7a612b2323.png]] 816 816 817 817 M10 is turned ON 818 818 819 -(% style="text-align:center" %) 820 -[[image:07-5 Basic instructions_html_56e2d606adc09fd.png||height="52" width="239"]] 1201 +[[image:07-5 Basic instructions_html_56e2d606adc09fd.png]] 821 821 822 -= =**TZCP/Clock data bandwidth comparison**==1203 +{{id name="_Toc29031"/}}{{id name="_Toc22923"/}}**TZCP/Clock data bandwidth comparison** 823 823 824 -**TZCP(P)** 1205 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TZCP(P)** 825 825 826 826 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. 827 827 ... ... @@ -831,37 +831,46 @@ 831 831 832 832 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 833 833 |(s1)|Specify the "hour" of the lower limit time (hour, minute, second)|-|Signed BIN 16 bit|((( 834 -ANY16_ARRAY (number of elements: 3) 1215 +ANY16_ARRAY 1216 + 1217 +(number of elements: 3) 835 835 ))) 836 836 |(s2)|Specify the "hour" of the lower limit time (hour, minute, second)|-|Signed BIN 16 bit|((( 837 -ANY16_ARRAY (number of elements: 3) 1220 +ANY16_ARRAY 1221 + 1222 +(number of elements: 3) 838 838 ))) 839 839 |(s3)|Specify "hour" of time data (hour, minute, second)|-|Signed BIN 16 bit|((( 840 -ANY16_ARRAY (number of elements: 3) 1225 +ANY16_ARRAY 1226 + 1227 +(number of elements: 3) 841 841 ))) 842 842 |(d)|The bit device is turned ON/OFF according to the comparison result.|-|Bit|((( 843 -ANY16_ARRAY (number of elements: 3) 1230 +ANY16_ARRAY 1231 + 1232 +(number of elements: 3) 844 844 ))) 845 845 846 846 **Device used** 847 847 848 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="10" %)**Devices**|**Offset modification**|((( 849 -**Pulse extension** 1237 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1238 +**Pulse** 1239 + 1240 +**extension** 850 850 ))) 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|●|●|●|●|●| | | | | |●|● 1242 +|**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** 1243 +|(% rowspan="4" %)TZCP|Parameter 1| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|● 1244 +|Parameter 2| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|● 1245 +|Parameter 3| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|● 1246 +|Parameter 4| |●|●|●|●| | | | |●| | | | | | | | | | | | | | |●|● 856 856 857 857 **Features** 858 858 859 859 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. 860 860 861 -(% style="text-align:center" %) 862 -[[image:07-5 Basic instructions_html_844291270080313d.png||height="339" width="750"]] 1252 +[[image:07-5 Basic instructions_html_844291270080313d.png]] 863 863 864 -✎**Note :**1254 +✎**Note** 865 865 866 866 • The devices specified in (s1), (s2), (s3), (d) occupy 3 points. Be careful not to overlap with the device used for machine control. 867 867 ... ... @@ -882,23 +882,1176 @@ 882 882 883 883 **Example** 884 884 885 -(% style="text-align:center" %) 886 -[[image:07-5 Basic instructions_html_30027a2387c26c2e.png||height="46" width="439"]] 1275 +[[image:07-5 Basic instructions_html_30027a2387c26c2e.png]] 887 887 888 888 Set D0 time to 16:30:00 and D10 time to 4:30:0 889 889 890 -(% style="text-align:center" %) 891 -[[image:07-5 Basic instructions_html_c64e0faf2af172f8.png||height="49" width="626"]] 1279 +[[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]] 892 892 893 -(% style="text-align:center" %) 894 -[[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png||height="50" width="625"]] 1281 +[[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]] 895 895 896 896 After the coil is turned on, the reading time to D20 time is 8:30:00 897 897 898 -(% style="text-align:center" %) 899 -[[image:07-5 Basic instructions_html_75c44dad07eaf80a.png||height="49" width="625"]] 1285 +[[image:07-5 Basic instructions_html_75c44dad07eaf80a.png]] 900 900 901 901 M0/M12 is ON 902 902 903 -(% style="text-align:center" %) 904 -[[image:07-5 Basic instructions_html_f512f36261705953.png||height="48" width="218"]] 1289 +[[image:07-5 Basic instructions_html_f512f36261705953.png]] 1290 + 1291 +{{id name="_Toc6129"/}}[[image:07-5 Basic instructions_html_a2e3294e01b2f206.gif]] **7.13 Data control instructions** 1292 + 1293 +{{id name="_Toc3339"/}}{{id name="_Toc27829"/}}{{id name="_Toc9204"/}}**BAND/BIN 16-bit data dead zone control** 1294 + 1295 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **BAND(P)** 1296 + 1297 +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). 1298 + 1299 +-[BAND (s1) (s2) (S3) (d)] 1300 + 1301 +**Content, range and data type** 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 1308 + 1309 +**Device used** 1310 + 1311 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 1312 +**Offset** 1313 + 1314 +**modification** 1315 +)))|((( 1316 +**Pulse** 1317 + 1318 +**extension** 1319 +))) 1320 +|**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** 1321 +|(% rowspan="4" %)BAND|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|● 1322 +|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|● 1323 +|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|● 1324 +|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|● 1325 + 1326 +**Features** 1327 + 1328 +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. 1329 + 1330 +|**Condition**|**The value stored in the output value** 1331 +|When dead zone low limit (s1)> input value (s3)|Input value (s3)-Dead zone low limit (s1) 1332 +|When dead zone high limit (s1) <input value (s3)|Input value (s3)- Dead zone high limit (s2) 1333 +|When dead zone low limit (s1) ≤ input value (s3) ≤ dead zone low limit (s2)|0 1334 + 1335 + 1336 +((( 1337 +•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. 1338 + 1339 +For example, when (s1) is 10 and (s3) is -32768, 1340 + 1341 +the output value = -32768-10=8000H-000AH=7FFFH=32758. 1342 + 1343 +[[image:07-5 Basic instructions_html_6850e21a76b813c0.png]] 1344 +))) 1345 + 1346 +**Error code** 1347 + 1348 +|**Error code**|**Content** 1349 +|4085H|When the specified device range for reading exceeds the range of the corresponding device. 1350 +|4086H|When the specified device range for writing exceeds the range of the corresponding device. 1351 +|4084H|When the low limit specified in (s1) is greater than the high limit specified in (s2). 1352 + 1353 +**Example ** 1354 + 1355 +[[image:07-5 Basic instructions_html_c0e65cfeed403ecf.png]] 1356 + 1357 +When X000 is ON, when D0<(-1,000), the value of ( D0)-(-1,000) is stored in (D1). 1358 + 1359 +• When -1,000≦ D0≦1,000, 0 is stored in D1. 1360 + 1361 +• When D0<1,000, the value of (D0)-1,000 is stored in D1. 1362 + 1363 +{{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** 1364 + 1365 +**DBAND(P)** 1366 + 1367 +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). 1368 + 1369 +-[DBAND (s1) (s2) (S3) (d)] 1370 + 1371 +**Content, range and data type** 1372 + 1373 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1374 +|(s1)|Dead zone low limit (no output zone)|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S 1375 +|(s2)|Dead zone high limit (no output zone)|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S 1376 +|(S3)|Input value controlled by dead zone control|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S 1377 +|(d)|The start number of the device that stores the output value controlled by the dead zone control|-|Signed BIN 32 bit|ANY32_S 1378 + 1379 +**Device used** 1380 + 1381 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1382 +**Pulse** 1383 + 1384 +**extension** 1385 +))) 1386 +|**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** 1387 +|(% rowspan="4" %)DBAND|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|● 1388 +|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|● 1389 +|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●| | | |●|● 1390 +|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●|● 1391 + 1392 +**Features** 1393 + 1394 +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. 1395 + 1396 +|**Condition**|**The value stored in the output value** 1397 +|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) 1398 +|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) 1399 +|When dead zone low limit ((s1), (s1)+1) ≤ input value ((s3), (s3)+1) ≤ dead zone high limit ((s2), (s2)+1)|0 1400 + 1401 + 1402 +((( 1403 +• 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= 1404 + 1405 +-2,147,483,648-1000=80000000H-000003E8H=7FFFFC18H=2,147,482,648. 1406 + 1407 +[[image:07-5 Basic instructions_html_e0144674dad3e8fd.png]] 1408 + 1409 + 1410 + 1411 +))) 1412 + 1413 +**Error code** 1414 + 1415 +|**Error code**|**Content** 1416 +|4085H|When the specified device range for reading exceeds the range of the corresponding device. 1417 +|4086H|When the specified device range for writing exceeds the range of the corresponding device. 1418 +|4084H|When the low limit specified in (s1) is greater than the high limit specified in (s2). 1419 + 1420 +**Example** 1421 + 1422 +[[image:07-5 Basic instructions_html_88f3fe0fb4841bab.png]] 1423 + 1424 +• When (D1, D0)<(-10,000), the value of (D1, D0)-(-10,000) is stored in (D11, D10). 1425 + 1426 +• When -10,000≦(D1, D0)≦10,000, 0 is stored in (D11, D10). 1427 + 1428 +• When 10,000< (D1, D0), the value of (D1, D0)-10,000 is stored in D1. 1429 + 1430 +{{id name="_Toc21668"/}}{{id name="_Toc25056"/}}{{id name="_Toc17582"/}}{{id name="OLE_LINK165"/}}**BINDA/BIN 16-bit data → Decimal ASCII conversion** 1431 + 1432 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **BINDA(P)** 1433 + 1434 +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). 1435 + 1436 +-[BINDA(s)(d)] 1437 + 1438 +**Content, range and data type** 1439 + 1440 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1441 +|(s)|BIN data for ASCII conversion|-32768 to +32767|Signed BIN 16 bit|ANY16_S 1442 +|(d)|The start number of the device storing the conversion result|-|String|ANYSTRING_SINGLE 1443 + 1444 +**Device used** 1445 + 1446 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1447 +**Pulse** 1448 + 1449 +**extension** 1450 +))) 1451 +|**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** 1452 +|(% rowspan="2" %)BINDA|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|● 1453 +|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|● 1454 + 1455 +**Features** 1456 + 1457 +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). 1458 + 1459 + 1460 + 1461 +((( 1462 +←Only store 0 when SM191 is OFF 1463 + 1464 +[[image:07-5 Basic instructions_html_57bda5f08026449d.png]] 1465 +))) 1466 + 1467 +For example, when -12,345 is specified in (s) (in the case of specifying signed) 1468 + 1469 +[[image:07-5 Basic instructions_html_f346102467b9bef9.png]] 1470 + 1471 +The calculation result stored in (d) will be as below. 1472 + 1473 +• In "Sign", 20H is stored when the BIN data is positive, and 2DH is stored when it is negative. 1474 + 1475 +• 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. 1476 + 1477 +• 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. 1478 + 1479 +✎**Note: **The number of occupied points of (d) is 3 when SM191 is ON, and it is 4 when SM191 is OFF. 1480 + 1481 +**Error code** 1482 + 1483 +|**Error code**|**Content** 1484 +|4085H|The read address of (s) exceeds the device range. 1485 +|4086H|The write address of (d) exceeds the device range. 1486 + 1487 +**Example** 1488 + 1489 + 1490 + 1491 +((( 1492 +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 1493 + 1494 +converted ASCII code character by character to the program of Y040 to Y057. 1495 + 1496 +[[image:07-5 Basic instructions_html_c598806a42484ed.png]] 1497 +))) 1498 + 1499 +{{id name="_Toc12255"/}}{{id name="_Toc8216"/}}{{id name="_Toc470"/}}**DBINDA/BIN 32-bit data → Decimal ASCII conversion** 1500 + 1501 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DBINDA(P)** 1502 + 1503 +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). 1504 + 1505 +-[DBINDA(s)(d)] 1506 + 1507 +**Content, range and data type** 1508 + 1509 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1510 +|(s)|BIN data for ASCII conversion|-2,147483648 to 2147483647|Signed BIN 32 bit|ANY32_S 1511 +|(d)|{{id name="OLE_LINK2"/}}The start number of the device storing the conversion result|-|String|ANYSTRING_SINGLE 1512 + 1513 +**Device used** 1514 + 1515 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 1516 +**Offset** 1517 + 1518 +**modification** 1519 +)))|((( 1520 +**Pulse** 1521 + 1522 +**extension** 1523 +))) 1524 +|**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** 1525 +|(% rowspan="2" %)DBINDA|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|● 1526 +|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|● 1527 + 1528 +**Features** 1529 + 1530 +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). 1531 + 1532 +For example, when -12345678 is specified in (s). (in the case of specifying signed) 1533 + 1534 +[[image:07-5 Basic instructions_html_4d939462838cf09b.gif]] The calculation result stored in (d) will be as below. 1535 + 1536 +• In "Sign", 20H is stored when the BIN data is positive, and 2DH is stored when it is negative. 1537 + 1538 +• 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. 1539 + 1540 +• 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. 1541 + 1542 +✎**Note: **(d) Occupies 6 points. 1543 + 1544 +**Error code** 1545 + 1546 +|**Error code**|**Content** 1547 +|4085H|(s) read address exceeds the device range 1548 +|4086H|(d) write address exceeds the device range 1549 + 1550 +**Example** 1551 + 1552 +[[image:07-5 Basic instructions_html_ec8ac32d748a991c.png]] 1553 + 1554 +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. 1555 + 1556 +{{id name="_Toc19693"/}}{{id name="_Toc18078"/}}{{id name="_Toc5726"/}}**DABIN/Decimal ASCII → BIN conversion** 1557 + 1558 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DABIN(P)** 1559 + 1560 +Digital ASCII code (30H to 39H) is a instruction to convert real data into BIN data. 1561 + 1562 +-[DABIN (s) (d)] 1563 + 1564 +**Content, range and data type** 1565 + 1566 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1567 +|(s)|The start number of the device that stores the data (ASCII code) to be converted into a BIN value|-|String|ANYSTRING_SINGLE 1568 +|(d)|The device number for storing conversion result|-|BIN16 bit|ANY16_S 1569 + 1570 +**Device used** 1571 + 1572 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1573 +**Pulse** 1574 + 1575 +**extension** 1576 +))) 1577 +|**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** 1578 +|(% rowspan="2" %)DABIN|Parameter 1| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|● 1579 +|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|● 1580 + 1581 +**Features** 1582 + 1583 +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). 1584 + 1585 +[[image:07-5 Basic instructions_html_22c5cb32a0a32214.png]] 1586 + 1587 +|**ASCII S**|**ASCII 10^^0^^**|**ASCII 10^^1^^**|**ASCII 10^^2^^**|**ASCII 10^^3^^**|**ASCII 10^^4^^** 1588 +|**ASCII code**|((( 1589 +{{id name="OLE_LINK36"/}}Units of 1590 + 1591 +ASCII code 1592 +)))|((( 1593 +Tens of 1594 + 1595 +ASCII code 1596 +)))|((( 1597 +Hundreds of 1598 + 1599 +ASCII code 1600 +)))|((( 1601 +Thousands of 1602 + 1603 +ASCII code 1604 +)))|((( 1605 +Ten thousands 1606 + 1607 +of ASCII code 1608 +))) 1609 + 1610 +For example, When -25,108 is specified in (s) 1611 + 1612 +[[image:07-5 Basic instructions_html_10fb2792e37dbf23.png]] 1613 + 1614 +• The ASCII data specified in (s) to (s)+2 is within the range of -32,768 to +32,767. 1615 + 1616 +• 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)) 1617 + 1618 +• The range of the ASCII code set in each digit is 30H to 39H. 1619 + 1620 +• When the ASCII code set in each bit is 20H or 00H, it will be treated as 30H. 1621 + 1622 +**Error code** 1623 + 1624 +|**Error code**|**Content** 1625 +|4084H|((( 1626 +When the Sign data exceeds the range of 30H to 39H, 20H, 00H, 2DH; 1627 + 1628 +When the ASCII code of each bit specified in (s) to (s)+2 exceeds the range of 30H to 39H, 20H, 00H; 1629 + 1630 +When the ASCII data specified in (s) to (s)+2 is other than -32,768 to +32,767. 1631 +))) 1632 +|4085H|The read address of (s) exceeds the device range. 1633 +|4086H|The write address of (d) exceeds the device range. 1634 + 1635 + 1636 +((( 1637 +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. 1638 + 1639 +**Example** 1640 +))) 1641 + 1642 +[[image:07-5 Basic instructions_html_bec2bea131b58c03.png]] 1643 + 1644 +{{id name="_Toc3351"/}}{{id name="_Toc26383"/}}{{id name="_Toc26233"/}}**DDABIN/Decimal ASCII → BIN32-bit data conversion** 1645 + 1646 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DDABIN(P)** 1647 + 1648 +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). 1649 + 1650 +-[DDABIN (s) (d) ] 1651 + 1652 +**Content, range and data type** 1653 + 1654 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1655 +|(s)|The start number of the device that stores data (ASCII code) to be converted into a BIN value|-|String|ANYSTRING_SINGLE 1656 +|(d)|The device number for storing conversion result|-|Signed BIN 32 bit|ANY32_S 1657 + 1658 +**Device used** 1659 + 1660 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1661 +**Pulse** 1662 + 1663 +**extension** 1664 +))) 1665 +|**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** 1666 +|(% rowspan="2" %)DDABIN|Parameter 1| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|● 1667 +|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●|● 1668 + 1669 +**Features** 1670 + 1671 +The decimal ASCII data stored after the device number specified in (s) is converted into BIN 32-bit data and stored in the device specified in (d). 1672 + 1673 +[[image:07-5 Basic instructions_html_c444110b273f33b7.gif]] 1674 + 1675 +|**ASCII S**|**ASCII code**|**ASCII S**|**ASCII code** 1676 +|ASCII 10^^0^^|Units of ASCII code|ASCII 10^^5^^|{{id name="OLE_LINK38"/}}Hundred thousands of ASCII code 1677 +|ASCII 10^^1^^|Tens of ASCII code|ASCII 10^^6^^|Millions of ASCII code 1678 +|ASCII 10^^2^^|Hundreds of ASCII code|ASCII 10^^7^^|Ten millions of ASCII code 1679 +|ASCII 10^^3^^|{{id name="OLE_LINK37"/}}Thousands of ASCII code|ASCII 10^^8^^|Hundred millions of ASCII code 1680 +|ASCII 10^^4^^|Tens thousands of ASCII code|ASCII 10^^9^^|billions of ASCII code 1681 + 1682 +When -1234543210 is specified in (s) (When signed is specified) 1683 + 1684 +[[image:07-5 Basic instructions_html_1b4c7e1c663a4399.png]] 1685 + 1686 +• 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. 1687 + 1688 +• 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)) 1689 + 1690 +• The range of ASCII code set in each digit is 30H to 39H. 1691 + 1692 +• When the ASCII code set in each bit is 20H or 00H, it will be treated as 30H. 1693 + 1694 +**Error code** 1695 + 1696 +|**Error code**|**Content** 1697 +|4084H|((( 1698 +When the Sign data exceeds the range of 30H to 39H, 20H, 00H and 2DH; 1699 + 1700 +{{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; 1701 + 1702 +When the ASCII data specified in (s) to (s)+5 exceeds the range of -2,147,483,648 to +2,147,483,647 1703 +))) 1704 +|4085H|The read address of (s) exceeds the device range. 1705 +|4086H|The write address of (d) exceeds the device range. 1706 + 1707 +**Example** 1708 + 1709 +[[image:07-5 Basic instructions_html_feea438c943ea9dd.png]] 1710 + 1711 +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. 1712 + 1713 +{{id name="_Toc26556"/}}{{id name="_Toc12799"/}}{{id name="_Toc23863"/}}**LIMIT/ BIN 16-bit data high and low limit control** 1714 + 1715 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **LIMIT(P)** 1716 + 1717 +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). 1718 + 1719 +-[LIMIT (s1) (s2) (s3) (d)] 1720 + 1721 +**Content, range and data type** 1722 + 1723 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1724 +|s1|Low limit value (minimum output limit value)|-32,768 to 32,767|BIN16 bit|ANY16_S 1725 +|s2|High limit value (maximum output limit value)|-32,768 to 32,767|BIN16 bit|ANY16_S 1726 +|s3|Input value controlled by high and low limit control|-32,768 to 32,767|BIN16 bit|ANY16_S 1727 +|d|The start number of device that stores the output value controlled by high and low limit control|-|BIN16 bit|ANY16_S 1728 + 1729 +**Device used** 1730 + 1731 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1732 +**Pulse** 1733 + 1734 +**extension** 1735 +))) 1736 +|**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** 1737 +|(% rowspan="4" %)LIMIT|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|● 1738 +|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|● 1739 +|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|● 1740 +|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|● 1741 + 1742 +**Features** 1743 + 1744 +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. 1745 + 1746 +|**Condition**|**The value stored in the output value** 1747 +|Low limit value (s1)>input value (s3)|Low limit value (s1) 1748 +|High limit value (s1) <input value (s3)|High limit value (s2) 1749 +|Low limit value (s1) ≤ input value (s3) ≤ high limit value (s2)|Input value (s3) 1750 + 1751 + 1752 +((( 1753 +•Only in the case of controlling high limit value, set the minimum value of data range in the low limit value specified in (s1). 1754 + 1755 +• Only in the case of controlling low limit value, set the maximum value of data range in the high limit value specified in (s2). 1756 + 1757 +[[image:07-5 Basic instructions_html_50eb5229b027aa14.png]] 1758 +))) 1759 + 1760 +**Error code** 1761 + 1762 +|**Error code**|**Content** 1763 +|4085H|The read address exceeds the device range 1764 +|4086H|The write address exceeds the device range 1765 +|4084H|High limit <low limit 1766 + 1767 +**Example** 1768 + 1769 +[[image:07-5 Basic instructions_html_d67a2e740d4fc738.png]] 1770 + 1771 +When X000 is ON 1772 + 1773 +• When D0 <500, D1 is 500. 1774 + 1775 +• When 500 ≤ D0 ≤ 5,000, D1 is the value of D0. 1776 + 1777 +• When 5,000 <D0, D1 is 5,000. 1778 + 1779 +{{id name="_Toc32553"/}}{{id name="_Toc9981"/}}{{id name="_Toc9158"/}}**DLIMIT/BIN 32-bit data high and low limit control** 1780 + 1781 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DLIMIT(P)** 1782 + 1783 +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). 1784 + 1785 +-[DLIMIT (s1) (s2) (s3) (d)] 1786 + 1787 +**Content, range and data type** 1788 + 1789 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1790 +|s1|Low limit value (minimum output limit value)|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S 1791 +|s2|High limit value (maximum output limit value)|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S 1792 +|s3|Input value controlled by high and low limit control|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S 1793 +|d|The start number of the device that stores the output value controlled by high and low limit control|-|BIN32 bit|ANY32_S 1794 + 1795 +**Device used** 1796 + 1797 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1798 +**Pulse** 1799 + 1800 +**extension** 1801 +))) 1802 +|**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** 1803 +|(% rowspan="4" %)DLIMIT|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|● 1804 +|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|● 1805 +|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●| | | |●|● 1806 +|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●|● 1807 + 1808 +**Features** 1809 + 1810 +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. 1811 + 1812 +|**Condition**|**The value stored in the output value** 1813 +|Low limit value ((s1), (s1)+1)> input value ((s3), (s3)+1)|Low limit value ((s1), (s1)+1) 1814 +|High limit value ((s2), (s2)+1) <input value ((s3), (s3)+1)|High limit value ((s2), (s2)+1) 1815 +|Low limit value ((s1), (s1)+1) ≤ input value ((s3), (s3)+1) ≤ high limit value ((s2), (s2)+1)|Input value ((s3), (s3)+1) 1816 + 1817 +{{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). 1818 + 1819 +• Only in the case of controlling low limit value, set the maximum value of data range in the high limit value specified in (s2). 1820 + 1821 +**Error code** 1822 + 1823 +|**Error code**|**Content** 1824 +|4085H|The read address exceeds the device range 1825 +|4086H|The write address exceeds the device range 1826 +|4084H|High limit <low limit 1827 + 1828 +**Example** 1829 + 1830 +[[image:07-5 Basic instructions_html_217355b90f4b4e16.png]] 1831 + 1832 +Operation: 1833 + 1834 +• When (D1, D0) <10,000, (D11, D10) is 10,000. 1835 + 1836 +• When 10,000 ≤ (D1, D0) ≤ 1,000,000, (D11, D10) is the value of (D1, D0). 1837 + 1838 +• When 1,000,000 <(D1, D0), (D11, D10) is 1,000,000. 1839 + 1840 +{{id name="_Toc12534"/}}{{id name="_Toc28213"/}}{{id name="_Toc24591"/}}**SCL/BIN 16-bit unit scale (coordinate data of each point)** 1841 + 1842 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **SCL(P)** 1843 + 1844 +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). 1845 + 1846 +-[SCL (s1) (s2) (d)] 1847 + 1848 +**Content, range and data type** 1849 + 1850 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1851 +|(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 1852 +|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 16 bit|ANY16_S 1853 +|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 16 bit|ANY16_S 1854 + 1855 +**Device used** 1856 + 1857 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1858 +**Pulse** 1859 + 1860 +**extension** 1861 +))) 1862 +|**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** 1863 +|(% rowspan="3" %)SCL|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|● 1864 +|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|● 1865 +|Parameter 3| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|● 1866 + 1867 +**Features** 1868 + 1869 +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). 1870 + 1871 +|(% colspan="2" %)**Setting items (n represents the number of coordinate points specified in (s2))**|**Device allocation** 1872 +|(% colspan="2" %)Coordinate points|(s2) 1873 +|(% rowspan="2" %)Point 1|X coordinate|(s2)+1 1874 +|Y coordinate|(s2)+2 1875 +|(% rowspan="2" %)Point 2|X coordinate|(s2)+3 1876 +|Y coordinate|(s2)+4 1877 +|(% colspan="3" %)........ 1878 +|(% rowspan="2" %)Point n|X coordinate|(s2)+2n-1 1879 +|Y coordinate|(s2)+2n 1880 + 1881 +[[image:07-5 Basic instructions_html_80185ccddb878234.png]] 1882 + 1883 +• If the operation result is not an integer value, round the first digit below the decimal point. 1884 + 1885 +• The X coordinate data of the conversion data for scaling should be set in ascending order. 1886 + 1887 +• (s1) should be set within the range of conversion data for scaling (device value of (s2)). 1888 + 1889 +• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output. 1890 + 1891 +• Set the number of coordinate points of the conversion data for scaling within the range of 1 to 32,767. 1892 + 1893 +• Setting example of conversion table for scaling. 1894 + 1895 +In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet. 1896 + 1897 +[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]] 1898 + 1899 +|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Sett device and content**|(% rowspan="2" %)**Remarks** 1900 +|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content** 1901 +|(% colspan="2" %)Coordinate points|(s2)|R0|K10| 1902 +|(% rowspan="2" %)Point 1|X coordinate|(s2)+1|R1|K5| 1903 +|Y coordinate|(s2)+2|R2|K20| 1904 +|(% rowspan="2" %)Point 2|X coordinate|(s2)+3|R3|K30| 1905 +|Y coordinate|(s2)+4|R4|K50| 1906 +|(% rowspan="2" %)Point 3|X coordinate|(s2)+5|R5|K100| 1907 +|Y coordinate|(s2)+6|R6|K200| 1908 +|(% rowspan="2" %)Point 4|X coordinate|(s2)+7|R7|K25|(% rowspan="6" %)((( 1909 +If the coordinates are specified by 3 points, the intermediate value could be the output value. 1910 + 1911 +In this example, the output value (median value) is specified by the Y coordinate of point 5. 1912 + 1913 +When the X coordinate is the same at 3 points or more, the value of the 2nd point is also output. 1914 +))) 1915 +|Y coordinate|(s2)+8|R8|K200 1916 +|(% rowspan="2" %)Point 5|X coordinate|(s2)+9|R9|K70 1917 +|Y coordinate|(s2)+10|R10|K200 1918 +|(% rowspan="2" %)Point 6|X coordinate|(s2)+11|R11|K250 1919 +|Y coordinate|(s2)+12|R12|K250 1920 +|(% rowspan="2" %)Point 7|X coordinate|(s2)+13|R13|K250| 1921 +|Y coordinate|(s2)+14|R14|K90| 1922 +|(% rowspan="2" %)Point 8|X coordinate|(s2)+15|R15|K350|(% rowspan="4" %)((( 1923 +If the coordinates are specified by two points, the output value is the value of the Y coordinate of the next point. 1924 + 1925 +In this example, the output value is specified by the Y coordinate of point 9. 1926 +))) 1927 +|Y coordinate|(s2)+16|R16|K90 1928 +|(% rowspan="2" %)Point 9|X coordinate|(s2)+17|R17|K350 1929 +|Y coordinate|(s2)+18|R18|K30 1930 +|(% rowspan="2" %)Point 10|X coordinate|(s2)+19|R19|K400| 1931 +|Y coordinate|(s2)+20|R20|K7| 1932 + 1933 +**Error code** 1934 + 1935 +|**Error code**|**Content** 1936 +|4085H|When the specified device range for reading exceeds the range of the corresponding device. 1937 +|4086H|When the specified device range for writing exceeds the range of the corresponding device. 1938 +|4084H|((( 1939 +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; 1940 + 1941 +When the input value specified in (s1) exceeds the range of the set scale conversion data; 1942 + 1943 +When the number of start coordinate points of device (s2) is less than 0. 1944 +))) 1945 + 1946 +**Example** 1947 + 1948 +[[image:07-5 Basic instructions_html_5519d7b41f15b6d6.png]] 1949 + 1950 +[[image:07-5 Basic instructions_html_ace075fb7675de8e.gif]] When -100 ≤ D0(X) < 0, D100(Y)= 1951 + 1952 +[[image:07-5 Basic instructions_html_9acd6306c6d91847.gif]] when D0(X)=0, D100(Y)=0; 1953 + 1954 +when 0< D0(X) ≤ 100, D100(Y)= 1955 + 1956 +[[image:07-5 Basic instructions_html_e35e13160c08a133.png]] 1957 + 1958 + 1959 + 1960 +{{id name="_Toc4862"/}}{{id name="_Toc11340"/}}{{id name="_Toc25383"/}}**DSCL/32-bit unit scale (coordinate data of each point)** 1961 + 1962 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DSCL(P)** 1963 + 1964 +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). 1965 + 1966 +-[DSCL (s1) (s2) (d)] 1967 + 1968 +**Content, range and data type** 1969 + 1970 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1971 +|(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 1972 +|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 32 bit|ANY32_S 1973 +|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 32 bit|ANY32_S 1974 + 1975 +**Device used** 1976 + 1977 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Device**|**Offset modification**|((( 1978 +**Pulse** 1979 + 1980 +**extension** 1981 +))) 1982 +|**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** 1983 +|(% rowspan="3" %)DSCL|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|● 1984 +|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|● 1985 +|Parameter 3| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●|● 1986 + 1987 +**Features** 1988 + 1989 +{{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). 1990 + 1991 +|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation** 1992 +|(% colspan="2" %)Coordinate points|(s2)+1, (s2) 1993 +|(% rowspan="2" %)Point 1|X coordinate|(s2)+3, (s2)+2 1994 +|Y coordinate|(s2)+5, (s2)+4 1995 +|(% rowspan="2" %)Point 2|X coordinate|(s2)+7, (s2)+6 1996 +|Y coordinate|(s2)+9, (s2)+8 1997 +|(% colspan="3" %)........ 1998 +|(% rowspan="2" %)Point n|X coordinate|(s2)+4n-1, (s2)+4n-2 1999 +|Y coordinate|(s2)+4n+1, (s2)+4n 2000 + 2001 +[[image:07-5 Basic instructions_html_6633ca18cee1218c.png]] 2002 + 2003 +• If the calculation result is not an integer value, round the first digit below the decimal point. 2004 + 2005 +• The X coordinate data of the conversion data for scaling should be set in ascending order. 2006 + 2007 +• For (s1), set within the range of the conversion data for scaling ((s2), (s2) + 1 device value). 2008 + 2009 +• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output. 2010 + 2011 +• Set the number of coordinate points of conversion data for scaling within the range of 1 to 2,147,483,647. 2012 + 2013 +• Setting example of conversion table for scaling. 2014 + 2015 +In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet. 2016 + 2017 +[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]] 2018 + 2019 +|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Set device and content**|(% rowspan="2" %)**Remarks** 2020 +|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content** 2021 +|(% colspan="2" %)Coordinate points|(s2)+1, (s2)|R1, R0|K10| 2022 +|(% rowspan="2" %)Point 1|X coordinate|(s2)+3, (s2)+2|R3, R2|K5| 2023 +|Y coordinate|(s2)+5, (s2)+4|R5, R4|K7| 2024 +|(% rowspan="2" %)Point 2|X coordinate|(s2)+7, (s2)+6|R7, R6|K20| 2025 +|Y coordinate|(s2)+9, (s2)+8|R9, R8|K30| 2026 +|(% rowspan="2" %)Point 3|X coordinate|(s2)+11, (s2)+10|R10, R11|K50| 2027 +|Y coordinate|(s2)+13, (s2)+12|R13, R12|K100| 2028 +|(% rowspan="2" %)Point 4|X coordinate|(s2)+15, (s2)+14|R15, R14|K200|(% rowspan="6" %)((( 2029 +if the coordinates are specified by 3 points, the intermediate value could be the output value. 2030 + 2031 +In this example, the output value (median value) is specified by the Y coordinate of point 5. 2032 + 2033 +When the X coordinate is the same at 3 points or more, the value of the 2nd point is also output. 2034 +))) 2035 +|Y coordinate|(s2)+17, (s2)+16|R17, R16|K25 2036 +|(% rowspan="2" %)Point 5|X coordinate|(s2)+19, (s2)+18|R19, R18|K200 2037 +|Y coordinate|(s2)+21, (s2)+20|R21, R20|K70 2038 +|(% rowspan="2" %)Point 6|X coordinate|(s2)+23, (s2)+22|R23, R22|K200 2039 +|Y coordinate|(s2)+25, (s2)+24|R25, R24|K250 2040 +|(% rowspan="2" %)Point 7|X coordinate|(s2)+27, (s2)+26|R27, R26|K250| 2041 +|Y coordinate|(s2)+29, (s2)+28|R29, R28|K90| 2042 +|(% rowspan="2" %)Point 8|X coordinate|(s2)+31, (s2)+30|R31, R30|K350|(% rowspan="4" %)((( 2043 +If the coordinates are specified by two points, the output value is the value of the Y coordinate of the next point. 2044 + 2045 +In this example, the output value is specified by the Y coordinate of point 9. 2046 +))) 2047 +|Y coordinate|(s2)+33, (s2)+32|R33, R32|K90 2048 +|(% rowspan="2" %)Point 9|X coordinate|(s2)+35, (s2)+34|R35, R34|K350 2049 +|Y coordinate|(s2)+37, (s2)+36|R37, R36|K30 2050 +|(% rowspan="2" %)Point 10|X coordinate|(s2)+39, (s2)+38|R39, R38|K400| 2051 +|Y coordinate|(s2)+41, (s2)+40|R41, R40|K7| 2052 + 2053 +**Error code** 2054 + 2055 +|**Error code**|**Content** 2056 +|4085H|When the specified device range for reading exceeds the range of the corresponding device. 2057 +|4086H|When the specified device range for writing exceeds the range of the corresponding device. 2058 +|4084H|((( 2059 +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; 2060 + 2061 +When the input value specified in (s1) exceeds the range of the set scale conversion data; 2062 + 2063 +When the number of start coordinate points of device (s2) is less than 0. 2064 +))) 2065 + 2066 +**Example** 2067 + 2068 +[[image:07-5 Basic instructions_html_ba95b2d50d8d1d3e.png]] 2069 + 2070 +[[image:07-5 Basic instructions_html_1de79c7d87d51f78.gif]] When -100 ≤ D0(X) < 0, D100(Y)= 2071 + 2072 +[[image:07-5 Basic instructions_html_9acd6306c6d91847.gif]] When D0(X)=0, D100(Y)=0; 2073 + 2074 +When 0 < D0(X) ≤ 100, D100(Y)= 2075 + 2076 +[[image:07-5 Basic instructions_html_a5b19d1af74a9620.png]] 2077 + 2078 +{{id name="_Toc3776"/}}{{id name="_Toc11170"/}}{{id name="_Toc2957"/}}**SCL2/BIN 16-bit unit scale (X/Y coordinate data)** 2079 + 2080 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **SCL2(P)** 2081 + 2082 +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). 2083 + 2084 +-[SCL2 (s1) (s2) (d)] 2085 + 2086 +**Content, range and data type** 2087 + 2088 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 2089 +|(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 2090 +|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 16 bit|ANY16_S 2091 +|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 16 bit|ANY16_S 2092 + 2093 +**Device used** 2094 + 2095 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 2096 +**Pulse** 2097 + 2098 +**extension** 2099 +))) 2100 +|**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** 2101 +|(% rowspan="3" %)SCL2|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|● 2102 +|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|● 2103 +|Parameter 3| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|● 2104 + 2105 +**Features** 2106 + 2107 +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). 2108 + 2109 +|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation** 2110 +|(% colspan="2" %)Coordinate points|(s2) 2111 +|(% rowspan="4" %)X coordinate|Point 1|(s2)+1 2112 +|Point 2|(s2)+2 2113 +|.....|...... 2114 +|Point n|(s2)+n 2115 +|(% rowspan="4" %)Y coordinate|Point 1|(s2)+n+1 2116 +|Point 2|(s2)+n+2 2117 +|.....|..... 2118 +|Point n|(s2)+2n 2119 + 2120 +[[image:07-5 Basic instructions_html_80185ccddb878234.png]] 2121 + 2122 +• If the operation result is not an integer value, round the first digit below the decimal point. 2123 + 2124 +• The X coordinate data of the conversion data for scaling should be set in ascending order. 2125 + 2126 +• For (s1), set within the range of the conversion data for scaling ((s2), (s2) + 1 device value). 2127 + 2128 +• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output. 2129 + 2130 +• Set the number of coordinate points of conversion data for scaling within the range of 1 to 32,767. 2131 + 2132 +• Setting example of conversion table for scaling. 2133 + 2134 +In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet. 2135 + 2136 +[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]] 2137 + 2138 +|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Set device and content**|(% rowspan="2" %)**Remarks** 2139 +|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content** 2140 +|(% colspan="2" %)Coordinate points|(s2)|R0|K10| 2141 +|(% rowspan="10" %)X coordinate|Point 1|(s2)+1|R1|K5| 2142 +|Point 2|(s2)+2|R2|K20| 2143 +|Point 3|(s2)+3|R3|K50| 2144 +|Point 4|(s2)+4|R4|K200|(% rowspan="3" %)Refer to** ✎1** 2145 +|Point 5|(s2)+5|R5|K200 2146 +|Point 6|(s2)+6|R6|K200 2147 +|Point 7|(s2)+7|R7|K250| 2148 +|Point 8|(s2)+8|R8|K350|(% rowspan="2" %)Refer to** ✎2** 2149 +|Point 9|(s2)+9|R9|K350 2150 +|Point 10|(s2)+10|R10|K400| 2151 +|(% rowspan="10" %)Y coordinate|Point 1|(s2)+11|R11|K7| 2152 +|Point 2|(s2)+12|R12|K30| 2153 +|Point 3|(s2)+13|R13|K100| 2154 +|Point 4|(s2)+14|R14|K25|(% rowspan="3" %)Refer to**✎1** 2155 +|Point 5|(s2)+15|R15|K70 2156 +|Point 6|(s2)+16|R16|K250 2157 +|Point 7|(s2)+17|R17|K90| 2158 +|Point 8|(s2)+18|R18|K90|(% rowspan="2" %)Refer to** ✎2** 2159 +|Point 9|(s2)+19|R19|K30 2160 +|Point 10|(s2)+20|R20|K7| 2161 + 2162 +✎**1** Like points 4, 5, and 6, if the coordinates are specified by 3 points, the intermediate value could be the output value. 2163 + 2164 +In this example, the output value (median value) is specified by the Y coordinate of point 5. 2165 + 2166 +When the X coordinate is the same at 3 or more points, the value of the second point is also output. 2167 + 2168 +✎**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. 2169 + 2170 +In this example, the output value is specified by the Y coordinate of point 9. 2171 + 2172 +**Error code** 2173 + 2174 +|**Error code**|**Content** 2175 +|4085H|When the specified device range for reading exceeds the range of the corresponding device. 2176 +|4086H|When the specified device range for writing exceeds the range of the corresponding device. 2177 +|4084H|((( 2178 +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; 2179 + 2180 +When the input value specified in (s1) exceeds the range of the set scale conversion data; 2181 + 2182 +When the number of start coordinate points of device (s2) is less than 0. 2183 +))) 2184 + 2185 +**Example** 2186 + 2187 +[[image:07-5 Basic instructions_html_ace075fb7675de8e.gif]] [[image:07-5 Basic instructions_html_de529c9a16a62ef0.png]] 2188 + 2189 +When -100 ≤D0 (X) < 0, D100(Y)= 2190 + 2191 +[[image:07-5 Basic instructions_html_9acd6306c6d91847.gif]] when D0(X)=0, D100(Y)=0; 2192 + 2193 +when 0 < D0(X) ≤ 100, D100(Y)= 2194 + 2195 +[[image:07-5 Basic instructions_html_a5b19d1af74a9620.png]] 2196 + 2197 +{{id name="_Toc5608"/}}{{id name="_Toc1756"/}}{{id name="_Toc21402"/}}**DSCL2/BIN 32-bit unit scale (X/Y coordinate data)** 2198 + 2199 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DSCL2(P)** 2200 + 2201 +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). 2202 + 2203 +-[DSCL2 (s1) (s2) (d)] 2204 + 2205 +**Content, range and data type** 2206 + 2207 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 2208 +|(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 2209 +|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 32 bit|ANY32_S 2210 +|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 32 bit|ANY32_S 2211 + 2212 +**Device used** 2213 + 2214 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 2215 +**Pulse** 2216 + 2217 +**extension** 2218 +))) 2219 +|**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** 2220 +|(% rowspan="3" %)DSCL2|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|● 2221 +|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|● 2222 +|Parameter 3| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●|● 2223 + 2224 +**Features** 2225 + 2226 +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). 2227 + 2228 +|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation** 2229 +|(% colspan="2" %)Coordinate points|(s2)+1, (s2) 2230 +|(% rowspan="4" %)X coordinate|Point 1|(s2)+3, (s2)+2 2231 +|Point 2|(s2)+5, (s2)+4 2232 +|.....|...... 2233 +|Point n|(s2)+2n+1, (s2)+2n 2234 +|(% rowspan="4" %)Y coordinate|Point 1|(s2)+2n+3, (s2)+2n+2 2235 +|Point 2|(s2)+2n+5, (s2)+2n+4 2236 +|.....|..... 2237 +|Point n|(s2)+4n+1, (s2)+4n 2238 + 2239 +[[image:07-5 Basic instructions_html_6633ca18cee1218c.png]] 2240 + 2241 +• If the operation result is not an integer value, round the first digit below the decimal point. 2242 + 2243 +• The X coordinate data of the conversion data for scaling should be set in ascending order. 2244 + 2245 +• For (s1), set within the range of the conversion data for scaling ((s2), (s2) + 1 device value). 2246 + 2247 +• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output. 2248 + 2249 +• Set the number of coordinate points of conversion data for scaling within the range of 1 to 2,147,483,647. 2250 + 2251 +• Setting example of conversion table for scaling. 2252 + 2253 +In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet. 2254 + 2255 +[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]] 2256 + 2257 +|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Set device and content**|(% rowspan="2" %)**Remarks** 2258 +|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content** 2259 +|(% colspan="2" %)Coordinate points|(s2)+1, (s2)|R1, R0|K10| 2260 +|(% rowspan="10" %)X|Point 1|(s2)+3, (s2)+2|R3, R2|K5| 2261 +|Point 2|(s2)+5, (s2)+4|R5, R4|K20| 2262 +|Point 3|(s2)+7, (s2)+6|R7, R6|K50| 2263 +|Point 4|(s2)+9, (s2)+8|R9, R8|K200|(% rowspan="3" %)Refer to** ✎1** 2264 +|Point 5|(s2)+11, (s2)+10|R10, R11|K200 2265 +|Point 6|(s2)+13, (s2)+12|R13, R12|K200 2266 +|Point 7|(s2)+15, (s2)+14|R15, R14|K250| 2267 +|Point 8|(s2)+17, (s2)+16|R17, R16|K350|(% rowspan="2" %)Refer to** ✎2** 2268 +|Point 9|(s2)+19, (s2)+18|R19, R18|K350 2269 +|Point 10|(s2)+21, (s2)+20|R21, R20|K400| 2270 +|(% rowspan="10" %)Y coordinate|Point 1|(s2)+23, (s2)+22|R23, R22|K7| 2271 +|Point 2|(s2)+25, (s2)+24|R25, R24|K30| 2272 +|Point 3|(s2)+27, (s2)+26|R27, R26|K100| 2273 +|Point 4|(s2)+29, (s2)+28|R29, R28|K25|(% rowspan="3" %)Refer to** ✎1** 2274 +|Point 5|(s2)+31, (s2)+30|R31, R30|K70 2275 +|Point 6|(s2)+33, (s2)+32|R33, R32|K250 2276 +|Point 7|(s2)+35, (s2)+34|R35, R34|K90| 2277 +|Point 8|(s2)+37, (s2)+36|R37, R36|K90|(% rowspan="2" %)Refer to** ✎2** 2278 +|Point 9|(s2)+39, (s2)+38|R39, R38|K30 2279 +|Point 10|(s2)+41, (s2)+40|R41, R40|K7| 2280 + 2281 +✎**1** Like points 4, 5, and 6, if the coordinates are specified by 3 points, the intermediate value could be the output value. 2282 + 2283 +In this example, the output value (median value) is specified by the Y coordinate of point 5. 2284 + 2285 +When the X coordinate is the same at 3 or more points, the value of the second point is also output. 2286 + 2287 +✎**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. 2288 + 2289 +In this example, the output value is specified by the Y coordinate of point 9. 2290 + 2291 +**Error code** 2292 + 2293 +|**Error code**|**Content** 2294 +|4085H|When the specified device range for reading exceeds the range of the corresponding device. 2295 +|4086H|When the specified device range for writing exceeds the range of the corresponding device. 2296 +|4084H|((( 2297 +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; 2298 + 2299 +When the input value specified in (s1) exceeds the range of the set scale conversion data; 2300 + 2301 +When the number of start coordinate points of device (s2) is less than 0. 2302 +))) 2303 + 2304 +**Example** 2305 + 2306 +[[image:07-5 Basic instructions_html_91dbc16faa9d2ec3.png]] 2307 + 2308 +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]] ,,; 2309 + 2310 +when D0(X)=0, D100(Y)=0; 2311 + 2312 +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]] ,,. 2313 + 2314 +[[image:07-5 Basic instructions_html_a5b19d1af74a9620.png]] 2315 + 2316 +{{id name="_Toc32057"/}}{{id name="_Toc9941"/}}{{id name="_Toc6492"/}}**ZONE/BIN 16-bit data zone control** 2317 + 2318 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **ZONE(P)** 2319 + 2320 +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). 2321 + 2322 +-[ZONE (s1) (s2) (s3) (d)] 2323 + 2324 +**Content, range and data type** 2325 + 2326 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 2327 +|s1|The negative offset value for addition in the input value|-32,768 to 32,767|BIN16 bit|ANY16_S 2328 +|s2|The positive offset value for addition in the input value|-32,768 to 32,767|BIN16 bit|ANY16_S 2329 +|s3|Input value for zone control`|-32,768 to 32,767|BIN16 bit|ANY16_S 2330 +|d|The start number of the device storing the output value controlled by zone control|-|BIN16 bit|ANY16_S 2331 + 2332 +**Device used** 2333 + 2334 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 2335 +**Pulse** 2336 + 2337 +**extension** 2338 +))) 2339 +|**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** 2340 +|(% rowspan="4" %)ZONE|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|● 2341 +|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|● 2342 +|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|● 2343 +|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|● 2344 + 2345 +**Features** 2346 + 2347 +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. 2348 + 2349 +|**Condition**|**The value stored in the output value** 2350 +|When input value (s3)<0|Input value (s3) + negative offset value (s1) 2351 +|When input value (s3)=0|0 2352 +|When input value (s3)>0|Input value (s3) + positive offset value (s2) 2353 + 2354 + 2355 +((( 2356 +• 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. 2357 + 2358 +For example, when (s1) is -100 and (s3) is -32,768, 2359 + 2360 +the output value = -32768+(-100)=8000H-FF9CH=7F9CH=32668. 2361 + 2362 +[[image:07-5 Basic instructions_html_a2adbf9ccf8f839.png]] 2363 + 2364 + 2365 + 2366 +))) 2367 + 2368 +**Error code** 2369 + 2370 +|**Error code**|**Content** 2371 +|4085H|When the specified device range for reading exceeds the range of the corresponding device 2372 +|4086H|When the specified device range for writing exceeds the range of the corresponding device 2373 + 2374 +**Example** 2375 + 2376 +[[image:07-5 Basic instructions_html_5da523c7765bf5be.png]] 2377 + 2378 +When X000 is ON 2379 + 2380 +• When D0<0, the value of (D0)+(-1,000) is stored in D1. 2381 + 2382 +• When D0=0, 0 is stored in D1. 2383 + 2384 +• When 0<D0, the value of (D0)+(1,000) is stored in D1. 2385 + 2386 +{{id name="_Toc28351"/}}{{id name="_Toc11023"/}}{{id name="_Toc30269"/}}**DZONE/BIN 32-bit data zone control** 2387 + 2388 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] DZONE(P) 2389 + 2390 +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). 2391 + 2392 +-[DZONE (s1) (s2) (s3) (d)] 2393 + 2394 +**Content, range and data type** 2395 + 2396 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 2397 +|(s1)|The negative offset value for addition in the input value|-2147483648 to 2147483647|BIN32 bit|ANY32_S 2398 +|(s2)|The positive offset value for addition in the input value|-2147483648 to 2147483647|BIN32 bit|ANY32_S 2399 +|(s3)|Input value for zone control|-2147483648 to 2147483647|BIN32 bit|ANY32_S 2400 +|(d)|The start number of the device storing the output value controlled by zone control|-|BIN32 bit|ANY32_S 2401 + 2402 +**Device used** 2403 + 2404 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 2405 +**Pulse** 2406 + 2407 +**extension** 2408 +))) 2409 +|**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** 2410 +|(% rowspan="4" %)DZONE|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|● 2411 +|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|● 2412 +|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●| | | |●|● 2413 +|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●|● 2414 + 2415 +**Features** 2416 + 2417 +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. 2418 + 2419 +|**Condition**|**The value stored in the output value** 2420 +|When input value ((s3), (s3)+1)<0|Input value ((s3), (s3)+1) + negative offset value (s1), (s1)+1 2421 +|When input value ((s3), (s3)+1)=0|0 2422 +|When input value ((s3), (s3)+1)>0|Input value ((s3), (s3)+1) + positive offset value (s2), (s2)+1 2423 + 2424 + 2425 +((( 2426 +• 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. 2427 + 2428 +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. 2429 + 2430 +[[image:07-5 Basic instructions_html_2f3a96a2565c75c7.png]] 2431 +))) 2432 + 2433 +**Error code** 2434 + 2435 +|**Error code**|**Content** 2436 +|4085H|When the specified device range for reading exceeds the range of the corresponding device 2437 +|4086H|When the specified device range for writing exceeds the range of the corresponding device 2438 + 2439 +**Example** 2440 + 2441 +[[image:07-5 Basic instructions_html_b831b14748df07ab.png]] 2442 + 2443 +• When (D1, D0)<0, the value of (D1, D0)+(-10,000) is stored in (D11, D10). 2444 + 2445 +• When (D1, D0)=0, 0 is stored in (D11, D10). 2446 + 2447 +• When 0<(D1, D0), the value of (D1, D0)+10,000 is stored in (D11, D10).