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
-
... ... @@ -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,21 +1163,17 @@ 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