Changes for page 12 Clock operation

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

From version 15.1
edited by Bob
on 2022/11/23 11:09
Change comment: There is no comment for this version
To version 29.1
edited by Mora Zhou
on 2023/11/21 17:27
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Bob
1 +XWiki.Mora
Content
... ... @@ -1,4 +1,4 @@
1 -== ==
1 +== ==
2 2  
3 3  == **TADD/The addition of clock data** ==
4 4  
... ... @@ -68,11 +68,12 @@
68 68  |SM151|Carry|It is ON when the result of the TADD(P) instruction exceeds the maximum clock data value of 23:59:59
69 69  |SM153|Zero|It is ON when the result of the TADD(P) instruction is 0:00:00
70 70  
71 -✎**Note:**
71 +(% class="box infomessage" %)
72 +(((
73 +✎**Note:** The devices specified in (s1), (s2), (d) occupy 3 points respectively. Be careful not to overlap with the device used for machine control.
72 72  
73 -The devices specified in (s1), (s2), (d) occupy 3 points respectively. Be careful not to overlap with the device used for machine control.
74 -
75 75  When using the clock data time (hour, minute, second) of the built-in real-time clock of the CPU module, use the TRD(P) instruction to read the value of the special register and assign the word device to each operand.
76 +)))
76 76  
77 77  **Error code**
78 78  
... ... @@ -933,7 +933,8 @@
933 933  
934 934  **Timing Chart**
935 935  
936 -[[image:企业微信截图_16691725418532.png]]
937 +(% style="text-align:center" %)
938 +[[image:图片3.png]]
937 937  
938 938  **Features**
939 939  
... ... @@ -962,7 +962,8 @@
962 962  
963 963  **Example**
964 964  
965 -[[image:企业微信截图_16691729278938.png]]
967 +(% style="text-align:center" %)
968 +[[image:图片4.png]]
966 966  
967 967  T1 is used for storing time, setting the expected time as K10 and the time base as K10000.
968 968  
... ... @@ -969,3 +969,211 @@
969 969  After set on (M8) contact and waiting for the value in the turn-on delay timer (T1) to reach the estimated time of 10s, the contact of (T1) on and output Y0.
970 970  
971 971  If the (M8) contact is off in the process of turn-on delay timer (T1) timing, the turn-on delay timer (T1) value is cleared to 0 and the timing ends.
975 +
976 +== **TONR/BIN 16-bit Hold-type turn-on delay timer** ==
977 +
978 +**TONR(P)**
979 +
980 +Specify the T timer device in (s1), the expected time in (s2), and the time base (resolution) in (s3). And store the time values of the accumulated multiple timing intervals into the device specified in (s1).
981 +
982 +PLC Editor2 version that supports this instruction: 2.3.1 and above.
983 +
984 +-[TONR (s1) (s2) (s3)]
985 +
986 +**Content, scope, data type**
987 +
988 +|**parameter**|**Content**|**range**|**type of data**|**Data type (label)**
989 +|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S
990 +|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S
991 +|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S
992 +
993 +**Device used**
994 +
995 +|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension**
996 +|**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**
997 +|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | |
998 +|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | |
999 +|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | |
1000 +
1001 +**Timing Chart**
1002 +
1003 +(% style="text-align:center" %)
1004 +[[image:图片2.png]]
1005 +
1006 +**Features**
1007 +
1008 +1) When the timer starts timing, the instruction after the timer starts to run when the timing time is greater than the time value of "the product of S2 and S3".
1009 +
1010 +2) When the coil in front of the timer is off, the TONR timer saves the current value. When the coil is on, the TONR timer continues to timing.
1011 +
1012 +3) The current value of TONR can be cleared using the reset command. After the preset time is reached, TONR maintains the current value of the timer.
1013 +
1014 +
1015 +|**S3 time base**|**Actual value**
1016 +|1|100us
1017 +|10|1ms
1018 +|100|10ms
1019 +|1000|100ms
1020 +|10000|1s
1021 +
1022 +**Precautions**
1023 +
1024 +• Avoid timer number conflict: the same timer number cannot be used for TON, TONR, TOF, TP, OUT_T timers at the same time. For example, TON T32 and TOF T32 cannot be used at the same time (it may cause data confusion and not achieve the effect of the corresponding instruction function).
1025 +
1026 +**Error code**
1027 +
1028 +|**Error code**|**Content**
1029 +|4084H|Input data in (s2) (s3) is outside the specified range.
1030 +|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range.
1031 +|4086H|Device tpye in (s1) is outside the specified range.
1032 +
1033 +**Example**
1034 +
1035 +(% style="text-align:center" %)
1036 +[[image:图片1.png]]
1037 +
1038 +T1 is used for storing time, setting the expected time as K10 and the time base as K10000.
1039 +
1040 +When the (M8) contact off and on again during timing. (T1) maintains the value at the last disconnection and continues timing until the estimated time of 10s. After the estimated time is reached, the (T1) contact on and output Y0. If the (M8) contact off in this time, the (T1) contact is still ON but Y0 is off.
1041 +
1042 +When (M0) contact turn ON, the (T1) timer value is cleared to 0 with the RST reset command, the (T1) contact is off, and the Y0 OFF.
1043 +
1044 +== **TOF/BIN 16-bit Turn-off delay timer** ==
1045 +
1046 +**TOF(P)**
1047 +
1048 +Specify the T timer device in (s1), the expected time in (s2), and the time base (resolution) in (s3). And store the time values of the accumulated multiple timing intervals into the device specified in (s1).
1049 +
1050 +PLC Editor2 version that supports this instruction: 2.3.1 and above.
1051 +
1052 +-[TOF (s1) (s2) (s3)]
1053 +
1054 +**Content, scope, data type**
1055 +
1056 +|**parameter**|**Content**|**range**|**type of data**|**Data type (label)**
1057 +|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S
1058 +|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S
1059 +|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S
1060 +
1061 +**Device used**
1062 +
1063 +|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension**
1064 +|**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**
1065 +|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | |
1066 +|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | |
1067 +|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | |
1068 +
1069 +**Timing Chart**
1070 +
1071 +(% style="text-align:center" %)
1072 +[[image:图片5.png]]
1073 +
1074 +**Features**
1075 +
1076 +1) After the input is disconnected, the output is delayed for a fixed time before stopping. The timer bit turns on immediately when the input is started and the current value is set to 0. When the input is disconnected, timing starts until the current time is equal to the preset time, then timing stops.
1077 +
1078 +2) When the preset value is reached, the timer bit is disconnected and the current value stops incrementing; If the input is turned on again before the TOF reaches the preset value, the timer bit remains on.
1079 +
1080 +3) For the TOF timer to start timing, the enable input must perform an on-off transition.
1081 +
1082 +
1083 +|**S3 time base**|**Actual value**
1084 +|1|100us
1085 +|10|1ms
1086 +|100|10ms
1087 +|1000|100ms
1088 +|10000|1s
1089 +
1090 +**Precautions**
1091 +
1092 +• Avoid timer number conflict: the same timer number cannot be used for TON, TONR, TOF, TP, OUT_T timers at the same time. For example, TON T32 and TOF T32 cannot be used at the same time (it may cause data confusion and not achieve the effect of the corresponding instruction function).
1093 +
1094 +**Error code**
1095 +
1096 +|**Error code**|**Content**
1097 +|4084H|Input data in (s2) (s3) is outside the specified range.
1098 +|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range.
1099 +|4086H|Device tpye in (s1) is outside the specified range.
1100 +
1101 +**Example**
1102 +
1103 +(% style="text-align:center" %)
1104 +[[image:图片6.png]]
1105 +
1106 +T1 is used for storing time, setting the expected time as K10 and the time base as K10000.
1107 +
1108 +Make the (M8) contact ON and oFF, When (M8) ON, (T1) contact is ON and Y0 is ON. when (M8) OFF, (Y0) is OFF and (T1) starts timing. When the estimated time of 5s is reached, the (T1) contact is also 0FF.
1109 +
1110 +If the (M8) contact ON again during (T1) timing, the (T1) value clears to 0 and the timing ends
1111 +
1112 +== **TP/BIN 16-bit Start pulse timer** ==
1113 +
1114 +**TP(P)**
1115 +
1116 +Specify the T timer device in (s1), the expected time in (s2), and the time base (resolution) in (s3). And output TRUE in the set time of "(s2)*(s3)" product.
1117 +
1118 +PLC Editor2 version that supports this instruction: 2.3.1 and above.
1119 +
1120 +-[TP (s1) (s2) (s3)]
1121 +
1122 +**Content, scope, data type**
1123 +
1124 +|**parameter**|**Content**|**range**|**type of data**|**Data type (label)**
1125 +|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S
1126 +|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S
1127 +|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S
1128 +
1129 +**Device used**
1130 +
1131 +|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension**
1132 +|**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**
1133 +|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | |
1134 +|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | |
1135 +|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | |
1136 +
1137 +**Timing Chart**
1138 +
1139 +(% style="text-align:center" %)
1140 +[[image:图片7.png]]
1141 +
1142 +**Features**
1143 +
1144 +Timer that outputs TRUE only for the set time after startup
1145 +
1146 +1) When the enable input is turned on, timer (s1) is started and timer (s1) bit is immediately turned on. Timer (s1) stops as time increases and reaches the expected time.
1147 +
1148 +2) After timer (s1) reaches the predetermined time (s2), timer (s1) bit is disconnected. At this time, timer (s1) stops increasing. If the enable input becomes FALSE, timer (s1) will reset. The expected time (s2) becomes 0.
1149 +
1150 +3) After starting, if the enable input becomes FALSE before the timer (s1) reaches the expected time (s2), the timer will be reset after reaching the expected time (s2).
1151 +
1152 +
1153 +|**S3 time base**|**Actual value**
1154 +|1|100us
1155 +|10|1ms
1156 +|100|10ms
1157 +|1000|100ms
1158 +|10000|1s
1159 +
1160 +**Precautions**
1161 +
1162 +• Avoid timer number conflict: the same timer number cannot be used for TON, TONR, TOF, TP, OUT_T timers at the same time. For example, TON T32 and TOF T32 cannot be used at the same time (it may cause data confusion and not achieve the effect of the corresponding instruction function).
1163 +
1164 +**Error code**
1165 +
1166 +|**Error code**|**Content**
1167 +|4084H|Input data in (s2) (s3) is outside the specified range.
1168 +|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range.
1169 +|4086H|Device tpye in (s1) is outside the specified range.
1170 +
1171 +**Example**
1172 +
1173 +(% style="text-align:center" %)
1174 +[[image:图片8.png]]
1175 +
1176 +T1 is used for storing time, setting the expected time as K5 and the time base as K10000.
1177 +
1178 +When the enable input (M8) is on, the timer (T1) is started and the timer (T1) bit turns on immediately. Timer (T1) stops as time increases and reaches the expected time.
1179 +
1180 +After timer (T1) reaches a predetermined time of 5s, timer (T1) bit is disconnected. At this time, timer (T1) stops increasing. If the enable input (M8) becomes FALSE, timer (T1) will reset. The expected time becomes 0.
1181 +
1182 +After startup, if the enable input (M8) becomes FALSE before the timer (T1) reaches the estimated time of 5s, the timer will be reset after reaching the estimated time of 5s.
企业微信截图_16691733488965.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +16.1 KB
Content
企业微信截图_16691733566206.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +6.4 KB
Content
企业微信截图_16691735281572.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +5.2 KB
Content
企业微信截图_16691735325382.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +14.8 KB
Content
企业微信截图_16691747709508.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +8.4 KB
Content
企业微信截图_1669174775341.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +4.2 KB
Content
企业微信截图_16692613377006.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +17.1 KB
Content
企业微信截图_16692614835389.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +4.8 KB
Content
企业微信截图_16692615431415.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +16.1 KB
Content
图片1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +4.4 KB
Content
图片2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +36.7 KB
Content
图片3.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +29.3 KB
Content
图片4.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +3.1 KB
Content
图片5.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +22.8 KB
Content
图片6.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +3.2 KB
Content
图片7.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +19.9 KB
Content
图片8.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +3.0 KB
Content