Changes for page 12 Clock operation

Last modified by Mora Zhou on 2023/11/21 17:27

From version 1.5
edited by Joey
on 2022/06/09 15:37
Change comment: (Autosaved)
To version 1.6
edited by Joey
on 2022/06/09 15:42
Change comment: (Autosaved)

Summary

Details

Page properties
Content
... ... @@ -659,7 +659,7 @@
659 659  
660 660  == **TWR/Clock data writing** ==
661 661  
662 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TWR(P)**
662 +**TWR(P)**
663 663  
664 664  Write the clock data of the built-in real-time clock of the CPU module.
665 665  
... ... @@ -672,17 +672,13 @@
672 672  
673 673  **Device used**
674 674  
675 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
676 -**Offset**
677 -
678 -**modification**
675 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="4" %)**Devices**|(((
676 +**Offset modification**
679 679  )))|(((
680 -**Pulse**
681 -
682 -**extension**
678 +**Pulse extension**
683 683  )))
684 -|**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**
685 -|TWR|Parameter 1| | | | | | | | | | | | | | |●|●|●|●| | | | | | |●|●
680 +|**T**|**C**|**D**|**R**|**[D]**|**XXP**
681 +|TWR|Parameter 1|●|●|●|●|●|●
686 686  
687 687  **Features**
688 688  
... ... @@ -717,7 +717,7 @@
717 717  |SD105|The year data of the clock data is stored in a 4-digit BIN code of the Gregorian calendar.
718 718  |SD106|The week data of the clock data is stored in BIN code. (0: day, 1: one, ..., 6: six) are stored in BIN code.
719 719  
720 -✎**Note**
716 +✎**Note:**
721 721  
722 722  The device specified in (s) occupies 7 points. Be careful not to overlap with the device used for machine control.
723 723  
... ... @@ -730,13 +730,15 @@
730 730  
731 731  Set D0 date and time to 2020-2-19 12:36:00 in advance
732 732  
733 -[[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"]]
734 734  
735 735  At the moment when the time 12:36:00 arrives, turn on the M0 coil and write the time.
736 736  
737 -[[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"]]
738 738  
739 -{{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)**
737 +== **HTOS/16-bit data conversion of time data (hour, minute, second → second)** ==
740 740  
741 741  **HTOS(P)**
742 742  
... ... @@ -752,26 +752,26 @@
752 752  
753 753  **Device used**
754 754  
755 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
756 -**Pulse**
757 -
758 -**extension**
753 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|**Offset modification**|(((
754 +**Pulse extension**
759 759  )))
760 -|**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**
761 -|(% rowspan="2" %)HTOS|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|●
762 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
756 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
757 +|(% rowspan="2" %)HTOS|Parameter 1|●|●|●|●|●|●|●|●|●|●|●
758 +|Parameter 2| |●|●|●|●|●|●|●|●|●|●
763 763  
764 764  **Features**
765 765  
766 766  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).
767 767  
768 -[[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"]]
769 769  
770 770  **Example**
771 771  
772 772  When 4 hours, 29 minutes and 31 seconds are specified in (s)
773 773  
774 -[[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"]]
775 775  
776 776  **Error code**
777 777  
... ... @@ -779,7 +779,7 @@
779 779  |4085H|When reading the specified device range exceeds the corresponding device range
780 780  |4086H|When writing the specified device range exceeds the corresponding device range
781 781  |4084H|(((
782 -{{id name="OLE_LINK348"/}}When the calculation result is not in the range of 0 to 32767
780 +When the calculation result is not in the range of 0 to 32767
783 783  
784 784  When the value specified in (s) is not in the range of 0 to 9
785 785  
... ... @@ -788,19 +788,22 @@
788 788  
789 789  **Example**
790 790  
791 -[[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"]]
792 792  
793 793  D0 time is set to 5:36:53
794 794  
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" %)
799 799  [[image:07-5 Basic instructions_html_1dd6c5de05890797.png]]
800 800  
801 -{{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)** ==
802 802  
803 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DHTOS(P)**
804 +**DHTOS(P)**
804 804  
805 805  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).
806 806  
... ... @@ -814,30 +814,28 @@
814 814  
815 815  **Device used**
816 816  
817 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
818 -**Offset**
819 -
820 -**modification**
818 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|(((
819 +**Offset modification**
821 821  )))|(((
822 -**Pulse**
823 -
824 -**extension**
821 +**Pulse extension**
825 825  )))
826 -|**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**
827 -|(% rowspan="2" %)DHTOS|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|●
828 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
823 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
824 +|(% rowspan="2" %)DHTOS|Parameter 1|●|●|●|●|●|●|●|●|●|●|●
825 +|Parameter 2| |●|●|●|●|●|●|●|●|●|●
829 829  
830 830  **Features**
831 831  
832 832  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).
833 833  
834 -[[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"]]
835 835  
836 836  **Example**
837 837  
838 838  When 35 hours, 10 minutes and 58 seconds are specified in (s)
839 839  
840 -[[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"]]
841 841  
842 842  **Error code**
843 843  
... ... @@ -852,17 +852,20 @@
852 852  
853 853  **Example**
854 854  
855 -[[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"]]
856 856  
857 857  D0 time is set to 15:33:24
858 858  
859 -[[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"]]
860 860  
861 861  The second of D10 after the M0 coil is turned on is
862 862  
863 -[[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"]]
864 864  
865 -{{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**
866 866  
867 867  **HOUR(P)**
868 868  
... ... @@ -887,19 +887,15 @@
887 887  
888 888  **Device used**
889 889  
890 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
891 -**Offset**
892 -
893 -**modification**
892 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="17" %)**Devices**|(((
893 +**Offset modification**
894 894  )))|(((
895 -**Pulse**
896 -
897 -**extension**
895 +**Pulse extension**
898 898  )))
899 -|**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**
900 -|(% rowspan="3" %)HOUR|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
901 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|●
902 -|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|●|●|●|●|●| | | | | | | | | | | | |●|●
903 903  
904 904  **Features**
905 905