Changes for page 12 Clock operation
Last modified by Mora Zhou on 2023/11/21 17:27
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -412,35 +412,34 @@ 412 412 413 413 **Device used** 414 414 415 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="10" %)**Devices**|((( 416 -**Offset** 417 - 418 -**modification** 415 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="5" %)**Devices**|((( 416 +**Offset modification** 419 419 )))|((( 420 -**Pulse** 421 - 422 -**extension** 418 +**Pulse extension** 423 423 ))) 424 -|**T**|**C**|**D**|**R**|**SD**|** LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**425 -|(% rowspan="3" %)TADD|Parameter 1|●|●|●|●|●| | | | | |●|●426 -|Parameter 2|●|●|●|●|●| | | | | |●|●427 -|Parameter 3|●|●|●|●|●| | | | | |●|●420 +|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 421 +|(% rowspan="3" %)TADD|Parameter 1|●|●|●|●|●|●|● 422 +|Parameter 2|●|●|●|●|●|●|● 423 +|Parameter 3|●|●|●|●|●|●|● 428 428 429 429 **Features** 430 430 431 431 Add the time data specified in (s1) and the time data specified in (s2), and store the result of the addition in the device number specified in (d) or later. 432 432 433 -[[image:07-5 Basic instructions_html_37222a6e282347f9.png]] 429 +(% style="text-align:center" %) 430 +[[image:07-5 Basic instructions_html_37222a6e282347f9.png||height="79" width="750"]] 434 434 435 435 **Example** 436 436 437 437 When 6:32:40 and 7:48:10 are added together 438 438 439 -[[image:07-5 Basic instructions_html_90138670198ab422.png]] 436 +(% style="text-align:center" %) 437 +[[image:07-5 Basic instructions_html_90138670198ab422.png||height="94" width="750"]] 440 440 441 441 When the calculation result time exceeds 24 o'clock, the carry flag turns ON, and the value after 24 hours is subtracted becomes the calculation result. For example, when 14:20:30 and 20:20:20 are added, the result is not 34:40:50, but 10:40:50. 442 442 443 -[[image:07-5 Basic instructions_html_bac419ce2dc0dc2.png]] 441 +(% style="text-align:center" %) 442 +[[image:07-5 Basic instructions_html_bac419ce2dc0dc2.png||height="91" width="750"]] 444 444 445 445 When the calculation result is 0 (0 hour, 0 minute, 0 second), the zero flag turns on. 446 446 ... ... @@ -452,7 +452,7 @@ 452 452 |SM151|Carry|It is ON when the result of the TADD(P) instruction exceeds the maximum clock data value of 23:59:59 453 453 |SM153|Zero|It is ON when the result of the TADD(P) instruction is 0:00:00 454 454 455 -✎**Note** 454 +✎**Note:** 456 456 457 457 The devices specified in (s1), (s2), (d) occupy 3 points respectively. Be careful not to overlap with the device used for machine control. 458 458 ... ... @@ -461,7 +461,7 @@ 461 461 **Error code** 462 462 463 463 |**Error code**|**Content** 464 -|4085H| {{id name="OLE_LINK344"/}}When reading the specified device range exceeds the corresponding device range463 +|4085H|When reading the specified device range exceeds the corresponding device range 465 465 |4086H|When writing the specified device range exceeds the corresponding device range 466 466 |4084H|((( 467 467 When the values specified in (s1) and (s2) are other than 0 to 23 ... ... @@ -471,24 +471,26 @@ 471 471 472 472 **Example** 473 473 474 -[[image:07-5 Basic instructions_html_4f75eedee7172bbb.png]] 473 +(% style="text-align:center" %) 474 +[[image:07-5 Basic instructions_html_4f75eedee7172bbb.png||height="35" width="349"]] 475 475 476 476 Set D0 time to 16:30:00 and D10 time to 4:30:0 477 477 478 +(% style="text-align:center" %) 478 478 [[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]] 479 479 481 +(% style="text-align:center" %) 480 480 [[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]] 481 481 482 482 After the coil is turned on, the D20 time is 21:0:0 483 483 486 +(% style="text-align:center" %) 484 484 [[image:07-5 Basic instructions_html_a9b235835aa41200.png]] 485 485 489 +== **TSUB/The subtraction of clock data** == 486 486 491 +**TSUB(P)** 487 487 488 -{{id name="_Toc6604"/}}{{id name="_Toc16422"/}}**TSUB/The subtraction of clock data** 489 - 490 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TSUB(P)** 491 - 492 492 Subtract the time data stored after the device number specified in (s1) and the time data stored after the device number specified in (s2), and store the subtraction result in the device number specified in (d) or later . 493 493 494 494 -[TSUB (s1) (s2) (d)] ... ... @@ -514,24 +514,21 @@ 514 514 515 515 **Device used** 516 516 517 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 518 -**Offset** 519 - 520 -**modification** 518 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="5" %)**Devices**|((( 519 +**Offset modification** 521 521 )))|((( 522 -**Pulse** 523 - 524 -**extension** 521 +**Pulse extension** 525 525 ))) 526 -|** 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**527 -|(% rowspan="3" %)TSUB|Parameter 1| | | | | | | | | | | | | | |●|●|●|●|●|| | | | |●|●528 -|Parameter 2| | | | | | | | | | | | | | |●|●|●|●|●|| | | | |●|●529 -|Parameter 3| | | | | | | | | | | | | | |●|●|●|●|●|| | | | |●|●523 +|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 524 +|(% rowspan="3" %)TSUB|Parameter 1|●|●|●|●|●|●|● 525 +|Parameter 2|●|●|●|●|●|●|● 526 +|Parameter 3|●|●|●|●|●|●|● 530 530 531 531 **Features** 532 532 533 533 Subtract the time data specified in (s1) and the time data specified in (s2), and store the subtraction result in the device number specified in (d) or later. 534 534 532 +(% style="text-align:center" %) 535 535 [[image:07-5 Basic instructions_html_5a93455e4cd8a27.png]] 536 536 537 537 **Example** ... ... @@ -538,10 +538,12 @@ 538 538 539 539 When subtracting 10:40:20 and 3:50:10 540 540 539 +(% style="text-align:center" %) 541 541 [[image:07-5 Basic instructions_html_2473f03fc493780c.png]] 542 542 543 543 When the calculation result time is a negative number, the borrow flag turns on and the data +24 is the calculation result. For example, in the case of subtracting 4:50:32 and 10:42:12, the result is not -6:8:20, but 18:8:20. 544 544 544 +(% style="text-align:center" %) 545 545 [[image:07-5 Basic instructions_html_24b998b4c3c4ec73.png]] 546 546 547 547 When the calculation result is 0 (0 hour, 0 minute, 0 second), the zero flag turns on. ... ... @@ -552,7 +552,7 @@ 552 552 |SM152|Borrow|It is ON when the result of the TSUB(P) instruction is less than 0:00:00 553 553 |SM153|Zero|It is ON when the result of the TSUB(P) instruction is at the time of 0:00:00:00 554 554 555 -✎**Note** 555 +✎**Note:** 556 556 557 557 • The devices specified in (s1), (s2), and (d) occupy 3 points respectively. Be careful not to overlap with the device used for machine control. 558 558 ... ... @@ -571,19 +571,23 @@ 571 571 572 572 **Example** 573 573 574 -[[image:07-5 Basic instructions_html_e3a5d4793d3ccd2d.png]] 574 +(% style="text-align:center" %) 575 +[[image:07-5 Basic instructions_html_e3a5d4793d3ccd2d.png||height="36" width="372"]] 575 575 576 576 Set D0 time to 16:30:00 and D10 time to 4:30:0 577 577 579 +(% style="text-align:center" %) 578 578 [[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]] 579 579 582 +(% style="text-align:center" %) 580 580 [[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]] 581 581 582 582 After the coil is turned on, the D20 time is 12:00:00 583 583 587 +(% style="text-align:center" %) 584 584 [[image:07-5 Basic instructions_html_8f93ea19ba10652b.png]] 585 585 586 - {{id name="_Toc10358"/}}{{id name="_Toc12073"/}}[[image:07-5 Basic instructions_html_501fb256fd034ca6.gif]]**TRD/Clock data reading**590 +**TRD/Clock data reading** 587 587 588 588 **TRD(P)** 589 589 ... ... @@ -602,17 +602,13 @@ 602 602 603 603 **Device used** 604 604 605 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 606 -**Offset** 607 - 608 -**modification** 609 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="4" %)**Devices**|((( 610 +**Offset modification** 609 609 )))|((( 610 -**Pulse** 611 - 612 -**extension** 612 +**Pulse extension** 613 613 ))) 614 -|** 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**615 -|TRD|Parameter 1| | | | | | | | | | | | | | |●|●|●|●|| | | | | |●|●614 +|**T**|**C**|**D**|**R**|**[D]**|**XXP** 615 +|TRD|Parameter 1|●|●|●|●|●|● 616 616 617 617 **Features** 618 618 ... ... @@ -638,7 +638,7 @@ 638 638 |SD105|The year data of the clock data is stored in a 4-digit BIN code of the Gregorian calendar. 639 639 |SD106|The week data of the clock data is stored in BIN code. (0: day, 1: one, ..., 6: six) are stored in BIN code. 640 640 641 -✎**Note** 641 +✎**Note:** 642 642 643 643 • The device specified in (d) occupies 7 points. Be careful not to overlap with the device used for machine control. 644 644 ... ... @@ -649,15 +649,17 @@ 649 649 650 650 **Example** 651 651 652 -[[image:07-5 Basic instructions_html_b81c1991fec5b4b1.png]] 652 +(% style="text-align:center" %) 653 +[[image:07-5 Basic instructions_html_b81c1991fec5b4b1.png||height="68" width="250"]] 653 653 654 654 After the M0 coil is turned on, the current date and time are read as 2020-2-19 13:10:38 Wednesday 655 655 656 -[[image:07-5 Basic instructions_html_fe82ecd18ebfd787.png]] 657 +(% style="text-align:center" %) 658 +[[image:07-5 Basic instructions_html_fe82ecd18ebfd787.png||height="48" width="602"]] 657 657 658 - {{id name="_Toc24237"/}}{{id name="_Toc487"/}}**TWR/Clock data writing**660 +== **TWR/Clock data writing** == 659 659 660 - [[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**TWR(P)**662 +**TWR(P)** 661 661 662 662 Write the clock data of the built-in real-time clock of the CPU module. 663 663 ... ... @@ -670,17 +670,13 @@ 670 670 671 671 **Device used** 672 672 673 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 674 -**Offset** 675 - 676 -**modification** 675 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="4" %)**Devices**|((( 676 +**Offset modification** 677 677 )))|((( 678 -**Pulse** 679 - 680 -**extension** 678 +**Pulse extension** 681 681 ))) 682 -|** 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**683 -|TWR|Parameter 1| | | | | | | | | | | | | | |●|●|●|●|| | | | | |●|●680 +|**T**|**C**|**D**|**R**|**[D]**|**XXP** 681 +|TWR|Parameter 1|●|●|●|●|●|● 684 684 685 685 **Features** 686 686 ... ... @@ -715,7 +715,7 @@ 715 715 |SD105|The year data of the clock data is stored in a 4-digit BIN code of the Gregorian calendar. 716 716 |SD106|The week data of the clock data is stored in BIN code. (0: day, 1: one, ..., 6: six) are stored in BIN code. 717 717 718 -✎**Note** 716 +✎**Note:** 719 719 720 720 The device specified in (s) occupies 7 points. Be careful not to overlap with the device used for machine control. 721 721 ... ... @@ -728,13 +728,15 @@ 728 728 729 729 Set D0 date and time to 2020-2-19 12:36:00 in advance 730 730 731 -[[image:07-5 Basic instructions_html_994c66d1a4cbd45f.png]] 729 +(% style="text-align:center" %) 730 +[[image:07-5 Basic instructions_html_994c66d1a4cbd45f.png||height="57" width="305"]] 732 732 733 733 At the moment when the time 12:36:00 arrives, turn on the M0 coil and write the time. 734 734 735 -[[image:07-5 Basic instructions_html_bf3e906ee5265598.png]] 734 +(% style="text-align:center" %) 735 +[[image:07-5 Basic instructions_html_bf3e906ee5265598.png||height="42" width="586"]] 736 736 737 - {{id name="_Toc5357"/}}{{id name="_Toc6196"/}}[[image:07-5Basic instructions_html_11b3991e89e21efc.gif]]**HTOS/16-bit data conversion of time data (hour, minute, second → second)**737 +== **HTOS/16-bit data conversion of time data (hour, minute, second → second)** == 738 738 739 739 **HTOS(P)** 740 740 ... ... @@ -750,26 +750,26 @@ 750 750 751 751 **Device used** 752 752 753 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 754 -**Pulse** 755 - 756 -**extension** 753 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|**Offset modification**|((( 754 +**Pulse extension** 757 757 ))) 758 -|** 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**759 -|(% rowspan="2" %)HTOS|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|| | | | |●|●760 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●|| | | | |●|●756 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 757 +|(% rowspan="2" %)HTOS|Parameter 1|●|●|●|●|●|●|●|●|●|●|● 758 +|Parameter 2| |●|●|●|●|●|●|●|●|●|● 761 761 762 762 **Features** 763 763 764 764 Convert the time data stored after the device number specified in (s) into seconds and store the conversion result in the device specified in (d). 765 765 766 -[[image:07-5 Basic instructions_html_a84b7741fd5bef2f.png]] 764 +(% style="text-align:center" %) 765 +[[image:07-5 Basic instructions_html_a84b7741fd5bef2f.png||height="130" width="550"]] 767 767 768 768 **Example** 769 769 770 770 When 4 hours, 29 minutes and 31 seconds are specified in (s) 771 771 772 -[[image:07-5 Basic instructions_html_5effb7bc9b8e5cf7.png]] 771 +(% style="text-align:center" %) 772 +[[image:07-5 Basic instructions_html_5effb7bc9b8e5cf7.png||height="162" width="550"]] 773 773 774 774 **Error code** 775 775 ... ... @@ -777,7 +777,7 @@ 777 777 |4085H|When reading the specified device range exceeds the corresponding device range 778 778 |4086H|When writing the specified device range exceeds the corresponding device range 779 779 |4084H|((( 780 - {{id name="OLE_LINK348"/}}When the calculation result is not in the range of 0 to 32767780 +When the calculation result is not in the range of 0 to 32767 781 781 782 782 When the value specified in (s) is not in the range of 0 to 9 783 783 ... ... @@ -786,19 +786,22 @@ 786 786 787 787 **Example** 788 788 789 -[[image:07-5 Basic instructions_html_e23e38c4ba4c34bb.png]] 789 +(% style="text-align:center" %) 790 +[[image:07-5 Basic instructions_html_e23e38c4ba4c34bb.png||height="43" width="338"]] 790 790 791 791 D0 time is set to 5:36:53 792 792 794 +(% style="text-align:center" %) 793 793 [[image:07-5 Basic instructions_html_2866a121e5ca5713.png]] 794 794 795 795 The time of D10 after the M0 coil is turned on is as below. 796 796 799 +(% style="text-align:center" %) 797 797 [[image:07-5 Basic instructions_html_1dd6c5de05890797.png]] 798 798 799 - {{id name="_Toc13431"/}}{{id name="_Toc5278"/}}**DHTOS/32-bit data conversion of time data (hour, minute, second → second)**802 +== **DHTOS/32-bit data conversion of time data (hour, minute, second → second)** == 800 800 801 - [[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**DHTOS(P)**804 +**DHTOS(P)** 802 802 803 803 Convert the time data stored after the device number specified in (s) into seconds and store the conversion result as BIN 32-bit data in the device specified in (d). 804 804 ... ... @@ -812,30 +812,28 @@ 812 812 813 813 **Device used** 814 814 815 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 816 -**Offset** 817 - 818 -**modification** 818 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|((( 819 +**Offset modification** 819 819 )))|((( 820 -**Pulse** 821 - 822 -**extension** 821 +**Pulse extension** 823 823 ))) 824 -|** 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**825 -|(% rowspan="2" %)DHTOS|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|| | | | |●|●826 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●|| | | | |●|●823 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 824 +|(% rowspan="2" %)DHTOS|Parameter 1|●|●|●|●|●|●|●|●|●|●|● 825 +|Parameter 2| |●|●|●|●|●|●|●|●|●|● 827 827 828 828 **Features** 829 829 830 830 Convert the time data stored after the device number specified in (s) into seconds and store the conversion result in the device specified in (d). 831 831 832 -[[image:07-5 Basic instructions_html_f4be08508575ea01.png]] 831 +(% style="text-align:center" %) 832 +[[image:07-5 Basic instructions_html_f4be08508575ea01.png||height="99" width="550"]] 833 833 834 834 **Example** 835 835 836 836 When 35 hours, 10 minutes and 58 seconds are specified in (s) 837 837 838 -[[image:07-5 Basic instructions_html_5b9ad230ed5e1fd0.png]] 838 +(% style="text-align:center" %) 839 +[[image:07-5 Basic instructions_html_5b9ad230ed5e1fd0.png||height="125" width="550"]] 839 839 840 840 **Error code** 841 841 ... ... @@ -850,17 +850,20 @@ 850 850 851 851 **Example** 852 852 853 -[[image:07-5 Basic instructions_html_ae8ab4379e8bdb91.png]] 854 +(% style="text-align:center" %) 855 +[[image:07-5 Basic instructions_html_ae8ab4379e8bdb91.png||height="45" width="263"]] 854 854 855 855 D0 time is set to 15:33:24 856 856 857 -[[image:07-5 Basic instructions_html_57a15d9e1045e93e.png]] 859 +(% style="text-align:center" %) 860 +[[image:07-5 Basic instructions_html_57a15d9e1045e93e.png||height="41" width="313"]] 858 858 859 859 The second of D10 after the M0 coil is turned on is 860 860 861 -[[image:07-5 Basic instructions_html_194e906b1dc12078.png]] 864 +(% style="text-align:center" %) 865 +[[image:07-5 Basic instructions_html_194e906b1dc12078.png||height="64" width="365"]] 862 862 863 - {{id name="_Ref22686"/}}{{id name="_Toc11231"/}}{{id name="_Toc7401"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**HOUR/Hour measuring 16-bit**867 +**HOUR/Hour measuring 16-bit** 864 864 865 865 **HOUR(P)** 866 866 ... ... @@ -885,19 +885,15 @@ 885 885 886 886 **Device used** 887 887 888 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 889 -**Offset** 890 - 891 -**modification** 892 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="17" %)**Devices**|((( 893 +**Offset modification** 892 892 )))|((( 893 -**Pulse** 894 - 895 -**extension** 895 +**Pulse extension** 896 896 ))) 897 -|** 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**898 -|(% rowspan="3" %)HOUR|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|| |●|●| |●|●899 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | || |●|●900 -|Parameter 3| |●|●|●|●|| | | |●| | | | | | | | | | | | || |●|●897 +|**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**E**|**[D]**|**XXP** 898 +|(% rowspan="3" %)HOUR|Parameter 1| | | | | |●|●|●|●|●|●|●|●|●|●|●| |●|● 899 +|Parameter 2| | | | | | | | | | | |●|●|●| | | |●|● 900 +|Parameter 3|●|●|●|●|●| | | | | | | | | | | | |●|● 901 901 902 902 **Features** 903 903 ... ... @@ -919,7 +919,7 @@ 919 919 920 920 • The measurement stops when the current value reaches the 16-bit maximum. To continue the measurement, clear the current value of (d1) to (d1)+1. 921 921 922 -✎**Note** 922 +✎**Note:** 923 923 924 924 • The device specified in (d1) occupies 2 points. Be careful not to overlap with the device used for machine control. 925 925 ... ... @@ -932,15 +932,14 @@ 932 932 |4086H|When writing the specified device range exceeds the corresponding device range 933 933 |4084H|When the value of (s) is negative 934 934 935 - 936 - 937 937 **Example** 938 938 939 -[[image:07-5 Basic instructions_html_7570f8c392470a9f.png]] 937 +(% style="text-align:center" %) 938 +[[image:07-5 Basic instructions_html_7570f8c392470a9f.png||height="45" width="320"]] 940 940 941 941 When M0 = ON, the duration of the state is accumulated, the time is recorded in D0, and the seconds less than 1 hour are recorded in D1. When the accumulated time of D0 reaches 98 hours, the Y0 output state is ON. When the timing conditions are met, after reaching the specified value (K98), the accumulated timing will continue and the reading will continue to increase; the current time value D0 reaches the maximum value of 32767 hours and D1 reaches 3599 seconds, the timing measurement will stop. The current time values D0 and D1 are cleared to 0. 942 942 943 - {{id name="_Toc8523"/}}{{id name="_Toc9364"/}}[[image:07-5Basic instructions_html_11b3991e89e21efc.gif]]**DHOUR/Hour measuring 32 bits**942 +== **DHOUR/Hour measuring 32 bits** == 944 944 945 945 **DHOUR(P)** 946 946 ... ... @@ -952,9 +952,7 @@ 952 952 953 953 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 954 954 |(s)|((( 955 -The time when the alarm (d2) is turned ON 956 - 957 -(set by one hour) 954 +The time when the alarm (d2) is turned ON (set by one hour) 958 958 )))|0 to 2147483647|Signed BIN 32 bit|ANY32 959 959 |(d1)|Device that stores the current value of measurement (specified data register for power failure retention)|-|Unsigned BIN 32 bit|((( 960 960 ANY32_ARRAY ... ... @@ -965,19 +965,15 @@ 965 965 966 966 **Device used** 967 967 968 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 969 -**Offset** 970 - 971 -**modification** 965 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="18" %)**Devices**|((( 966 +**Offset modification** 972 972 )))|((( 973 -**Pulse** 974 - 975 -**extension** 968 +**Pulse extension** 976 976 ))) 977 -|** 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**978 -|(% rowspan="3" %)DHOUR|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●||●|●979 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | ||●|●980 -|Parameter 3| |●|●|●|●|| | | |●| | | | | | | | | | | | | ||●|●970 +|**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 971 +|(% rowspan="3" %)DHOUR|Parameter 1| | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 972 +|Parameter 2| | | | | | | | | | | |●|●|●| | | | |●|● 973 +|Parameter 3|●|●|●|●|●| | | | | | | | | | | | | |●|● 981 981 982 982 **Features** 983 983 ... ... @@ -999,7 +999,7 @@ 999 999 1000 1000 • The measurement stops when the current value reaches the 32-bit maximum. To continue the measurement, clear the current value of (d1) to (d1)+2. 1001 1001 1002 -✎**Note** 995 +✎**Note:** 1003 1003 1004 1004 • The device specified in (d1) occupies 3 points. Be careful not to overlap with the device used for machine control. 1005 1005 ... ... @@ -1012,17 +1012,16 @@ 1012 1012 |4086H|When writing the specified device range exceeds the corresponding device range 1013 1013 |4084H|When the value of (s) is negative 1014 1014 1015 - 1016 - 1017 1017 **Example** 1018 1018 1019 -[[image:07-5 Basic instructions_html_3f1ef5ecc835de30.png]] 1010 +(% style="text-align:center" %) 1011 +[[image:07-5 Basic instructions_html_3f1ef5ecc835de30.png||height="43" width="448"]] 1020 1020 1021 1021 When M0=ON, the duration of this state is accumulated, the time is recorded in D1, D0, and the seconds less than 1 hour are recorded in D2. When the accumulated time of D1, D0 reaches 1000 hours, the Y0 output state is ON. When the timing conditions are met, after reaching the specified value (K1000), the accumulated timing will continue, and the reading will continue to increase; the current time values D1 and D0 reach the maximum value of 2147483647 hours, and when D2 reaches 3599 seconds, the timing measurement will stop and the timing should be restarted. The current time values D0, D1, and D2 must be cleared to 0. 1022 1022 1023 -** {{id name="_Toc11629"/}}STOH/16-bit data conversion of time data (second → hour, minute, second)**1015 +== **STOH/16-bit data conversion of time data (second → hour, minute, second)** == 1024 1024 1025 - [[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**STOH(P)**1017 +**STOH(P)** 1026 1026 1027 1027 Convert the second 16-bit data stored in the device number specified in (s) into hour, minute, and second, and store the conversion result in the device specified in (d) and later. 1028 1028 ... ... @@ -1031,39 +1031,35 @@ 1031 1031 **Content, range and data type** 1032 1032 1033 1033 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1034 -|(s)| {{id name="OLE_LINK353"/}}The device start number that stores the clock data before conversion|0 to 32767|Signed BIN 16 bit|ANY161026 +|(s)|The device start number that stores the clock data before conversion|0 to 32767|Signed BIN 16 bit|ANY16 1035 1035 |(d)|The device start number that stores the converted clock data|-|Signed BIN 16 bit|((( 1036 -ANY16_ARRAY 1037 - 1038 -(number of elements: 3) 1028 +ANY16_ARRAY (number of elements: 3) 1039 1039 ))) 1040 1040 1041 1041 **Device used** 1042 1042 1043 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 1044 -**Offset** 1045 - 1046 -**modification** 1033 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|((( 1034 +**Offset modification** 1047 1047 )))|((( 1048 -**Pulse** 1049 - 1050 -**extension** 1036 +**Pulse extension** 1051 1051 ))) 1052 -|** 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**1053 -|(% rowspan="2" %)STOH|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|| | | | |●|●1054 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●|| | | | |●|●1038 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 1039 +|(% rowspan="2" %)STOH|Parameter 1|●|●|●|●|●|●|●|●|●|●|● 1040 +|Parameter 2| |●|●|●|●|●|●|●|●|●|● 1055 1055 1056 1056 **Features** 1057 1057 1058 1058 Convert the second data stored after the device number specified in (s) into hour, minute, and second, and store the conversion result in the device specified in (d) and later. 1059 1059 1060 -[[image:07-5 Basic instructions_html_1f5f3f1d80af2a34.png]] 1046 +(% style="text-align:center" %) 1047 +[[image:07-5 Basic instructions_html_1f5f3f1d80af2a34.png||height="110" width="550"]] 1061 1061 1062 1062 **Example** 1063 1063 1064 1064 When 29,011 seconds are specified in (s) 1065 1065 1066 -[[image:07-5 Basic instructions_html_682516cbf773f515.png]] 1053 +(% style="text-align:center" %) 1054 +[[image:07-5 Basic instructions_html_682516cbf773f515.png||height="163" width="550"]] 1067 1067 1068 1068 **Error code** 1069 1069 ... ... @@ -1074,17 +1074,19 @@ 1074 1074 1075 1075 **Example** 1076 1076 1077 -[[image:07-5 Basic instructions_html_e783349d57adf7d2.png]] 1065 +(% style="text-align:center" %) 1066 +[[image:07-5 Basic instructions_html_e783349d57adf7d2.png||height="47" width="350"]] 1078 1078 1079 1079 Set D0 seconds to 12537 1080 1080 1081 1081 The hour, minute and second of D10 after the M0 coil is turned on are 1082 1082 1083 -[[image:07-5 Basic instructions_html_d3c33949e8684891.png]] 1072 +(% style="text-align:center" %) 1073 +[[image:07-5 Basic instructions_html_d3c33949e8684891.png||height="52" width="645"]] 1084 1084 1085 - {{id name="_Toc10764"/}}{{id name="_Toc30243"/}}**DSTOH/32-bit data conversion of time data (second → hour, minute, second)**1075 +== **DSTOH/32-bit data conversion of time data (second → hour, minute, second)** == 1086 1086 1087 - [[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**DSTOH(P)**1077 +**DSTOH(P)** 1088 1088 1089 1089 Convert the second 32-bit data of second stored in the device number specified in (s) into hour, minute, and second, and store the conversion result in the device specified in (d) and later. 1090 1090 ... ... @@ -1095,37 +1095,33 @@ 1095 1095 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1096 1096 |(s)|The device start number that stores the clock data before conversion|0 to 117964799|Signed BIN 32 bit|ANY32 1097 1097 |(d)|The device start number that stores the converted clock data|-|Signed BIN 16 bit|((( 1098 -ANY16_ARRAY 1099 - 1100 -(number of elements: 3) 1088 +ANY16_ARRAY (number of elements: 3) 1101 1101 ))) 1102 1102 1103 1103 **Device used** 1104 1104 1105 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 1106 -**Offset** 1107 - 1108 -**modification** 1093 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|((( 1094 +**Offset modification** 1109 1109 )))|((( 1110 -**Pulse** 1111 - 1112 -**extension** 1096 +**Pulse extension** 1113 1113 ))) 1114 -|** 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**1115 -|(% rowspan="2" %)DSTOH|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|| | | | |●|●1116 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●|| | | | |●|●1098 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 1099 +|(% rowspan="2" %)DSTOH|Parameter 1|●|●|●|●|●|●|●|●|●|●|● 1100 +|Parameter 2| |●|●|●|●|●|●|●|●|●|● 1117 1117 1118 1118 **Features** 1119 1119 1120 1120 Convert the second data stored after the device number specified in (s) into hour, minute, and second, and store the conversion result in the device specified in (d) and later. 1121 1121 1122 -[[image:07-5 Basic instructions_html_cbf13fc3d10fbe61.png]] 1106 +(% style="text-align:center" %) 1107 +[[image:07-5 Basic instructions_html_cbf13fc3d10fbe61.png||height="99" width="600"]] 1123 1123 1124 1124 **Example** 1125 1125 1126 1126 When 45,325 seconds is specified in (s) 1127 1127 1128 -[[image:07-5 Basic instructions_html_d6045506b13275a0.png]] 1113 +(% style="text-align:center" %) 1114 +[[image:07-5 Basic instructions_html_d6045506b13275a0.png||height="135" width="600"]] 1129 1129 1130 1130 **Error code** 1131 1131 ... ... @@ -1136,15 +1136,17 @@ 1136 1136 1137 1137 **Example** 1138 1138 1139 -[[image:07-5 Basic instructions_html_e7dd49d953db6da4.png]] 1125 +(% style="text-align:center" %) 1126 +[[image:07-5 Basic instructions_html_e7dd49d953db6da4.png||height="39" width="316"]] 1140 1140 1141 1141 Set D0 seconds to 2152537 1142 1142 1143 1143 The hour, minute and second of D10 after the M0 coil is turned on are 1144 1144 1145 -[[image:07-5 Basic instructions_html_10d57bde1ac0a218.png]] 1132 +(% style="text-align:center" %) 1133 +[[image:07-5 Basic instructions_html_10d57bde1ac0a218.png||height="52" width="661"]] 1146 1146 1147 - {{id name="_Toc2937"/}}{{id name="_Toc24209"/}}[[image:07-5Basic instructions_html_11b3991e89e21efc.gif]]**TCMP/Clock data comparison**1135 +== **TCMP/Clock data comparison** == 1148 1148 1149 1149 **TCMP(P)** 1150 1150 ... ... @@ -1163,29 +1163,26 @@ 1163 1163 1164 1164 **Device used** 1165 1165 1166 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 1167 -**Offset** 1168 - 1169 -**modification** 1154 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="17" %)**Devices**|((( 1155 +**Offset modification** 1170 1170 )))|((( 1171 -**Pulse** 1172 - 1173 -**extension** 1157 +**Pulse extension** 1174 1174 ))) 1175 -|** 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**1176 -|(% rowspan="5" %)TCMP|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|| |●|●| |●|●1177 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●|| |●|●| |●|●1178 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●|| |●|●| |●|●1179 -|Parameter 4| | | | | | | | | | | | | | |●|●|●|●|●| | | || |●|●1180 -|Parameter 5| |●|●|●|●|| | | |●| | | | | | | | | | | | || |●|●1159 +|**Y**|**M**|**S**|**SM**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**E**|**[D]**|**XXP** 1160 +|(% rowspan="5" %)TCMP|Parameter 1| | | | | |●|●|●|●|●|●|●|●|●|●|●| |●|● 1161 +|Parameter 2| | | | | |●|●|●|●|●|●|●|●|●|●|●| |●|● 1162 +|Parameter 3| | | | | |●|●|●|●|●|●|●|●|●|●|●| |●|● 1163 +|Parameter 4| | | | | | | | | |●|●|●|●|●| | | |●|● 1164 +|Parameter 5|●|●|●|●|●| | | | | | | | | | | | |●|● 1181 1181 1182 1182 **Features** 1183 1183 1184 1184 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. 1185 1185 1186 -[[image:07-5 Basic instructions_html_5df7ad3057fada12.png]] 1170 +(% style="text-align:center" %) 1171 +[[image:07-5 Basic instructions_html_5df7ad3057fada12.png||height="385" width="750"]] 1187 1187 1188 -✎**Note** 1173 +✎**Note:** 1189 1189 1190 1190 The device specified in (s4) and (d) occupies 3 points. Be careful not to overlap with the device used for machine control. 1191 1191 ... ... @@ -1199,26 +1199,29 @@ 1199 1199 |4084H|((( 1200 1200 When the value specified in (s) and (s4) is not in the range of 0 to 23 1201 1201 1202 - {{id name="OLE_LINK355"/}}When the value specified in (s2),(s3) (s4)+1 and (s4)+2 is not in the range of 0 to 591187 +When the value specified in (s2),(s3) (s4)+1 and (s4)+2 is not in the range of 0 to 59 1203 1203 ))) 1204 1204 1205 1205 **Example** 1206 1206 1207 -[[image:07-5 Basic instructions_html_fcc16317cf7c0700.png]] 1192 +(% style="text-align:center" %) 1193 +[[image:07-5 Basic instructions_html_fcc16317cf7c0700.png||height="68" width="359"]] 1208 1208 1209 1209 Set D10 to 1, D11 to 30, D12 to 0 1210 1210 1211 1211 When M0 is turned on, the time that D23 will come is 0:31:27 1212 1212 1213 -[[image:07-5 Basic instructions_html_de97dd7a612b2323.png]] 1199 +(% style="text-align:center" %) 1200 +[[image:07-5 Basic instructions_html_de97dd7a612b2323.png||height="50" width="653"]] 1214 1214 1215 1215 M10 is turned ON 1216 1216 1217 -[[image:07-5 Basic instructions_html_56e2d606adc09fd.png]] 1204 +(% style="text-align:center" %) 1205 +[[image:07-5 Basic instructions_html_56e2d606adc09fd.png||height="52" width="239"]] 1218 1218 1219 - {{id name="_Toc29031"/}}{{id name="_Toc22923"/}}**TZCP/Clock data bandwidth comparison**1207 +== **TZCP/Clock data bandwidth comparison** == 1220 1220 1221 - [[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**TZCP(P)**1209 +**TZCP(P)** 1222 1222 1223 1223 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. 1224 1224 ... ... @@ -1228,46 +1228,37 @@ 1228 1228 1229 1229 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1230 1230 |(s1)|Specify the "hour" of the lower limit time (hour, minute, second)|-|Signed BIN 16 bit|((( 1231 -ANY16_ARRAY 1232 - 1233 -(number of elements: 3) 1219 +ANY16_ARRAY (number of elements: 3) 1234 1234 ))) 1235 1235 |(s2)|Specify the "hour" of the lower limit time (hour, minute, second)|-|Signed BIN 16 bit|((( 1236 -ANY16_ARRAY 1237 - 1238 -(number of elements: 3) 1222 +ANY16_ARRAY (number of elements: 3) 1239 1239 ))) 1240 1240 |(s3)|Specify "hour" of time data (hour, minute, second)|-|Signed BIN 16 bit|((( 1241 -ANY16_ARRAY 1242 - 1243 -(number of elements: 3) 1225 +ANY16_ARRAY (number of elements: 3) 1244 1244 ))) 1245 1245 |(d)|The bit device is turned ON/OFF according to the comparison result.|-|Bit|((( 1246 -ANY16_ARRAY 1247 - 1248 -(number of elements: 3) 1228 +ANY16_ARRAY (number of elements: 3) 1249 1249 ))) 1250 1250 1251 1251 **Device used** 1252 1252 1253 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1254 -**Pulse** 1255 - 1256 -**extension** 1233 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="10" %)**Devices**|**Offset modification**|((( 1234 +**Pulse extension** 1257 1257 ))) 1258 -|** 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**1259 -|(% rowspan="4" %)TZCP|Parameter 1| | | | | | | | | | | | | | |●|●|●|●|●|| | | | |●|●1260 -|Parameter 2| | | | | | | | | | | | | | |●|●|●|●|●|| | | | |●|●1261 -|Parameter 3| | | | | | | | | | | | | | |●|●|●|●|●|| | | | |●|●1262 -|Parameter 4| |●|●|●|●|| | | |●| | | | | || | | | | | | | |●|●1236 +|**Y**|**M**|**S**|**SM**|**D.b**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 1237 +|(% rowspan="4" %)TZCP|Parameter 1| | | | | |●|●|●|●|●|●|● 1238 +|Parameter 2| | | | | |●|●|●|●|●|●|● 1239 +|Parameter 3| | | | | |●|●|●|●|●|●|● 1240 +|Parameter 4|●|●|●|●|●| | | | | |●|● 1263 1263 1264 1264 **Features** 1265 1265 1266 1266 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. 1267 1267 1268 -[[image:07-5 Basic instructions_html_844291270080313d.png]] 1246 +(% style="text-align:center" %) 1247 +[[image:07-5 Basic instructions_html_844291270080313d.png||height="339" width="750"]] 1269 1269 1270 -✎**Note** 1249 +✎**Note:** 1271 1271 1272 1272 • The devices specified in (s1), (s2), (s3), (d) occupy 3 points. Be careful not to overlap with the device used for machine control. 1273 1273 ... ... @@ -1288,27 +1288,32 @@ 1288 1288 1289 1289 **Example** 1290 1290 1291 -[[image:07-5 Basic instructions_html_30027a2387c26c2e.png]] 1270 +(% style="text-align:center" %) 1271 +[[image:07-5 Basic instructions_html_30027a2387c26c2e.png||height="46" width="439"]] 1292 1292 1293 1293 Set D0 time to 16:30:00 and D10 time to 4:30:0 1294 1294 1295 -[[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]] 1275 +(% style="text-align:center" %) 1276 +[[image:07-5 Basic instructions_html_c64e0faf2af172f8.png||height="49" width="626"]] 1296 1296 1297 -[[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]] 1278 +(% style="text-align:center" %) 1279 +[[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png||height="50" width="625"]] 1298 1298 1299 1299 After the coil is turned on, the reading time to D20 time is 8:30:00 1300 1300 1301 -[[image:07-5 Basic instructions_html_75c44dad07eaf80a.png]] 1283 +(% style="text-align:center" %) 1284 +[[image:07-5 Basic instructions_html_75c44dad07eaf80a.png||height="49" width="625"]] 1302 1302 1303 1303 M0/M12 is ON 1304 1304 1305 -[[image:07-5 Basic instructions_html_f512f36261705953.png]] 1288 +(% style="text-align:center" %) 1289 +[[image:07-5 Basic instructions_html_f512f36261705953.png||height="48" width="218"]] 1306 1306 1307 - {{id name="_Toc6129"/}}[[image:07-5Basic instructions_html_a2e3294e01b2f206.gif]]**7.13Data control instructions**1291 += **Data control instructions** = 1308 1308 1309 - {{id name="_Toc3339"/}}{{id name="_Toc27829"/}}{{idname="_Toc9204"/}}**BAND/BIN 16-bit data dead zone control**1293 +== **BAND/BIN 16-bit data dead zone control** == 1310 1310 1311 - [[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**BAND(P)**1295 +**BAND(P)** 1312 1312 1313 1313 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). 1314 1314 ... ... @@ -1324,20 +1324,16 @@ 1324 1324 1325 1325 **Device used** 1326 1326 1327 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 1328 -**Offset** 1329 - 1330 -**modification** 1311 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|((( 1312 +**Offset modification** 1331 1331 )))|((( 1332 -**Pulse** 1333 - 1334 -**extension** 1314 +**Pulse extension** 1335 1335 ))) 1336 -|** 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**1337 -|(% rowspan="4" %)BAND|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|| |●|●||●|●1338 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●|| |●|●||●|●1339 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | || | |●|●1340 -|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●| | || | |●|●1316 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**[D]**|**XXP** 1317 +|(% rowspan="4" %)BAND|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|● 1318 +|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|●|● 1319 +|Parameter 3|●|●|●|●|●|●|●|●|●| | |●|● 1320 +|Parameter 4| |●|●|●|●|●|●|●|●| | |●|● 1341 1341 1342 1342 **Features** 1343 1343 ... ... @@ -1348,7 +1348,6 @@ 1348 1348 |When dead zone high limit (s1) <input value (s3)|Input value (s3)- Dead zone high limit (s2) 1349 1349 |When dead zone low limit (s1) ≤ input value (s3) ≤ dead zone low limit (s2)|0 1350 1350 1351 - 1352 1352 ((( 1353 1353 •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. 1354 1354 ... ... @@ -1356,7 +1356,8 @@ 1356 1356 1357 1357 the output value = -32768-10=8000H-000AH=7FFFH=32758. 1358 1358 1359 -[[image:07-5 Basic instructions_html_6850e21a76b813c0.png]] 1338 +(% style="text-align:center" %) 1339 +[[image:07-5 Basic instructions_html_6850e21a76b813c0.png||height="295" width="550"]] 1360 1360 ))) 1361 1361 1362 1362 **Error code** ... ... @@ -1366,9 +1366,10 @@ 1366 1366 |4086H|When the specified device range for writing exceeds the range of the corresponding device. 1367 1367 |4084H|When the low limit specified in (s1) is greater than the high limit specified in (s2). 1368 1368 1369 -**Example **1349 +**Example** 1370 1370 1371 -[[image:07-5 Basic instructions_html_c0e65cfeed403ecf.png]] 1351 +(% style="text-align:center" %) 1352 +[[image:07-5 Basic instructions_html_c0e65cfeed403ecf.png||height="49" width="450"]] 1372 1372 1373 1373 When X000 is ON, when D0<(-1,000), the value of ( D0)-(-1,000) is stored in (D1). 1374 1374 ... ... @@ -1376,7 +1376,7 @@ 1376 1376 1377 1377 • When D0<1,000, the value of (D0)-1,000 is stored in D1. 1378 1378 1379 - {{id name="_Toc1180"/}}{{id name="_Toc21657"/}}{{idname="_Toc27323"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**DBAND/BIN 32-bit data dead zone control**1360 +== **DBAND/BIN 32-bit data dead zone control** == 1380 1380 1381 1381 **DBAND(P)** 1382 1382 ... ... @@ -1394,16 +1394,14 @@ 1394 1394 1395 1395 **Device used** 1396 1396 1397 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1398 -**Pulse** 1399 - 1400 -**extension** 1378 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="13" %)**Devices**|**Offset modification**|((( 1379 +**Pulse extension** 1401 1401 ))) 1402 -|** 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**1403 -|(% rowspan="4" %)DBAND|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●||●|●1404 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●||●|●1405 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●| | ||●|●1406 -|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | ||●|●1381 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 1382 +|(% rowspan="4" %)DBAND|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 1383 +|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 1384 +|Parameter 3|●|●|●|●|●|●|●|●|●|●|●| | |●|● 1385 +|Parameter 4| |●|●|●|●|●|●|●|●|●|●| | |●|● 1407 1407 1408 1408 **Features** 1409 1409 ... ... @@ -1410,20 +1410,17 @@ 1410 1410 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. 1411 1411 1412 1412 |**Condition**|**The value stored in the output value** 1413 -|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)1414 -|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)1392 +|When dead zone low limit ((s1), (s1)+1)> input value ((s3), (s3)+1)|Input value ((s3), (s3)+1)-dead zone low limit ((s1), (s1)+1) 1393 +|When dead zone high limit ((s1), (s1)+1) <input value ((s3), (s3)+1)|Input value ((s3), (s3)+1)-dead zone high limit ((s2), (s2)+1) 1415 1415 |When dead zone low limit ((s1), (s1)+1) ≤ input value ((s3), (s3)+1) ≤ dead zone high limit ((s2), (s2)+1)|0 1416 1416 1417 - 1418 1418 ((( 1419 -• 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=1397 +• When the output value stored in (d) is a signed BIN 32-bit value, and the operation result exceeds the range of -2,147,483,648 to 2,147,483,647, the situation is as the following example. For example,** **When (s1) and (s1)+1 are 1000, (s3) and (s3)+1 are -2,147,483,648, then the output value= 1420 1420 1421 1421 -2,147,483,648-1000=80000000H-000003E8H=7FFFFC18H=2,147,482,648. 1422 1422 1423 -[[image:07-5 Basic instructions_html_e0144674dad3e8fd.png]] 1424 - 1425 - 1426 - 1401 +(% style="text-align:center" %) 1402 +[[image:07-5 Basic instructions_html_e0144674dad3e8fd.png||height="243" width="550"]] 1427 1427 ))) 1428 1428 1429 1429 **Error code** ... ... @@ -1435,7 +1435,8 @@ 1435 1435 1436 1436 **Example** 1437 1437 1438 -[[image:07-5 Basic instructions_html_88f3fe0fb4841bab.png]] 1414 +(% style="text-align:center" %) 1415 +[[image:07-5 Basic instructions_html_88f3fe0fb4841bab.png||height="42" width="453"]] 1439 1439 1440 1440 • When (D1, D0)<(-10,000), the value of (D1, D0)-(-10,000) is stored in (D11, D10). 1441 1441 ... ... @@ -1443,9 +1443,9 @@ 1443 1443 1444 1444 • When 10,000< (D1, D0), the value of (D1, D0)-10,000 is stored in D1. 1445 1445 1446 - {{id name="_Toc21668"/}}{{id name="_Toc25056"/}}{{idname="_Toc17582"/}}{{id name="OLE_LINK165"/}}**BINDA/BIN 16-bit data → Decimal ASCII conversion**1423 +== **BINDA/BIN 16-bit data → Decimal ASCII conversion** == 1447 1447 1448 - [[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**BINDA(P)**1425 +**BINDA(P)** 1449 1449 1450 1450 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). 1451 1451 ... ... @@ -1459,30 +1459,28 @@ 1459 1459 1460 1460 **Device used** 1461 1461 1462 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1463 -**Pulse** 1464 - 1465 -**extension** 1439 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|**Offset modification**|((( 1440 +**Pulse extension** 1466 1466 ))) 1467 -|** 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**1468 -|(% rowspan="2" %)BINDA|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|| |●|●||●|●1469 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | || | |●|●1442 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**[D]**|**XXP** 1443 +|(% rowspan="2" %)BINDA|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|● 1444 +|Parameter 2| | | | | | |●|●|●| | |●|● 1470 1470 1471 1471 **Features** 1472 1472 1473 1473 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). 1474 1474 1475 - 1476 - 1477 1477 ((( 1478 -←Only store 0 when SM191 is OFF 1479 - 1451 +(% style="text-align:center" %) 1480 1480 [[image:07-5 Basic instructions_html_57bda5f08026449d.png]] 1453 + 1454 +←Only store 0 when SM191 is OFF 1481 1481 ))) 1482 1482 1483 1483 For example, when -12,345 is specified in (s) (in the case of specifying signed) 1484 1484 1485 -[[image:07-5 Basic instructions_html_f346102467b9bef9.png]] 1459 +(% style="text-align:center" %) 1460 +[[image:07-5 Basic instructions_html_f346102467b9bef9.png||height="169" width="850"]] 1486 1486 1487 1487 The calculation result stored in (d) will be as below. 1488 1488 ... ... @@ -1502,19 +1502,20 @@ 1502 1502 1503 1503 **Example** 1504 1504 1480 +(% style="text-align:center" %) 1481 +[[image:07-5 Basic instructions_html_c598806a42484ed.png||height="76" width="300"]] 1505 1505 1506 - 1507 1507 ((( 1508 1508 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 1509 1509 1510 1510 converted ASCII code character by character to the program of Y040 to Y057. 1511 1511 1512 - [[image:07-5Basic instructions_html_c598806a42484ed.png]]1488 + 1513 1513 ))) 1514 1514 1515 - {{id name="_Toc12255"/}}{{id name="_Toc8216"/}}{{idname="_Toc470"/}}**DBINDA/BIN 32-bit data → Decimal ASCII conversion**1491 +== **DBINDA/BIN 32-bit data → Decimal ASCII conversion** == 1516 1516 1517 - [[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**DBINDA(P)**1493 +**DBINDA(P)** 1518 1518 1519 1519 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). 1520 1520 ... ... @@ -1524,22 +1524,18 @@ 1524 1524 1525 1525 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1526 1526 |(s)|BIN data for ASCII conversion|-2,147483648 to 2147483647|Signed BIN 32 bit|ANY32_S 1527 -|(d)| {{id name="OLE_LINK2"/}}The start number of the device storing the conversion result|-|String|ANYSTRING_SINGLE1503 +|(d)|The start number of the device storing the conversion result|-|String|ANYSTRING_SINGLE 1528 1528 1529 1529 **Device used** 1530 1530 1531 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 1532 -**Offset** 1533 - 1534 -**modification** 1507 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="13" %)**Devices**|((( 1508 +**Offset modification** 1535 1535 )))|((( 1536 -**Pulse** 1537 - 1538 -**extension** 1510 +**Pulse extension** 1539 1539 ))) 1540 -|** 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**1541 -|(% rowspan="2" %)DBINDA|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●||●|●1542 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | ||●|●1512 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 1513 +|(% rowspan="2" %)DBINDA|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 1514 +|Parameter 2| | | | | | |●|●|●| | | | |●|● 1543 1543 1544 1544 **Features** 1545 1545 ... ... @@ -1547,8 +1547,11 @@ 1547 1547 1548 1548 For example, when -12345678 is specified in (s). (in the case of specifying signed) 1549 1549 1550 -[[image:07-5 Basic instructions_html_4d939462838cf09b.gif]] The calculation result stored in (d) will be as below. 1522 +(% style="text-align:center" %) 1523 +[[image:07-5 Basic instructions_html_4d939462838cf09b.gif]] 1551 1551 1525 + The calculation result stored in (d) will be as below. 1526 + 1552 1552 • In "Sign", 20H is stored when the BIN data is positive, and 2DH is stored when it is negative. 1553 1553 1554 1554 • 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. ... ... @@ -1565,13 +1565,14 @@ 1565 1565 1566 1566 **Example** 1567 1567 1568 -[[image:07-5 Basic instructions_html_ec8ac32d748a991c.png]] 1543 +(% style="text-align:center" %) 1544 +[[image:07-5 Basic instructions_html_ec8ac32d748a991c.png||height="59" width="300"]] 1569 1569 1570 1570 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. 1571 1571 1572 - {{id name="_Toc19693"/}}{{id name="_Toc18078"/}}{{idname="_Toc5726"/}}**DABIN/Decimal ASCII → BIN conversion**1548 +== **DABIN/Decimal ASCII → BIN conversion** == 1573 1573 1574 - [[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**DABIN(P)**1550 +**DABIN(P)** 1575 1575 1576 1576 Digital ASCII code (30H to 39H) is a instruction to convert real data into BIN data. 1577 1577 ... ... @@ -1585,24 +1585,23 @@ 1585 1585 1586 1586 **Device used** 1587 1587 1588 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1589 -**Pulse** 1590 - 1591 -**extension** 1564 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="8" %)**Devices**|**Offset modification**|((( 1565 +**Pulse extension** 1592 1592 ))) 1593 -|** 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**1594 -|(% rowspan="2" %)DABIN|Parameter 1| | | | | | | | | | | | | | | | |●|●|●|| | | | |●|●1595 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●|| | | | |●|●1567 +|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 1568 +|(% rowspan="2" %)DABIN|Parameter 1| | | | | |●|●|●|●|● 1569 +|Parameter 2|●|●|●|●|●|●|●|●|●|● 1596 1596 1597 1597 **Features** 1598 1598 1599 1599 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). 1600 1600 1601 -[[image:07-5 Basic instructions_html_22c5cb32a0a32214.png]] 1575 +(% style="text-align:center" %) 1576 +[[image:07-5 Basic instructions_html_22c5cb32a0a32214.png||height="273" width="750"]] 1602 1602 1603 1603 |**ASCII S**|**ASCII 10^^0^^**|**ASCII 10^^1^^**|**ASCII 10^^2^^**|**ASCII 10^^3^^**|**ASCII 10^^4^^** 1604 1604 |**ASCII code**|((( 1605 - {{id name="OLE_LINK36"/}}Units of1580 +Units of 1606 1606 1607 1607 ASCII code 1608 1608 )))|((( ... ... @@ -1625,7 +1625,8 @@ 1625 1625 1626 1626 For example, When -25,108 is specified in (s) 1627 1627 1628 -[[image:07-5 Basic instructions_html_10fb2792e37dbf23.png]] 1603 +(% style="text-align:center" %) 1604 +[[image:07-5 Basic instructions_html_10fb2792e37dbf23.png||height="123" width="750"]] 1629 1629 1630 1630 • The ASCII data specified in (s) to (s)+2 is within the range of -32,768 to +32,767. 1631 1631 ... ... @@ -1655,11 +1655,12 @@ 1655 1655 **Example** 1656 1656 ))) 1657 1657 1658 -[[image:07-5 Basic instructions_html_bec2bea131b58c03.png]] 1634 +(% style="text-align:center" %) 1635 +[[image:07-5 Basic instructions_html_bec2bea131b58c03.png||height="55" width="300"]] 1659 1659 1660 - {{id name="_Toc3351"/}}{{id name="_Toc26383"/}}{{idname="_Toc26233"/}}**DDABIN/Decimal ASCII → BIN32-bit data conversion**1637 +== **DDABIN/Decimal ASCII → BIN32-bit data conversion** == 1661 1661 1662 - [[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**DDABIN(P)**1639 +**DDABIN(P)** 1663 1663 1664 1664 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). 1665 1665 ... ... @@ -1673,31 +1673,31 @@ 1673 1673 1674 1674 **Device used** 1675 1675 1676 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1677 -**Pulse** 1678 - 1679 -**extension** 1653 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="10" %)**Devices**|**Offset modification**|((( 1654 +**Pulse extension** 1680 1680 ))) 1681 -|** 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**1682 -|(% rowspan="2" %)DDABIN|Parameter 1| | | | | | | | | | | | | | | | |●|●|●| | || | |●|●1683 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|| | |●|●1656 +|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**[D]**|**XXP** 1657 +|(% rowspan="2" %)DDABIN|Parameter 1| | | | | |●|●|●| | |●|● 1658 +|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|● 1684 1684 1685 1685 **Features** 1686 1686 1687 1687 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). 1688 1688 1689 -[[image:07-5 Basic instructions_html_c444110b273f33b7.gif]] 1664 +(% style="text-align:center" %) 1665 +[[image:07-5 Basic instructions_html_c444110b273f33b7.gif||height="193" width="800"]] 1690 1690 1691 1691 |**ASCII S**|**ASCII code**|**ASCII S**|**ASCII code** 1692 -|ASCII 10^^0^^|Units of ASCII code|ASCII 10^^5^^| {{id name="OLE_LINK38"/}}Hundred thousands of ASCII code1668 +|ASCII 10^^0^^|Units of ASCII code|ASCII 10^^5^^|Hundred thousands of ASCII code 1693 1693 |ASCII 10^^1^^|Tens of ASCII code|ASCII 10^^6^^|Millions of ASCII code 1694 1694 |ASCII 10^^2^^|Hundreds of ASCII code|ASCII 10^^7^^|Ten millions of ASCII code 1695 -|ASCII 10^^3^^| {{id name="OLE_LINK37"/}}Thousands of ASCII code|ASCII 10^^8^^|Hundred millions of ASCII code1671 +|ASCII 10^^3^^|Thousands of ASCII code|ASCII 10^^8^^|Hundred millions of ASCII code 1696 1696 |ASCII 10^^4^^|Tens thousands of ASCII code|ASCII 10^^9^^|billions of ASCII code 1697 1697 1698 1698 When -1234543210 is specified in (s) (When signed is specified) 1699 1699 1700 -[[image:07-5 Basic instructions_html_1b4c7e1c663a4399.png]] 1676 +(% style="text-align:center" %) 1677 +[[image:07-5 Basic instructions_html_1b4c7e1c663a4399.png||height="230" width="800"]] 1701 1701 1702 1702 • 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. 1703 1703 ... ... @@ -1713,7 +1713,7 @@ 1713 1713 |4084H|((( 1714 1714 When the Sign data exceeds the range of 30H to 39H, 20H, 00H and 2DH; 1715 1715 1716 - {{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;1693 +When the ASCII code of each bit specified in (s) to (s)+5 exceeds the range of 30H to 39H, 20H and 00H; 1717 1717 1718 1718 When the ASCII data specified in (s) to (s)+5 exceeds the range of -2,147,483,648 to +2,147,483,647 1719 1719 ))) ... ... @@ -1722,13 +1722,14 @@ 1722 1722 1723 1723 **Example** 1724 1724 1725 -[[image:07-5 Basic instructions_html_feea438c943ea9dd.png]] 1702 +(% style="text-align:center" %) 1703 +[[image:07-5 Basic instructions_html_feea438c943ea9dd.png||height="34" width="300"]] 1726 1726 1727 1727 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. 1728 1728 1729 - {{id name="_Toc26556"/}}{{id name="_Toc12799"/}}{{idname="_Toc23863"/}}**LIMIT/ BIN 16-bit data high and low limit control**1707 +== **LIMIT/ BIN 16-bit data high and low limit control** == 1730 1730 1731 - [[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**LIMIT(P)**1709 +**LIMIT(P)** 1732 1732 1733 1733 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). 1734 1734 ... ... @@ -1744,16 +1744,14 @@ 1744 1744 1745 1745 **Device used** 1746 1746 1747 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1748 -**Pulse** 1749 - 1750 -**extension** 1725 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|**Offset modification**|((( 1726 +**Pulse extension** 1751 1751 ))) 1752 -|** 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**1753 -|(% rowspan="4" %)LIMIT|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|| |●|●||●|●1754 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●|| |●|●||●|●1755 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | || | |●|●1756 -|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●| | || | |●|●1728 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**[D]**|**XXP** 1729 +|(% rowspan="4" %)LIMIT|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|● 1730 +|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|●|● 1731 +|Parameter 3|●|●|●|●|●|●|●|●|●| | |●|● 1732 +|Parameter 4| |●|●|●|●|●|●|●|●| | |●|● 1757 1757 1758 1758 **Features** 1759 1759 ... ... @@ -1764,13 +1764,13 @@ 1764 1764 |High limit value (s1) <input value (s3)|High limit value (s2) 1765 1765 |Low limit value (s1) ≤ input value (s3) ≤ high limit value (s2)|Input value (s3) 1766 1766 1767 - 1768 1768 ((( 1769 -•Only in the case of controlling high limit value, set the minimum value of data range in the low limit value specified in (s1). 1744 +• Only in the case of controlling high limit value, set the minimum value of data range in the low limit value specified in (s1). 1770 1770 1771 1771 • Only in the case of controlling low limit value, set the maximum value of data range in the high limit value specified in (s2). 1772 1772 1773 -[[image:07-5 Basic instructions_html_50eb5229b027aa14.png]] 1748 +(% style="text-align:center" %) 1749 +[[image:07-5 Basic instructions_html_50eb5229b027aa14.png||height="297" width="550"]] 1774 1774 ))) 1775 1775 1776 1776 **Error code** ... ... @@ -1782,6 +1782,7 @@ 1782 1782 1783 1783 **Example** 1784 1784 1761 +(% style="text-align:center" %) 1785 1785 [[image:07-5 Basic instructions_html_d67a2e740d4fc738.png]] 1786 1786 1787 1787 When X000 is ON ... ... @@ -1792,9 +1792,9 @@ 1792 1792 1793 1793 • When 5,000 <D0, D1 is 5,000. 1794 1794 1795 - {{id name="_Toc32553"/}}{{id name="_Toc9981"/}}{{idname="_Toc9158"/}}**DLIMIT/BIN 32-bit data high and low limit control**1772 +== **DLIMIT/BIN 32-bit data high and low limit control** == 1796 1796 1797 - [[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**DLIMIT(P)**1774 +**DLIMIT(P)** 1798 1798 1799 1799 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). 1800 1800 ... ... @@ -1810,16 +1810,14 @@ 1810 1810 1811 1811 **Device used** 1812 1812 1813 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1814 -**Pulse** 1815 - 1816 -**extension** 1790 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="13" %)**Devices**|**Offset modification**|((( 1791 +**Pulse extension** 1817 1817 ))) 1818 -|** 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**1819 -|(% rowspan="4" %)DLIMIT|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●||●|●1820 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●||●|●1821 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●| | ||●|●1822 -|Parameter 4| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | ||●|●1793 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 1794 +|(% rowspan="4" %)DLIMIT|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 1795 +|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 1796 +|Parameter 3|●|●|●|●|●|●|●|●|●|●|●| | |●|● 1797 +|Parameter 4| |●|●|●|●|●|●|●|●|●|●| | |●|● 1823 1823 1824 1824 **Features** 1825 1825 ... ... @@ -1830,7 +1830,7 @@ 1830 1830 |High limit value ((s2), (s2)+1) <input value ((s3), (s3)+1)|High limit value ((s2), (s2)+1) 1831 1831 |Low limit value ((s1), (s1)+1) ≤ input value ((s3), (s3)+1) ≤ high limit value ((s2), (s2)+1)|Input value ((s3), (s3)+1) 1832 1832 1833 - {{idname="OLE_LINK43"/}}{{idname="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).1808 +• Only in the case of controlling high limit value, set the minimum value of data range in the low limit value specified in (s1). 1834 1834 1835 1835 • Only in the case of controlling low limit value, set the maximum value of data range in the high limit value specified in (s2). 1836 1836 ... ... @@ -1843,7 +1843,8 @@ 1843 1843 1844 1844 **Example** 1845 1845 1846 -[[image:07-5 Basic instructions_html_217355b90f4b4e16.png]] 1821 +(% style="text-align:center" %) 1822 +[[image:07-5 Basic instructions_html_217355b90f4b4e16.png||height="53" width="400"]] 1847 1847 1848 1848 Operation: 1849 1849 ... ... @@ -1853,9 +1853,9 @@ 1853 1853 1854 1854 • When 1,000,000 <(D1, D0), (D11, D10) is 1,000,000. 1855 1855 1856 - {{id name="_Toc12534"/}}{{id name="_Toc28213"/}}{{idname="_Toc24591"/}}**SCL/BIN 16-bit unit scale (coordinate data of each point)**1832 +== **SCL/BIN 16-bit unit scale (coordinate data of each point)** == 1857 1857 1858 - [[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**SCL(P)**1834 +**SCL(P)** 1859 1859 1860 1860 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). 1861 1861 ... ... @@ -1870,15 +1870,13 @@ 1870 1870 1871 1871 **Device used** 1872 1872 1873 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 1874 -**Pulse** 1875 - 1876 -**extension** 1849 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|**Offset modification**|((( 1850 +**Pulse extension** 1877 1877 ))) 1878 -|** 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**1879 -|(% rowspan="3" %)SCL|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|| |●|●||●|●1880 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | || | |●|●1881 -|Parameter 3| | | | | | | | | | | |●|●|●|●|●|●|●|●| | || | |●|●1852 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**[D]**|**XXP** 1853 +|(% rowspan="3" %)SCL|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|● 1854 +|Parameter 2| | | | | | |●|●|●| | |●|● 1855 +|Parameter 3| |●|●|●|●|●|●|●|●| | |●|● 1882 1882 1883 1883 **Features** 1884 1884 ... ... @@ -1894,7 +1894,8 @@ 1894 1894 |(% rowspan="2" %)Point n|X coordinate|(s2)+2n-1 1895 1895 |Y coordinate|(s2)+2n 1896 1896 1897 -[[image:07-5 Basic instructions_html_80185ccddb878234.png]] 1871 +(% style="text-align:center" %) 1872 +[[image:07-5 Basic instructions_html_80185ccddb878234.png||height="422" width="750"]] 1898 1898 1899 1899 • If the operation result is not an integer value, round the first digit below the decimal point. 1900 1900 ... ... @@ -1910,10 +1910,13 @@ 1910 1910 1911 1911 In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet. 1912 1912 1913 -[[image:07-5 Basic instructions_html_74fd22d845ad450e.png]] 1888 +(% style="text-align:center" %) 1889 +[[image:07-5 Basic instructions_html_74fd22d845ad450e.png||height="210" width="750"]] 1914 1914 1915 -|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Sett device and content**|(% rowspan="2" %)**Remarks** 1916 -|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content** 1891 +|(% colspan="2" rowspan="2" %)((( 1892 +**Set items** 1893 +)))|(% colspan="3" %)**Sett device and content**|(% rowspan="2" %)**Remarks** 1894 +|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content** 1917 1917 |(% colspan="2" %)Coordinate points|(s2)|R0|K10| 1918 1918 |(% rowspan="2" %)Point 1|X coordinate|(s2)+1|R1|K5| 1919 1919 |Y coordinate|(s2)+2|R2|K20| ... ... @@ -1961,6 +1961,7 @@ 1961 1961 1962 1962 **Example** 1963 1963 1942 +(% style="text-align:center" %) 1964 1964 [[image:07-5 Basic instructions_html_5519d7b41f15b6d6.png]] 1965 1965 1966 1966 [[image:07-5 Basic instructions_html_ace075fb7675de8e.gif]] When -100 ≤ D0(X) < 0, D100(Y)=