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,34 +412,35 @@ 412 412 413 413 **Device used** 414 414 415 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="5" %)**Devices**|((( 416 -**Offset modification** 415 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="10" %)**Devices**|((( 416 +**Offset** 417 + 418 +**modification** 417 417 )))|((( 418 -**Pulse extension** 420 +**Pulse** 421 + 422 +**extension** 419 419 ))) 420 -|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 421 -|(% rowspan="3" %)TADD|Parameter 1|●|●|●|●|●|●|● 422 -|Parameter 2|●|●|●|●|●|●|● 423 -|Parameter 3|●|●|●|●|●|●|● 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|●|●|●|●|●| | | | | |●|● 424 424 425 425 **Features** 426 426 427 427 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. 428 428 429 -(% style="text-align:center" %) 430 -[[image:07-5 Basic instructions_html_37222a6e282347f9.png||height="79" width="750"]] 433 +[[image:07-5 Basic instructions_html_37222a6e282347f9.png]] 431 431 432 432 **Example** 433 433 434 434 When 6:32:40 and 7:48:10 are added together 435 435 436 -(% style="text-align:center" %) 437 -[[image:07-5 Basic instructions_html_90138670198ab422.png||height="94" width="750"]] 439 +[[image:07-5 Basic instructions_html_90138670198ab422.png]] 438 438 439 439 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. 440 440 441 -(% style="text-align:center" %) 442 -[[image:07-5 Basic instructions_html_bac419ce2dc0dc2.png||height="91" width="750"]] 443 +[[image:07-5 Basic instructions_html_bac419ce2dc0dc2.png]] 443 443 444 444 When the calculation result is 0 (0 hour, 0 minute, 0 second), the zero flag turns on. 445 445 ... ... @@ -451,7 +451,7 @@ 451 451 |SM151|Carry|It is ON when the result of the TADD(P) instruction exceeds the maximum clock data value of 23:59:59 452 452 |SM153|Zero|It is ON when the result of the TADD(P) instruction is 0:00:00 453 453 454 -✎**Note :**455 +✎**Note** 455 455 456 456 The devices specified in (s1), (s2), (d) occupy 3 points respectively. Be careful not to overlap with the device used for machine control. 457 457 ... ... @@ -460,7 +460,7 @@ 460 460 **Error code** 461 461 462 462 |**Error code**|**Content** 463 -|4085H|When reading the specified device range exceeds the corresponding device range 464 +|4085H|{{id name="OLE_LINK344"/}}When reading the specified device range exceeds the corresponding device range 464 464 |4086H|When writing the specified device range exceeds the corresponding device range 465 465 |4084H|((( 466 466 When the values specified in (s1) and (s2) are other than 0 to 23 ... ... @@ -470,26 +470,24 @@ 470 470 471 471 **Example** 472 472 473 -(% style="text-align:center" %) 474 -[[image:07-5 Basic instructions_html_4f75eedee7172bbb.png||height="35" width="349"]] 474 +[[image:07-5 Basic instructions_html_4f75eedee7172bbb.png]] 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" %) 479 479 [[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]] 480 480 481 -(% style="text-align:center" %) 482 482 [[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]] 483 483 484 484 After the coil is turned on, the D20 time is 21:0:0 485 485 486 -(% style="text-align:center" %) 487 487 [[image:07-5 Basic instructions_html_a9b235835aa41200.png]] 488 488 489 -== **TSUB/The subtraction of clock data** == 490 490 491 -**TSUB(P)** 492 492 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 + 493 493 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 . 494 494 495 495 -[TSUB (s1) (s2) (d)] ... ... @@ -515,21 +515,24 @@ 515 515 516 516 **Device used** 517 517 518 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="5" %)**Devices**|((( 519 -**Offset modification** 517 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 518 +**Offset** 519 + 520 +**modification** 520 520 )))|((( 521 -**Pulse extension** 522 +**Pulse** 523 + 524 +**extension** 522 522 ))) 523 -|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 524 -|(% rowspan="3" %)TSUB|Parameter 1|●|●|●|●|●|●|● 525 -|Parameter 2|●|●|●|●|●|●|● 526 -|Parameter 3|●|●|●|●|●|●|● 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| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|● 527 527 528 528 **Features** 529 529 530 530 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. 531 531 532 -(% style="text-align:center" %) 533 533 [[image:07-5 Basic instructions_html_5a93455e4cd8a27.png]] 534 534 535 535 **Example** ... ... @@ -536,12 +536,10 @@ 536 536 537 537 When subtracting 10:40:20 and 3:50:10 538 538 539 -(% style="text-align:center" %) 540 540 [[image:07-5 Basic instructions_html_2473f03fc493780c.png]] 541 541 542 542 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. 543 543 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,23 +571,19 @@ 571 571 572 572 **Example** 573 573 574 -(% style="text-align:center" %) 575 -[[image:07-5 Basic instructions_html_e3a5d4793d3ccd2d.png||height="36" width="372"]] 574 +[[image:07-5 Basic instructions_html_e3a5d4793d3ccd2d.png]] 576 576 577 577 Set D0 time to 16:30:00 and D10 time to 4:30:0 578 578 579 -(% style="text-align:center" %) 580 580 [[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]] 581 581 582 -(% style="text-align:center" %) 583 583 [[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]] 584 584 585 585 After the coil is turned on, the D20 time is 12:00:00 586 586 587 -(% style="text-align:center" %) 588 588 [[image:07-5 Basic instructions_html_8f93ea19ba10652b.png]] 589 589 590 -**TRD/Clock data reading** 586 +{{id name="_Toc10358"/}}{{id name="_Toc12073"/}}[[image:07-5 Basic instructions_html_501fb256fd034ca6.gif]] **TRD/Clock data reading** 591 591 592 592 **TRD(P)** 593 593 ... ... @@ -606,13 +606,17 @@ 606 606 607 607 **Device used** 608 608 609 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="4" %)**Devices**|((( 610 -**Offset modification** 605 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 606 +**Offset** 607 + 608 +**modification** 611 611 )))|((( 612 -**Pulse extension** 610 +**Pulse** 611 + 612 +**extension** 613 613 ))) 614 -|**T**|**C**|**D**|**R**|**[D]**|**XXP** 615 -|TRD|Parameter 1|●|●|●|●|●|● 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| | | | | | | | | | | | | | |●|●|●|●| | | | | | |●|● 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,17 +649,15 @@ 649 649 650 650 **Example** 651 651 652 -(% style="text-align:center" %) 653 -[[image:07-5 Basic instructions_html_b81c1991fec5b4b1.png||height="68" width="250"]] 652 +[[image:07-5 Basic instructions_html_b81c1991fec5b4b1.png]] 654 654 655 655 After the M0 coil is turned on, the current date and time are read as 2020-2-19 13:10:38 Wednesday 656 656 657 -(% style="text-align:center" %) 658 -[[image:07-5 Basic instructions_html_fe82ecd18ebfd787.png||height="48" width="602"]] 656 +[[image:07-5 Basic instructions_html_fe82ecd18ebfd787.png]] 659 659 660 -= =**TWR/Clock data writing**==658 +{{id name="_Toc24237"/}}{{id name="_Toc487"/}}**TWR/Clock data writing** 661 661 662 -**TWR(P)** 660 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TWR(P)** 663 663 664 664 Write the clock data of the built-in real-time clock of the CPU module. 665 665 ... ... @@ -672,13 +672,17 @@ 672 672 673 673 **Device used** 674 674 675 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="4" %)**Devices**|((( 676 -**Offset modification** 673 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 674 +**Offset** 675 + 676 +**modification** 677 677 )))|((( 678 -**Pulse extension** 678 +**Pulse** 679 + 680 +**extension** 679 679 ))) 680 -|**T**|**C**|**D**|**R**|**[D]**|**XXP** 681 -|TWR|Parameter 1|●|●|●|●|●|● 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| | | | | | | | | | | | | | |●|●|●|●| | | | | | |●|● 682 682 683 683 **Features** 684 684 ... ... @@ -713,7 +713,7 @@ 713 713 |SD105|The year data of the clock data is stored in a 4-digit BIN code of the Gregorian calendar. 714 714 |SD106|The week data of the clock data is stored in BIN code. (0: day, 1: one, ..., 6: six) are stored in BIN code. 715 715 716 -✎**Note :**718 +✎**Note** 717 717 718 718 The device specified in (s) occupies 7 points. Be careful not to overlap with the device used for machine control. 719 719 ... ... @@ -726,15 +726,13 @@ 726 726 727 727 Set D0 date and time to 2020-2-19 12:36:00 in advance 728 728 729 -(% style="text-align:center" %) 730 -[[image:07-5 Basic instructions_html_994c66d1a4cbd45f.png||height="57" width="305"]] 731 +[[image:07-5 Basic instructions_html_994c66d1a4cbd45f.png]] 731 731 732 732 At the moment when the time 12:36:00 arrives, turn on the M0 coil and write the time. 733 733 734 -(% style="text-align:center" %) 735 -[[image:07-5 Basic instructions_html_bf3e906ee5265598.png||height="42" width="586"]] 735 +[[image:07-5 Basic instructions_html_bf3e906ee5265598.png]] 736 736 737 -== **HTOS/16-bit data conversion of time data (hour, minute, second → second)** ==737 +{{id name="_Toc5357"/}}{{id name="_Toc6196"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **HTOS/16-bit data conversion of time data (hour, minute, second → second)** 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="9" %)**Devices**|**Offset modification**|((( 754 -**Pulse extension** 753 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|((( 754 +**Pulse** 755 + 756 +**extension** 755 755 ))) 756 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 757 -|(% rowspan="2" %)HTOS|Parameter 1|●|●|●|●|●|●|●|●|●|●|● 758 -|Parameter 2| |●|●|●|●|●|●|●|●|●|● 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| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|● 759 759 760 760 **Features** 761 761 762 762 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). 763 763 764 -(% style="text-align:center" %) 765 -[[image:07-5 Basic instructions_html_a84b7741fd5bef2f.png||height="130" width="550"]] 766 +[[image:07-5 Basic instructions_html_a84b7741fd5bef2f.png]] 766 766 767 767 **Example** 768 768 769 769 When 4 hours, 29 minutes and 31 seconds are specified in (s) 770 770 771 -(% style="text-align:center" %) 772 -[[image:07-5 Basic instructions_html_5effb7bc9b8e5cf7.png||height="162" width="550"]] 772 +[[image:07-5 Basic instructions_html_5effb7bc9b8e5cf7.png]] 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 -When the calculation result is not in the range of 0 to 32767 780 +{{id name="OLE_LINK348"/}}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,22 +786,19 @@ 786 786 787 787 **Example** 788 788 789 -(% style="text-align:center" %) 790 -[[image:07-5 Basic instructions_html_e23e38c4ba4c34bb.png||height="43" width="338"]] 789 +[[image:07-5 Basic instructions_html_e23e38c4ba4c34bb.png]] 791 791 792 792 D0 time is set to 5:36:53 793 793 794 -(% style="text-align:center" %) 795 795 [[image:07-5 Basic instructions_html_2866a121e5ca5713.png]] 796 796 797 797 The time of D10 after the M0 coil is turned on is as below. 798 798 799 -(% style="text-align:center" %) 800 800 [[image:07-5 Basic instructions_html_1dd6c5de05890797.png]] 801 801 802 -= =**DHTOS/32-bit data conversion of time data (hour, minute, second → second)**==799 +{{id name="_Toc13431"/}}{{id name="_Toc5278"/}}**DHTOS/32-bit data conversion of time data (hour, minute, second → second)** 803 803 804 -**DHTOS(P)** 801 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DHTOS(P)** 805 805 806 806 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). 807 807 ... ... @@ -815,28 +815,30 @@ 815 815 816 816 **Device used** 817 817 818 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|((( 819 -**Offset modification** 815 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 816 +**Offset** 817 + 818 +**modification** 820 820 )))|((( 821 -**Pulse extension** 820 +**Pulse** 821 + 822 +**extension** 822 822 ))) 823 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 824 -|(% rowspan="2" %)DHTOS|Parameter 1|●|●|●|●|●|●|●|●|●|●|● 825 -|Parameter 2| |●|●|●|●|●|●|●|●|●|● 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| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|● 826 826 827 827 **Features** 828 828 829 829 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). 830 830 831 -(% style="text-align:center" %) 832 -[[image:07-5 Basic instructions_html_f4be08508575ea01.png||height="99" width="550"]] 832 +[[image:07-5 Basic instructions_html_f4be08508575ea01.png]] 833 833 834 834 **Example** 835 835 836 836 When 35 hours, 10 minutes and 58 seconds are specified in (s) 837 837 838 -(% style="text-align:center" %) 839 -[[image:07-5 Basic instructions_html_5b9ad230ed5e1fd0.png||height="125" width="550"]] 838 +[[image:07-5 Basic instructions_html_5b9ad230ed5e1fd0.png]] 840 840 841 841 **Error code** 842 842 ... ... @@ -851,20 +851,17 @@ 851 851 852 852 **Example** 853 853 854 -(% style="text-align:center" %) 855 -[[image:07-5 Basic instructions_html_ae8ab4379e8bdb91.png||height="45" width="263"]] 853 +[[image:07-5 Basic instructions_html_ae8ab4379e8bdb91.png]] 856 856 857 857 D0 time is set to 15:33:24 858 858 859 -(% style="text-align:center" %) 860 -[[image:07-5 Basic instructions_html_57a15d9e1045e93e.png||height="41" width="313"]] 857 +[[image:07-5 Basic instructions_html_57a15d9e1045e93e.png]] 861 861 862 862 The second of D10 after the M0 coil is turned on is 863 863 864 -(% style="text-align:center" %) 865 -[[image:07-5 Basic instructions_html_194e906b1dc12078.png||height="64" width="365"]] 861 +[[image:07-5 Basic instructions_html_194e906b1dc12078.png]] 866 866 867 -**HOUR/Hour measuring 16-bit** 863 +{{id name="_Ref22686"/}}{{id name="_Toc11231"/}}{{id name="_Toc7401"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **HOUR/Hour measuring 16-bit** 868 868 869 869 **HOUR(P)** 870 870 ... ... @@ -889,15 +889,19 @@ 889 889 890 890 **Device used** 891 891 892 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="17" %)**Devices**|((( 893 -**Offset modification** 888 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 889 +**Offset** 890 + 891 +**modification** 894 894 )))|((( 895 -**Pulse extension** 893 +**Pulse** 894 + 895 +**extension** 896 896 ))) 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|●|●|●|●|●| | | | | | | | | | | | |●|● 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| |●|●|●|●| | | | |●| | | | | | | | | | | | | | |●|● 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,14 +932,15 @@ 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 + 935 935 **Example** 936 936 937 -(% style="text-align:center" %) 938 -[[image:07-5 Basic instructions_html_7570f8c392470a9f.png||height="45" width="320"]] 939 +[[image:07-5 Basic instructions_html_7570f8c392470a9f.png]] 939 939 940 940 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. 941 941 942 -== **DHOUR/Hour measuring 32 bits** ==943 +{{id name="_Toc8523"/}}{{id name="_Toc9364"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DHOUR/Hour measuring 32 bits** 943 943 944 944 **DHOUR(P)** 945 945 ... ... @@ -951,7 +951,9 @@ 951 951 952 952 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 953 953 |(s)|((( 954 -The time when the alarm (d2) is turned ON (set by one hour) 955 +The time when the alarm (d2) is turned ON 956 + 957 +(set by one hour) 955 955 )))|0 to 2147483647|Signed BIN 32 bit|ANY32 956 956 |(d1)|Device that stores the current value of measurement (specified data register for power failure retention)|-|Unsigned BIN 32 bit|((( 957 957 ANY32_ARRAY ... ... @@ -962,15 +962,19 @@ 962 962 963 963 **Device used** 964 964 965 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="18" %)**Devices**|((( 966 -**Offset modification** 968 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 969 +**Offset** 970 + 971 +**modification** 967 967 )))|((( 968 -**Pulse extension** 973 +**Pulse** 974 + 975 +**extension** 969 969 ))) 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|●|●|●|●|●| | | | | | | | | | | | | |●|● 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| |●|●|●|●| | | | |●| | | | | | | | | | | | | | |●|● 974 974 975 975 **Features** 976 976 ... ... @@ -992,7 +992,7 @@ 992 992 993 993 • 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. 994 994 995 -✎**Note :**1002 +✎**Note** 996 996 997 997 • The device specified in (d1) occupies 3 points. Be careful not to overlap with the device used for machine control. 998 998 ... ... @@ -1005,16 +1005,17 @@ 1005 1005 |4086H|When writing the specified device range exceeds the corresponding device range 1006 1006 |4084H|When the value of (s) is negative 1007 1007 1015 + 1016 + 1008 1008 **Example** 1009 1009 1010 -(% style="text-align:center" %) 1011 -[[image:07-5 Basic instructions_html_3f1ef5ecc835de30.png||height="43" width="448"]] 1019 +[[image:07-5 Basic instructions_html_3f1ef5ecc835de30.png]] 1012 1012 1013 1013 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. 1014 1014 1015 - ==**STOH/16-bit data conversion of time data (second → hour, minute, second)**==1023 +**{{id name="_Toc11629"/}}STOH/16-bit data conversion of time data (second → hour, minute, second)** 1016 1016 1017 -**STOH(P)** 1025 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **STOH(P)** 1018 1018 1019 1019 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. 1020 1020 ... ... @@ -1023,35 +1023,39 @@ 1023 1023 **Content, range and data type** 1024 1024 1025 1025 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1026 -|(s)|The device start number that stores the clock data before conversion|0 to 32767|Signed BIN 16 bit|ANY16 1034 +|(s)|{{id name="OLE_LINK353"/}}The device start number that stores the clock data before conversion|0 to 32767|Signed BIN 16 bit|ANY16 1027 1027 |(d)|The device start number that stores the converted clock data|-|Signed BIN 16 bit|((( 1028 -ANY16_ARRAY (number of elements: 3) 1036 +ANY16_ARRAY 1037 + 1038 +(number of elements: 3) 1029 1029 ))) 1030 1030 1031 1031 **Device used** 1032 1032 1033 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|((( 1034 -**Offset modification** 1043 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 1044 +**Offset** 1045 + 1046 +**modification** 1035 1035 )))|((( 1036 -**Pulse extension** 1048 +**Pulse** 1049 + 1050 +**extension** 1037 1037 ))) 1038 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 1039 -|(% rowspan="2" %)STOH|Parameter 1|●|●|●|●|●|●|●|●|●|●|● 1040 -|Parameter 2| |●|●|●|●|●|●|●|●|●|● 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| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|● 1041 1041 1042 1042 **Features** 1043 1043 1044 1044 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. 1045 1045 1046 -(% style="text-align:center" %) 1047 -[[image:07-5 Basic instructions_html_1f5f3f1d80af2a34.png||height="110" width="550"]] 1060 +[[image:07-5 Basic instructions_html_1f5f3f1d80af2a34.png]] 1048 1048 1049 1049 **Example** 1050 1050 1051 1051 When 29,011 seconds are specified in (s) 1052 1052 1053 -(% style="text-align:center" %) 1054 -[[image:07-5 Basic instructions_html_682516cbf773f515.png||height="163" width="550"]] 1066 +[[image:07-5 Basic instructions_html_682516cbf773f515.png]] 1055 1055 1056 1056 **Error code** 1057 1057 ... ... @@ -1062,19 +1062,17 @@ 1062 1062 1063 1063 **Example** 1064 1064 1065 -(% style="text-align:center" %) 1066 -[[image:07-5 Basic instructions_html_e783349d57adf7d2.png||height="47" width="350"]] 1077 +[[image:07-5 Basic instructions_html_e783349d57adf7d2.png]] 1067 1067 1068 1068 Set D0 seconds to 12537 1069 1069 1070 1070 The hour, minute and second of D10 after the M0 coil is turned on are 1071 1071 1072 -(% style="text-align:center" %) 1073 -[[image:07-5 Basic instructions_html_d3c33949e8684891.png||height="52" width="645"]] 1083 +[[image:07-5 Basic instructions_html_d3c33949e8684891.png]] 1074 1074 1075 -= =**DSTOH/32-bit data conversion of time data (second → hour, minute, second)**==1085 +{{id name="_Toc10764"/}}{{id name="_Toc30243"/}}**DSTOH/32-bit data conversion of time data (second → hour, minute, second)** 1076 1076 1077 -**DSTOH(P)** 1087 +[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DSTOH(P)** 1078 1078 1079 1079 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. 1080 1080 ... ... @@ -1085,33 +1085,37 @@ 1085 1085 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1086 1086 |(s)|The device start number that stores the clock data before conversion|0 to 117964799|Signed BIN 32 bit|ANY32 1087 1087 |(d)|The device start number that stores the converted clock data|-|Signed BIN 16 bit|((( 1088 -ANY16_ARRAY (number of elements: 3) 1098 +ANY16_ARRAY 1099 + 1100 +(number of elements: 3) 1089 1089 ))) 1090 1090 1091 1091 **Device used** 1092 1092 1093 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|((( 1094 -**Offset modification** 1105 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 1106 +**Offset** 1107 + 1108 +**modification** 1095 1095 )))|((( 1096 -**Pulse extension** 1110 +**Pulse** 1111 + 1112 +**extension** 1097 1097 ))) 1098 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 1099 -|(% rowspan="2" %)DSTOH|Parameter 1|●|●|●|●|●|●|●|●|●|●|● 1100 -|Parameter 2| |●|●|●|●|●|●|●|●|●|● 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| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|● 1101 1101 1102 1102 **Features** 1103 1103 1104 1104 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. 1105 1105 1106 -(% style="text-align:center" %) 1107 -[[image:07-5 Basic instructions_html_cbf13fc3d10fbe61.png||height="99" width="600"]] 1122 +[[image:07-5 Basic instructions_html_cbf13fc3d10fbe61.png]] 1108 1108 1109 1109 **Example** 1110 1110 1111 1111 When 45,325 seconds is specified in (s) 1112 1112 1113 -(% style="text-align:center" %) 1114 -[[image:07-5 Basic instructions_html_d6045506b13275a0.png||height="135" width="600"]] 1128 +[[image:07-5 Basic instructions_html_d6045506b13275a0.png]] 1115 1115 1116 1116 **Error code** 1117 1117 ... ... @@ -1122,17 +1122,15 @@ 1122 1122 1123 1123 **Example** 1124 1124 1125 -(% style="text-align:center" %) 1126 -[[image:07-5 Basic instructions_html_e7dd49d953db6da4.png||height="39" width="316"]] 1139 +[[image:07-5 Basic instructions_html_e7dd49d953db6da4.png]] 1127 1127 1128 1128 Set D0 seconds to 2152537 1129 1129 1130 1130 The hour, minute and second of D10 after the M0 coil is turned on are 1131 1131 1132 -(% style="text-align:center" %) 1133 -[[image:07-5 Basic instructions_html_10d57bde1ac0a218.png||height="52" width="661"]] 1145 +[[image:07-5 Basic instructions_html_10d57bde1ac0a218.png]] 1134 1134 1135 -== **TCMP/Clock data comparison** ==1147 +{{id name="_Toc2937"/}}{{id name="_Toc24209"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TCMP/Clock data comparison** 1136 1136 1137 1137 **TCMP(P)** 1138 1138 ... ... @@ -1151,17 +1151,21 @@ 1151 1151 1152 1152 **Device used** 1153 1153 1154 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="17" %)**Devices**|((( 1155 -**Offset modification** 1166 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 1167 +**Offset** 1168 + 1169 +**modification** 1156 1156 )))|((( 1157 -**Pulse extension** 1171 +**Pulse** 1172 + 1173 +**extension** 1158 1158 ))) 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|●|●|●|●|●| | | | | | | | | | | | |●|● 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| |●|●|●|●| | | | |●| | | | | | | | | | | | | | |●|● 1165 1165 1166 1166 **Features** 1167 1167