Changes for page 12 Clock operation

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

From version 10.1
edited by Jim
on 2022/11/23 10:34
Change comment: There is no comment for this version
To version 16.1
edited by Bob
on 2022/11/23 11:37
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Jim
1 +XWiki.Bob
Content
... ... @@ -1,5 +1,4 @@
1 -(% class="wikigeneratedid" %)
2 -== ==
1 +== ==
3 3  
4 4  == **TADD/The addition of clock data** ==
5 5  
... ... @@ -905,3 +905,202 @@
905 905  
906 906  (% style="text-align:center" %)
907 907  [[image:07-5 Basic instructions_html_f512f36261705953.png||height="48" width="218"]]
907 +
908 +
909 +== **TON/BIN 16-bit Turn-on delay timer** ==
910 +
911 +**TON(P)**
912 +
913 +Specify the T timer device in (s1), the expected time in (s2), and the time base (resolution) in (s3). And the result of the measured individual time interval operation is stored in the device specified in (s1).
914 +
915 +PLC Editor2 version that supports this instruction: 2.3.1 and above.
916 +
917 +-[TON (s1) (s2) (s3)]
918 +
919 +**Content, scope, data type**
920 +
921 +|**parameter**|**Content**|**range**|**type of data**|**Data type (label)**
922 +|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S
923 +|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S
924 +|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S
925 +
926 +**Device used**
927 +
928 +|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension**
929 +|**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**
930 +|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | |
931 +|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | |
932 +|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | |
933 +
934 +**Timing Chart**
935 +
936 +[[image:企业微信截图_16691725418532.png]]
937 +
938 +**Features**
939 +
940 +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".
941 +
942 +2) When the timer value is greater than 0 and less than the time value of "the product of S2 and S3", the timer will stop whenever the contact is disconnected, and when the contact is connected, the timer will start timing again.
943 +
944 +
945 +|**S3 time base**|**Actual value**
946 +|1|100us
947 +|10|1ms
948 +|100|10ms
949 +|1000|100ms
950 +|10000|1s
951 +
952 +**Precautions**
953 +
954 +• 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).
955 +
956 +**Error code**
957 +
958 +|**Error code**|**Content**
959 +|4084H|Input data in (s2) (s3) is outside the specified range.
960 +|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range.
961 +|4086H|Device tpye in (s1) is outside the specified range.
962 +
963 +**Example**
964 +
965 +[[image:企业微信截图_16691729278938.png]]
966 +
967 +T1 is used for storing time, setting the expected time as K10 and the time base as K10000.
968 +
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 +
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.
972 +
973 +== **TONR/BIN 16-bit Hold-type turn-on delay timer** ==
974 +
975 +[[image:file:///C:\Users\ADMINI~~1\AppData\Local\Temp\ksohtml8784\wps1.png]]**TONR(P)**
976 +
977 +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).
978 +
979 +PLC Editor2 version that supports this instruction: 2.3.1 and above.
980 +
981 +-[TONR (s1) (s2) (s3)]
982 +
983 +**Content, scope, data type**
984 +
985 +|**parameter**|**Content**|**range**|**type of data**|**Data type (label)**
986 +|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S
987 +|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S
988 +|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S
989 +
990 +**Device used**
991 +
992 +|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension**
993 +|**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**
994 +|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | |
995 +|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | |
996 +|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | |
997 +
998 +**Timing Chart**
999 +
1000 +[[image:企业微信截图_16691733488965.png]]
1001 +
1002 +**Features**
1003 +
1004 +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".
1005 +
1006 +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.
1007 +
1008 +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.
1009 +
1010 +
1011 +|**S3 time base**|**Actual value**
1012 +|1|100us
1013 +|10|1ms
1014 +|100|10ms
1015 +|1000|100ms
1016 +|10000|1s
1017 +
1018 +**Precautions**
1019 +
1020 +• 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).
1021 +
1022 +**Error code**
1023 +
1024 +|**Error code**|**Content**
1025 +|4084H|Input data in (s2) (s3) is outside the specified range.
1026 +|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range.
1027 +|4086H|Device tpye in (s1) is outside the specified range.
1028 +
1029 +**Example**
1030 +
1031 +[[image:企业微信截图_16691733566206.png]]
1032 +
1033 +T1 is used for storing time, setting the expected time as K10 and the time base as K10000.
1034 +
1035 +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.
1036 +
1037 +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.
1038 +
1039 +== **TOF/BIN 16-bit Turn-off delay timer** ==
1040 +
1041 +[[image:file:///C:\Users\ADMINI~~1\AppData\Local\Temp\ksohtml8784\wps6.png]]**TOF(P)**
1042 +
1043 +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).
1044 +
1045 +PLC Editor2 version that supports this instruction: 2.3.1 and above.
1046 +
1047 +-[TOF (s1) (s2) (s3)]
1048 +
1049 +**Content, scope, data type**
1050 +
1051 +|**parameter**|**Content**|**range**|**type of data**|**Data type (label)**
1052 +|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S
1053 +|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S
1054 +|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S
1055 +
1056 +**Device used**
1057 +
1058 +|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension**
1059 +|**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**
1060 +|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | |
1061 +|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | |
1062 +|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | |
1063 +
1064 +**Timing Chart**
1065 +
1066 +[[image:企业微信截图_16691735325382.png]]
1067 +
1068 +**Features**
1069 +
1070 +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.
1071 +
1072 +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.
1073 +
1074 +3) For the TOF timer to start timing, the enable input must perform an on-off transition.
1075 +
1076 +
1077 +|**S3 time base**|**Actual value**
1078 +|1|100us
1079 +|10|1ms
1080 +|100|10ms
1081 +|1000|100ms
1082 +|10000|1s
1083 +
1084 +**Precautions**
1085 +
1086 +• 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).
1087 +
1088 +**Error code**
1089 +
1090 +|**Error code**|**Content**
1091 +|4084H|Input data in (s2) (s3) is outside the specified range.
1092 +|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range.
1093 +|4086H|Device tpye in (s1) is outside the specified range.
1094 +
1095 +**Example**
1096 +
1097 +[[image:企业微信截图_16691735281572.png]]
1098 +
1099 +T1 is used for storing time, setting the expected time as K10 and the time base as K10000.
1100 +
1101 +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.
1102 +
1103 +If the (M8) contact ON again during (T1) timing, the (T1) value clears to 0 and the timing ends
1104 +
1105 +
2TC2DAI.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Jim
Size
... ... @@ -1,0 +1,1 @@
1 +8.8 KB
Content
企业微信截图_16691725418532.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +17.1 KB
Content
企业微信截图_16691727487041.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Jim
Size
... ... @@ -1,0 +1,1 @@
1 +17.1 KB
Content
企业微信截图_16691729278938.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +4.8 KB
Content
企业微信截图_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