Changes for page 06 High-speed counter
Last modified by Mora Zhou on 2023/11/21 14:33
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. admin1 +XWiki.Stone - Content
-
... ... @@ -7,7 +7,7 @@ 7 7 The counting method of single-phase input counter (S/W) is as follows: 8 8 9 9 (% style="text-align:center" %) 10 -[[image:06_html_1e47cfe250daeab9.gif|| class="img-thumbnail" height="295" width="800"]]10 +[[image:06_html_1e47cfe250daeab9.gif||height="295" width="800" class="img-thumbnail"]] 11 11 12 12 **(2) AB phase input counter [1 times frequency]** 13 13 ... ... @@ -21,11 +21,11 @@ 21 21 When counting up When counting down 22 22 23 23 (% style="text-align:center" %) 24 -[[image:06_html_ac46591380ef206a.png|| class="img-thumbnail" height="246" width="600"]]24 +[[image:06_html_ac46591380ef206a.png||height="246" width="600" class="img-thumbnail"]] 25 25 26 26 27 27 (% style="text-align:center" %) 28 -[[image:06_html_c364a1bf3d1a365c.png|| class="img-thumbnail" height="229" width="600"]]28 +[[image:06_html_c364a1bf3d1a365c.png||height="229" width="600" class="img-thumbnail"]] 29 29 30 30 **(3) AB phase input counter [2 times frequency]** 31 31 ... ... @@ -47,11 +47,11 @@ 47 47 When counting up When counting down 48 48 49 49 (% style="text-align:center" %) 50 -[[image:06_html_3e8bfd2357550970.png|| class="img-thumbnail" height="248" width="600"]]50 +[[image:06_html_3e8bfd2357550970.png||height="248" width="600" class="img-thumbnail"]] 51 51 52 52 53 53 (% style="text-align:center" %) 54 -[[image:06_html_419030bdafb27bdd.png|| class="img-thumbnail" height="243" width="600"]]54 +[[image:06_html_419030bdafb27bdd.png||height="243" width="600" class="img-thumbnail"]] 55 55 56 56 **(4) AB phase input counter [4 times frequency]** 57 57 ... ... @@ -85,7 +85,7 @@ 85 85 86 86 87 87 (% style="text-align:center" %) 88 -[[image:06_html_418c9dc9a21844f8.png|| class="img-thumbnail" height="289" width="600"]]88 +[[image:06_html_418c9dc9a21844f8.png||height="289" width="600" class="img-thumbnail"]] 89 89 90 90 == {{id name="_Toc2131"/}}**Highest frequency** == 91 91 ... ... @@ -100,7 +100,7 @@ 100 100 101 101 Counting range: -2147483648 to 2147483647, which is a signed 32-bit ring counter.{{id name="_Toc14212"/}}{{id name="_Toc30428"/}}{{id name="_Toc9824"/}} 102 102 103 -**{{id name="_Toc13801"/}}High-speed counter allocation** 103 +== **{{id name="_Toc13801"/}}High-speed counter allocation** == 104 104 105 105 The input soft components of various types of high-speed counters are fixedly allocated, including 8 channels HSC0 to HSC7. 106 106 ... ... @@ -144,41 +144,41 @@ 144 144 145 145 ((( 146 146 (% class="table-bordered" %) 147 -|**Parameter**|(% style="width:2 75px" %)**Range**|(% style="width:873px" %)**Instruction**|(% style="width:193px" %)**Defaults**148 -|Use or not|(% style="width:2 75px" %)Use/not use|(% style="width:873px" %)Set whether to use the counter.|(% style="width:193px" %)Unused149 -|((( 147 +|(% style="width:161px" %)**Parameter**|(% style="width:210px" %)**Range**|(% style="width:486px" %)**Instruction**|(% style="width:218px" %)**Defaults** 148 +|(% style="width:161px" %)Use or not|(% style="width:210px" %)Use/not use|(% style="width:486px" %)Set whether to use the counter.|(% style="width:218px" %)Unused 149 +|(% style="width:161px" %)((( 150 150 Pulse input 151 151 152 152 mode 153 -)))|(% style="width:2 75px" %)(((153 +)))|(% style="width:210px" %)((( 154 154 Single phase input 155 155 156 156 AB phase input 157 -)))|(% style="width:8 73px" %)Choose to use single phase input or AB phase input|(% style="width:193px" %)Single phase input158 -|Counting direction|(% style="width:2 75px" %)Up counting mode down counting mode|(% style="width:873px" %)Select up/down counting mode, valid only when single-phase input|(% style="width:193px" %)Up counting mode159 -|Frequency multiplication|(% style="width:2 75px" %)(((157 +)))|(% style="width:486px" %)Choose to use single phase input or AB phase input|(% style="width:218px" %)Single phase input 158 +|(% style="width:161px" %)Counting direction|(% style="width:210px" %)Up counting mode down counting mode|(% style="width:486px" %)Select up/down counting mode, valid only when single-phase input|(% style="width:218px" %)Up counting mode 159 +|(% style="width:161px" %)Frequency multiplication|(% style="width:210px" %)((( 160 160 One times frequency 161 161 162 162 two times frequency 163 163 164 164 four times frequency 165 -)))|(% style="width:8 73px" %)Select input count multiplier, only valid when AB phase input|(% style="width:193px" %)One times frequency166 -|Input frequency test time (ms)|(% style="width:2 75px" %)1 to 32767(ms)|(% style="width:873px" %)Set how often the input frequency is measured at the interval. The shorter the set time, the less accurate the frequency. The frequency measurement result is output in the special register SD. For details, see the description of the SD high-speed counter in the special register.|(% style="width:193px" %)1000ms167 -|Filter time|(% style="width:2 75px" %)0 to 1700(0.01us)|(% style="width:873px" %)(((165 +)))|(% style="width:486px" %)Select input count multiplier, only valid when AB phase input|(% style="width:218px" %)One times frequency 166 +|(% style="width:161px" %)Input frequency test time (ms)|(% style="width:210px" %)1 to 32767(ms)|(% style="width:486px" %)Set how often the input frequency is measured at the interval. The shorter the set time, the less accurate the frequency. The frequency measurement result is output in the special register SD. For details, see the description of the SD high-speed counter in the special register.|(% style="width:218px" %)1000ms 167 +|(% style="width:161px" %)Filter time|(% style="width:210px" %)0 to 1700(0.01us)|(% style="width:486px" %)((( 168 168 Set the X point of this channel as the filter time for high-speed input. The smaller the filter setting, the more accurate the theoretical count, but the anti-interference ability will be reduced (the filter time is only valid for unidirectional input). 169 169 170 170 When the input is 0, it is the lowest filter time supported by the system. 171 -)))|(% style="width:1 93px" %)1172 -|Highest frequency|(% style="width:2 75px" %)(((171 +)))|(% style="width:218px" %)1 172 +|(% style="width:161px" %)Highest frequency|(% style="width:210px" %)((( 173 173 Single phase input: 150K 174 174 175 175 AB phase input: 100K 176 -)))|(% style="width:8 73px" %)Display the highest input frequency that each channel can reach, read only|(% style="width:193px" %)177 -|Occupy X points|(% style="width:2 75px" %)-|(% style="width:873px" %)Show which X points are occupied after using the channel, read only|(% style="width:193px" %)178 -|Check button|(% style="width:2 75px" %) |(% style="width:873px" %)Check whether the configured X input point is reused, it is recommended to click check when setting is completed, and then confirm the input|(% style="width:193px" %)179 -|Restore to default|(% style="width:2 75px" %) |(% style="width:873px" %)Restore to the same default settings as above|(% style="width:193px" %)180 -|Input (X) description|(% style="width:2 75px" %) |(% style="width:873px" %)Pop up the description table of all modes of each channel occupying X|(% style="width:193px" %)181 -|Confirm input|(% style="width:2 75px" %) |(% style="width:873px" %)After the configuration is complete, click to confirm the input to save the configuration and take effect|(% style="width:193px" %)176 +)))|(% style="width:486px" %)Display the highest input frequency that each channel can reach, read only|(% style="width:218px" %) 177 +|(% style="width:161px" %)Occupy X points|(% style="width:210px" %)-|(% style="width:486px" %)Show which X points are occupied after using the channel, read only|(% style="width:218px" %) 178 +|(% style="width:161px" %)Check button|(% style="width:210px" %) |(% style="width:486px" %)Check whether the configured X input point is reused, it is recommended to click check when setting is completed, and then confirm the input|(% style="width:218px" %) 179 +|(% style="width:161px" %)Restore to default|(% style="width:210px" %) |(% style="width:486px" %)Restore to the same default settings as above|(% style="width:218px" %) 180 +|(% style="width:161px" %)Input (X) description|(% style="width:210px" %) |(% style="width:486px" %)Pop up the description table of all modes of each channel occupying X|(% style="width:218px" %) 181 +|(% style="width:161px" %)Confirm input|(% style="width:210px" %) |(% style="width:486px" %)After the configuration is complete, click to confirm the input to save the configuration and take effect|(% style="width:218px" %) 182 182 ))) 183 183 184 184 **(3) Configuration example** ... ... @@ -268,23 +268,23 @@ 268 268 **Content, range and data type** 269 269 270 270 (% class="table-bordered" %) 271 -|**Parameter**|(% style="width: 814px" %)**Content**|(% style="width:239px" %)**Range**|(% style="width:195px" %)**Data type**|**Data type (label)**272 -|(s1)|(% style="width: 814px" %)The data compared with the current value of the high-speed counter, or the word device number where the data to be compared is stored|(% style="width:239px" %)-2147483648 to +2147483647|(% style="width:195px" %)Signed BIN 32 bit|ANY32273 -|(s2)|(% style="width: 814px" %)High-speed counter device|(% style="width:239px" %)HSC0 to HSC7|(% style="width:195px" %)Signed BIN 32 bit|ANY32274 -|(d)|(% style="width: 814px" %)Bit device number set (ON) when they match|(% style="width:239px" %) |(% style="width:195px" %)Bit|ANY_BOOL271 +|**Parameter**|(% style="width:572px" %)**Content**|(% style="width:168px" %)**Range**|(% style="width:180px" %)**Data type**|**Data type (label)** 272 +|(s1)|(% style="width:572px" %)The data compared with the current value of the high-speed counter, or the word device number where the data to be compared is stored|(% style="width:168px" %)-2147483648 to +2147483647|(% style="width:180px" %)Signed BIN 32 bit|ANY32 273 +|(s2)|(% style="width:572px" %)High-speed counter device|(% style="width:168px" %)HSC0 to HSC7|(% style="width:180px" %)Signed BIN 32 bit|ANY32 274 +|(d)|(% style="width:572px" %)Bit device number set (ON) when they match|(% style="width:168px" %) |(% style="width:180px" %)Bit|ANY_BOOL 275 275 276 276 **Device used** 277 277 278 278 (% class="table-bordered" %) 279 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="16" %)**Devices**|**Offset modification**|((( 279 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" style="width:124px" %)**Parameter**|(% colspan="16" style="width:640px" %)**Devices**|(% style="width:133px" %)**Offset modification**|((( 280 280 **Pulse** 281 281 282 282 **extension** 283 283 ))) 284 -|**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 285 -|(% rowspan="3" %)DHSCS|Parameter 1| | | | | |●|●|●|●|●|●|●|●|●|●|●|●| 286 -|Parameter 2| | | | | | | | | | | | | |●| | | | 287 -|Parameter 3|●|●|●|●|●| | | | | | | | | | | | | 284 +|(% style="width:7px" %)**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|(% style="width:46px" %)**H**|(% style="width:133px" %)**[D]**|**XXP** 285 +|(% rowspan="3" %)DHSCS|(% style="width:124px" %)Parameter 1|(% style="width:7px" %) | | | | |●|●|●|●|●|●|●|●|●|●|(% style="width:46px" %)●|(% style="width:133px" %)●| 286 +|(% style="width:124px" %)Parameter 2|(% style="width:7px" %) | | | | | | | | | | | | |●| |(% style="width:46px" %) |(% style="width:133px" %) | 287 +|(% style="width:124px" %)Parameter 3|(% style="width:7px" %)●|●|●|●|●| | | | | | | | | | |(% style="width:46px" %) |(% style="width:133px" %) | 288 288 289 289 **Features** 290 290 ... ... @@ -341,23 +341,23 @@ 341 341 **Content, range and data type** 342 342 343 343 (% class="table-bordered" %) 344 -|**Parameter**|(% style="width: 812px" %)**Content**|(% style="width:256px" %)**Range**|(% style="width:179px" %)**Data type**|**Data type (label)**345 -|(s1)|(% style="width: 812px" %)The data compared with the current value of the high-speed counter, or the word device number where the data to be compared is stored|(% style="width:256px" %)-2147483648 to 2147483647|(% style="width:179px" %)Signed BIN 32 bit|ANY32346 -|(s2)|(% style="width: 812px" %)High-speed counter device|(% style="width:256px" %)HSC0 to HSC7|(% style="width:179px" %)Signed BIN 32 bit|ANY32347 -|(d)|(% style="width: 812px" %)Bit device number reset (OFF) when they match|(% style="width:256px" %) |(% style="width:179px" %)Bit|ANY_BOOL344 +|**Parameter**|(% style="width:541px" %)**Content**|(% style="width:190px" %)**Range**|(% style="width:168px" %)**Data type**|**Data type (label)** 345 +|(s1)|(% style="width:541px" %)The data compared with the current value of the high-speed counter, or the word device number where the data to be compared is stored|(% style="width:190px" %)-2147483648 to 2147483647|(% style="width:168px" %)Signed BIN 32 bit|ANY32 346 +|(s2)|(% style="width:541px" %)High-speed counter device|(% style="width:190px" %)HSC0 to HSC7|(% style="width:168px" %)Signed BIN 32 bit|ANY32 347 +|(d)|(% style="width:541px" %)Bit device number reset (OFF) when they match|(% style="width:190px" %) |(% style="width:168px" %)Bit|ANY_BOOL 348 348 349 349 **Device used** 350 350 351 351 (% class="table-bordered" %) 352 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="16" %)**Devices**|**Offset modification**|((( 352 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" style="width:128px" %)**Parameter**|(% colspan="16" style="width:646px" %)**Devices**|(% style="width:122px" %)**Offset modification**|((( 353 353 **Pulse** 354 354 355 355 **extension** 356 356 ))) 357 -|**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 358 -|(% rowspan="3" %)DHSCR|Parameter 1| | | | | |●|●|●|●|●|●|●|●|●|●|●|●| 359 -|Parameter 2| | | | | | | | | | | | | |●| | | | 360 -|Parameter 3|●|●|●|●|●| | | | | | | | | | | | | 357 +|(% style="width:3px" %)**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|(% style="width:56px" %)**H**|(% style="width:122px" %)**[D]**|**XXP** 358 +|(% rowspan="3" %)DHSCR|(% style="width:128px" %)Parameter 1|(% style="width:3px" %) | | | | |●|●|●|●|●|●|●|●|●|●|(% style="width:56px" %)●|(% style="width:122px" %)●| 359 +|(% style="width:128px" %)Parameter 2|(% style="width:3px" %) | | | | | | | | | | | | |●| |(% style="width:56px" %) |(% style="width:122px" %) | 360 +|(% style="width:128px" %)Parameter 3|(% style="width:3px" %)●|●|●|●|●| | | | | | | | | | |(% style="width:56px" %) |(% style="width:122px" %) | 361 361 362 362 **Features** 363 363 ... ... @@ -405,11 +405,11 @@ 405 405 **Content, range and data type** 406 406 407 407 (% class="table-bordered" %) 408 -|**Parameter**|(% style="width: 830px" %)**Content**|(% style="width:239px" %)**Range**|(% style="width:156px" %)**Data type**|**Data type (label)**409 -|(s1)|(% style="width: 830px" %)The data compared with the current value of the high-speed counter, or the word device number (comparison value 1) where the data to be compared is stored|(% style="width:239px" %)-2147483648 to 2147483647|(% style="width:156px" %)Signed BIN 32 bit|ANY32410 -|(s2)|(% style="width: 830px" %)The data compared with the current value of the high-speed counter, or the word device number (comparison value 2) where the data to be compared is stored|(% style="width:239px" %)-2147483648 to 2147483647|(% style="width:156px" %)Signed BIN 32 bit|ANY32411 -|(s2)|(% style="width: 830px" %)High-speed counter device|(% style="width:239px" %)HSC0 to HSC7|(% style="width:156px" %)Signed BIN 32 bit|ANY32412 -|(d)|(% style="width: 830px" %)The device number of the start bit of the comparison result output in comparison value 1 and comparison value 2|(% style="width:239px" %) |(% style="width:156px" %)Bit|(((408 +|**Parameter**|(% style="width:523px" %)**Content**|(% style="width:150px" %)**Range**|(% style="width:195px" %)**Data type**|**Data type (label)** 409 +|(s1)|(% style="width:523px" %)The data compared with the current value of the high-speed counter, or the word device number (comparison value 1) where the data to be compared is stored|(% style="width:150px" %)-2147483648 to 2147483647|(% style="width:195px" %)Signed BIN 32 bit|ANY32 410 +|(s2)|(% style="width:523px" %)The data compared with the current value of the high-speed counter, or the word device number (comparison value 2) where the data to be compared is stored|(% style="width:150px" %)-2147483648 to 2147483647|(% style="width:195px" %)Signed BIN 32 bit|ANY32 411 +|(s2)|(% style="width:523px" %)High-speed counter device|(% style="width:150px" %)HSC0 to HSC7|(% style="width:195px" %)Signed BIN 32 bit|ANY32 412 +|(d)|(% style="width:523px" %)The device number of the start bit of the comparison result output in comparison value 1 and comparison value 2|(% style="width:150px" %) |(% style="width:195px" %)Bit|((( 413 413 ANYBIT_ARRAY 414 414 415 415 (number of elements: 3) ... ... @@ -418,16 +418,16 @@ 418 418 **Device used** 419 419 420 420 (% class="table-bordered" %) 421 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="16" %)**Devices**|**Offset modification**|((( 421 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" style="width:135px" %)**Parameter**|(% colspan="16" style="width:642px" %)**Devices**|(% style="width:124px" %)**Offset modification**|((( 422 422 **Pulse** 423 423 424 424 **extension** 425 425 ))) 426 -|**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 427 -|(% rowspan="4" %)DHSCZ|Parameter 1| | | | | |●|●|●|●|●|●|●|●|●|●|●|●| 428 -|Parameter 2| | | | | |●|●|●|●|●|●|●|●|●|●|●|●| 429 -|Parameter 3| | | | | | | | | | | | | |●| | | | 430 -|Parameter 4|●|●|●|●|●| | | | | | | | | | | | | 426 +|(% style="width:21px" %)**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|(% style="width:54px" %)**H**|(% style="width:124px" %)**[D]**|**XXP** 427 +|(% rowspan="4" %)DHSCZ|(% style="width:135px" %)Parameter 1|(% style="width:21px" %) | | | | |●|●|●|●|●|●|●|●|●|●|(% style="width:54px" %)●|(% style="width:124px" %)●| 428 +|(% style="width:135px" %)Parameter 2|(% style="width:21px" %) | | | | |●|●|●|●|●|●|●|●|●|●|(% style="width:54px" %)●|(% style="width:124px" %)●| 429 +|(% style="width:135px" %)Parameter 3|(% style="width:21px" %) | | | | | | | | | | | | |●| |(% style="width:54px" %) |(% style="width:124px" %) | 430 +|(% style="width:135px" %)Parameter 4|(% style="width:21px" %)●|●|●|●|●| | | | | | | | | | |(% style="width:54px" %) |(% style="width:124px" %) | 431 431 432 432 **Features** 433 433 ... ... @@ -471,16 +471,16 @@ 471 471 Execution results 472 472 473 473 (% class="table-bordered" %) 474 -|(% rowspan="2" %)**Comparison mode**|(% rowspan="2" %)**Current value of channel 1 (s3)**|(% colspan="3" %)**Change of output contact (Y)** 475 -|**Y0**|**Y1**|**Y3** 476 -|(% rowspan="3" %)(S1)>(s3)|1000>(s3)|ON|OFF|OFF 477 -|999→1000|ON→OFF|OFF→ON|OFF 478 -|1000→999|OFF→ON|ON→OFF|OFF 479 -|(% rowspan="5" %)(S1)≤(s3)≤(s2)|999→1000|ON→OFF|OFF→ON|OFF 480 -|1000→999|OFF→ON|ON→OFF|OFF 481 -|1000≤(s3)≤2000|OFF|ON|OFF 482 -|2000→2001|OFF|ON→OFF|OFF→ON 483 -|2001→2000|OFF|OFF→ON|ON→OFF 484 -|(% rowspan="3" %)(S3)>(s2)|2000→2001|OFF|ON→OFF|OFF→ON 485 -|2001→2000|OFF|OFF→ON|ON→OFF 486 -|(S3)>2000|OFF|OFF|ON 474 +|(% rowspan="2" style="width:219px" %)**Comparison mode**|(% rowspan="2" style="width:394px" %)**Current value of channel 1 (s3)**|(% colspan="3" style="width:463px" %)**Change of output contact (Y)** 475 +|(% style="width:162px" %)**Y0**|(% style="width:157px" %)**Y1**|**Y3** 476 +|(% rowspan="3" style="width:219px" %)(S1)>(s3)|(% style="width:394px" %)1000>(s3)|(% style="width:162px" %)ON|(% style="width:157px" %)OFF|OFF 477 +|(% style="width:394px" %)999→1000|(% style="width:162px" %)ON→OFF|(% style="width:157px" %)OFF→ON|OFF 478 +|(% style="width:394px" %)1000→999|(% style="width:162px" %)OFF→ON|(% style="width:157px" %)ON→OFF|OFF 479 +|(% rowspan="5" style="width:219px" %)(S1)≤(s3)≤(s2)|(% style="width:394px" %)999→1000|(% style="width:162px" %)ON→OFF|(% style="width:157px" %)OFF→ON|OFF 480 +|(% style="width:394px" %)1000→999|(% style="width:162px" %)OFF→ON|(% style="width:157px" %)ON→OFF|OFF 481 +|(% style="width:394px" %)1000≤(s3)≤2000|(% style="width:162px" %)OFF|(% style="width:157px" %)ON|OFF 482 +|(% style="width:394px" %)2000→2001|(% style="width:162px" %)OFF|(% style="width:157px" %)ON→OFF|OFF→ON 483 +|(% style="width:394px" %)2001→2000|(% style="width:162px" %)OFF|(% style="width:157px" %)OFF→ON|ON→OFF 484 +|(% rowspan="3" style="width:219px" %)(S3)>(s2)|(% style="width:394px" %)2000→2001|(% style="width:162px" %)OFF|(% style="width:157px" %)ON→OFF|OFF→ON 485 +|(% style="width:394px" %)2001→2000|(% style="width:162px" %)OFF|(% style="width:157px" %)OFF→ON|ON→OFF 486 +|(% style="width:394px" %)(S3)>2000|(% style="width:162px" %)OFF|(% style="width:157px" %)OFF|ON