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.8
edited by Joey
on 2022/06/09 15:52
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  
... ... @@ -921,7 +921,7 @@
921 921  
922 922  • 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.
923 923  
924 -✎**Note**
922 +✎**Note:**
925 925  
926 926  • The device specified in (d1) occupies 2 points. Be careful not to overlap with the device used for machine control.
927 927  
... ... @@ -934,15 +934,14 @@
934 934  |4086H|When writing the specified device range exceeds the corresponding device range
935 935  |4084H|When the value of (s) is negative
936 936  
937 -
938 -
939 939  **Example**
940 940  
941 -[[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"]]
942 942  
943 943  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.
944 944  
945 -{{id name="_Toc8523"/}}{{id name="_Toc9364"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DHOUR/Hour measuring 32 bits**
942 +== **DHOUR/Hour measuring 32 bits** ==
946 946  
947 947  **DHOUR(P)**
948 948  
... ... @@ -954,9 +954,7 @@
954 954  
955 955  |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
956 956  |(s)|(((
957 -The time when the alarm (d2) is turned ON
958 -
959 -(set by one hour)
954 +The time when the alarm (d2) is turned ON (set by one hour)
960 960  )))|0 to 2147483647|Signed BIN 32 bit|ANY32
961 961  |(d1)|Device that stores the current value of measurement (specified data register for power failure retention)|-|Unsigned BIN 32 bit|(((
962 962  ANY32_ARRAY
... ... @@ -967,19 +967,15 @@
967 967  
968 968  **Device used**
969 969  
970 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
971 -**Offset**
972 -
973 -**modification**
965 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="18" %)**Devices**|(((
966 +**Offset modification**
974 974  )))|(((
975 -**Pulse**
976 -
977 -**extension**
968 +**Pulse extension**
978 978  )))
979 -|**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**
980 -|(% rowspan="3" %)DHOUR|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●|●|●|●|●| |●|●
981 -|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | |●|●
982 -|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|●|●|●|●|●| | | | | | | | | | | | | |●|●
983 983  
984 984  **Features**
985 985  
... ... @@ -1001,7 +1001,7 @@
1001 1001  
1002 1002  • 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.
1003 1003  
1004 -✎**Note**
995 +✎**Note:**
1005 1005  
1006 1006  • The device specified in (d1) occupies 3 points. Be careful not to overlap with the device used for machine control.
1007 1007  
... ... @@ -1014,17 +1014,16 @@
1014 1014  |4086H|When writing the specified device range exceeds the corresponding device range
1015 1015  |4084H|When the value of (s) is negative
1016 1016  
1017 -
1018 -
1019 1019  **Example**
1020 1020  
1021 -[[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"]]
1022 1022  
1023 1023  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.
1024 1024  
1025 -**{{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)** ==
1026 1026  
1027 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **STOH(P)**
1017 +**STOH(P)**
1028 1028  
1029 1029  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.
1030 1030  
... ... @@ -1033,39 +1033,35 @@
1033 1033  **Content, range and data type**
1034 1034  
1035 1035  |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1036 -|(s)|{{id name="OLE_LINK353"/}}The device start number that stores the clock data before conversion|0 to 32767|Signed BIN 16 bit|ANY16
1026 +|(s)|The device start number that stores the clock data before conversion|0 to 32767|Signed BIN 16 bit|ANY16
1037 1037  |(d)|The device start number that stores the converted clock data|-|Signed BIN 16 bit|(((
1038 -ANY16_ARRAY
1039 -
1040 -(number of elements: 3)
1028 +ANY16_ARRAY (number of elements: 3)
1041 1041  )))
1042 1042  
1043 1043  **Device used**
1044 1044  
1045 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
1046 -**Offset**
1047 -
1048 -**modification**
1033 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|(((
1034 +**Offset modification**
1049 1049  )))|(((
1050 -**Pulse**
1051 -
1052 -**extension**
1036 +**Pulse extension**
1053 1053  )))
1054 -|**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**
1055 -|(% rowspan="2" %)STOH|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|●
1056 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
1038 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
1039 +|(% rowspan="2" %)STOH|Parameter 1|●|●|●|●|●|●|●|●|●|●|●
1040 +|Parameter 2| |●|●|●|●|●|●|●|●|●|●
1057 1057  
1058 1058  **Features**
1059 1059  
1060 1060  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.
1061 1061  
1062 -[[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"]]
1063 1063  
1064 1064  **Example**
1065 1065  
1066 1066  When 29,011 seconds are specified in (s)
1067 1067  
1068 -[[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"]]
1069 1069  
1070 1070  **Error code**
1071 1071  
... ... @@ -1076,17 +1076,19 @@
1076 1076  
1077 1077  **Example**
1078 1078  
1079 -[[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"]]
1080 1080  
1081 1081  Set D0 seconds to 12537
1082 1082  
1083 1083  The hour, minute and second of D10 after the M0 coil is turned on are
1084 1084  
1085 -[[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"]]
1086 1086  
1087 -{{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)** ==
1088 1088  
1089 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DSTOH(P)**
1077 +**DSTOH(P)**
1090 1090  
1091 1091  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.
1092 1092  
... ... @@ -1097,37 +1097,33 @@
1097 1097  |**Parameter**|**Content**|**Range**|**Data type**|**Data     type (label)**
1098 1098  |(s)|The device start number that stores the clock data before conversion|0 to 117964799|Signed BIN 32 bit|ANY32
1099 1099  |(d)|The device start number that stores the converted clock data|-|Signed BIN 16 bit|(((
1100 -ANY16_ARRAY
1101 -
1102 -(number of elements: 3)
1088 +ANY16_ARRAY (number of elements: 3)
1103 1103  )))
1104 1104  
1105 1105  **Device used**
1106 1106  
1107 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
1108 -**Offset**
1109 -
1110 -**modification**
1093 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|(((
1094 +**Offset modification**
1111 1111  )))|(((
1112 -**Pulse**
1113 -
1114 -**extension**
1096 +**Pulse extension**
1115 1115  )))
1116 -|**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**
1117 -|(% rowspan="2" %)DSTOH|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|●
1118 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|●
1098 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
1099 +|(% rowspan="2" %)DSTOH|Parameter 1|●|●|●|●|●|●|●|●|●|●|●
1100 +|Parameter 2| |●|●|●|●|●|●|●|●|●|●
1119 1119  
1120 1120  **Features**
1121 1121  
1122 1122  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.
1123 1123  
1124 -[[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"]]
1125 1125  
1126 1126  **Example**
1127 1127  
1128 1128  When 45,325 seconds is specified in (s)
1129 1129  
1130 -[[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"]]
1131 1131  
1132 1132  **Error code**
1133 1133  
... ... @@ -1138,15 +1138,17 @@
1138 1138  
1139 1139  **Example**
1140 1140  
1141 -[[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"]]
1142 1142  
1143 1143  Set D0 seconds to 2152537
1144 1144  
1145 1145  The hour, minute and second of D10 after the M0 coil is turned on are
1146 1146  
1147 -[[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"]]
1148 1148  
1149 -{{id name="_Toc2937"/}}{{id name="_Toc24209"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TCMP/Clock data comparison**
1135 +== **TCMP/Clock data comparison** ==
1150 1150  
1151 1151  **TCMP(P)**
1152 1152  
... ... @@ -1165,29 +1165,26 @@
1165 1165  
1166 1166  **Device used**
1167 1167  
1168 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
1169 -**Offset**
1170 -
1171 -**modification**
1154 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="17" %)**Devices**|(((
1155 +**Offset modification**
1172 1172  )))|(((
1173 -**Pulse**
1174 -
1175 -**extension**
1157 +**Pulse extension**
1176 1176  )))
1177 -|**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**
1178 -|(% rowspan="5" %)TCMP|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
1179 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
1180 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
1181 -|Parameter 4| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
1182 -|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|●|●|●|●|●| | | | | | | | | | | | |●|●
1183 1183  
1184 1184  **Features**
1185 1185  
1186 1186  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.
1187 1187  
1188 -[[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"]]
1189 1189  
1190 -✎**Note**
1173 +✎**Note:**
1191 1191  
1192 1192  The device specified in (s4) and (d) occupies 3 points. Be careful not to overlap with the device used for machine control.
1193 1193  
... ... @@ -1201,26 +1201,29 @@
1201 1201  |4084H|(((
1202 1202  When the value specified in (s) and (s4) is not in the range of 0 to 23
1203 1203  
1204 -{{id name="OLE_LINK355"/}}When the value specified in (s2),(s3) (s4)+1 and (s4)+2 is not in the range of 0 to 59
1187 +When the value specified in (s2),(s3) (s4)+1 and (s4)+2 is not in the range of 0 to 59
1205 1205  )))
1206 1206  
1207 1207  **Example**
1208 1208  
1209 -[[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"]]
1210 1210  
1211 1211  Set D10 to 1, D11 to 30, D12 to 0
1212 1212  
1213 1213  When M0 is turned on, the time that D23 will come is 0:31:27
1214 1214  
1215 -[[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"]]
1216 1216  
1217 1217  M10 is turned ON
1218 1218  
1219 -[[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"]]
1220 1220  
1221 -{{id name="_Toc29031"/}}{{id name="_Toc22923"/}}**TZCP/Clock data bandwidth comparison**
1207 +== **TZCP/Clock data bandwidth comparison** ==
1222 1222  
1223 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TZCP(P)**
1209 +**TZCP(P)**
1224 1224  
1225 1225  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.
1226 1226  
... ... @@ -1230,46 +1230,37 @@
1230 1230  
1231 1231  |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1232 1232  |(s1)|Specify the "hour" of the lower limit time (hour, minute, second)|-|Signed BIN 16 bit|(((
1233 -ANY16_ARRAY
1234 -
1235 -(number of elements: 3)
1219 +ANY16_ARRAY (number of elements: 3)
1236 1236  )))
1237 1237  |(s2)|Specify the "hour" of the lower limit time (hour, minute, second)|-|Signed BIN 16 bit|(((
1238 -ANY16_ARRAY
1239 -
1240 -(number of elements: 3)
1222 +ANY16_ARRAY (number of elements: 3)
1241 1241  )))
1242 1242  |(s3)|Specify "hour" of time data (hour, minute, second)|-|Signed BIN 16 bit|(((
1243 -ANY16_ARRAY
1244 -
1245 -(number of elements: 3)
1225 +ANY16_ARRAY (number of elements: 3)
1246 1246  )))
1247 1247  |(d)|The bit device is turned ON/OFF according to the comparison result.|-|Bit|(((
1248 -ANY16_ARRAY
1249 -
1250 -(number of elements: 3)
1228 +ANY16_ARRAY (number of elements: 3)
1251 1251  )))
1252 1252  
1253 1253  **Device used**
1254 1254  
1255 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Offset modification**|(((
1256 -**Pulse**
1257 -
1258 -**extension**
1233 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="10" %)**Devices**|**Offset modification**|(((
1234 +**Pulse extension**
1259 1259  )))
1260 -|**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**
1261 -|(% rowspan="4" %)TZCP|Parameter 1| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
1262 -|Parameter 2| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
1263 -|Parameter 3| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
1264 -|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|●|●|●|●|●| | | | | |●|●
1265 1265  
1266 1266  **Features**
1267 1267  
1268 1268  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.
1269 1269  
1270 -[[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"]]
1271 1271  
1272 -✎**Note**
1249 +✎**Note:**
1273 1273  
1274 1274  • The devices specified in (s1), (s2), (s3), (d) occupy 3 points. Be careful not to overlap with the device used for machine control.
1275 1275  
... ... @@ -1290,27 +1290,32 @@
1290 1290  
1291 1291  **Example**
1292 1292  
1293 -[[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"]]
1294 1294  
1295 1295  Set D0 time to 16:30:00 and D10 time to 4:30:0
1296 1296  
1297 -[[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"]]
1298 1298  
1299 -[[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"]]
1300 1300  
1301 1301  After the coil is turned on, the reading time to D20 time is 8:30:00
1302 1302  
1303 -[[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"]]
1304 1304  
1305 1305  M0/M12 is ON
1306 1306  
1307 -[[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"]]
1308 1308  
1309 -{{id name="_Toc6129"/}}[[image:07-5 Basic instructions_html_a2e3294e01b2f206.gif]] **7.13 Data control instructions**
1291 += **Data control instructions** =
1310 1310  
1311 -{{id name="_Toc3339"/}}{{id name="_Toc27829"/}}{{id name="_Toc9204"/}}**BAND/BIN 16-bit data dead zone control**
1293 +== **BAND/BIN 16-bit data dead zone control** ==
1312 1312  
1313 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **BAND(P)**
1295 +**BAND(P)**
1314 1314  
1315 1315  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).
1316 1316  
... ... @@ -1326,20 +1326,16 @@
1326 1326  
1327 1327  **Device used**
1328 1328  
1329 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
1330 -**Offset**
1331 -
1332 -**modification**
1311 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|(((
1312 +**Offset modification**
1333 1333  )))|(((
1334 -**Pulse**
1335 -
1336 -**extension**
1314 +**Pulse extension**
1337 1337  )))
1338 -|**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**
1339 -|(% rowspan="4" %)BAND|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
1340 -|Parameter 2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|●
1341 -|Parameter 3| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|●
1342 -|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| |●|●|●|●|●|●|●|●| | |●|●
1343 1343  
1344 1344  **Features**
1345 1345  
... ... @@ -1350,7 +1350,6 @@
1350 1350  |When dead zone high limit (s1) <input value (s3)|Input value (s3)- Dead zone high limit (s2)
1351 1351  |When dead zone low limit (s1) ≤ input value (s3) ≤ dead zone low limit (s2)|0
1352 1352  
1353 -
1354 1354  (((
1355 1355  •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.
1356 1356  
... ... @@ -1358,7 +1358,8 @@
1358 1358  
1359 1359  the output value = -32768-10=8000H-000AH=7FFFH=32758.
1360 1360  
1361 -[[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"]]
1362 1362  )))
1363 1363  
1364 1364  **Error code**
... ... @@ -1368,9 +1368,10 @@
1368 1368  |4086H|When the specified device range for writing exceeds the range of the corresponding device.
1369 1369  |4084H|When the low limit specified in (s1) is greater than the high limit specified in (s2).
1370 1370  
1371 -**Example &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**
1349 +**Example**
1372 1372  
1373 -[[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"]]
1374 1374  
1375 1375  When X000 is ON, when D0<(-1,000), the value of ( D0)-(-1,000) is stored in (D1).
1376 1376  
... ... @@ -1378,7 +1378,7 @@
1378 1378  
1379 1379  • When D0<1,000, the value of (D0)-1,000 is stored in D1.
1380 1380  
1381 -{{id name="_Toc1180"/}}{{id name="_Toc21657"/}}{{id name="_Toc27323"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **DBAND/BIN 32-bit data dead zone control**
1360 +{{id name="_Toc1180"/}}{{id name="_Toc21657"/}}{{id name="_Toc27323"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]]**DBAND/BIN 32-bit data dead zone control**
1382 1382  
1383 1383  **DBAND(P)**
1384 1384