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 12.1
edited by Bob
on 2022/11/23 11:03
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,5 @@
1 1  (% class="wikigeneratedid" %)
2 -== ==
2 +== ==
3 3  
4 4  == **TADD/The addition of clock data** ==
5 5  
... ... @@ -905,3 +905,67 @@
905 905  
906 906  (% style="text-align:center" %)
907 907  [[image:07-5 Basic instructions_html_f512f36261705953.png||height="48" width="218"]]
908 +
909 +
910 +== **TON/BIN 16-bit Turn-on delay timer** ==
911 +
912 +**TON(P)**
913 +
914 +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).
915 +
916 +PLC Editor2 version that supports this instruction: 2.3.1 and above.
917 +
918 +-[TON (s1) (s2) (s3)]
919 +
920 +**Content, scope, data type**
921 +
922 +|**parameter**|**Content**|**range**|**type of data**|**Data type (label)**
923 +|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S
924 +|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S
925 +|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S
926 +
927 +**Device used**
928 +
929 +|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension**
930 +|**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**
931 +|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | |
932 +|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | |
933 +|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | |
934 +
935 +**Timing Chart**
936 +
937 +[[image:file:///C:\Users\ADMINI~~1\AppData\Local\Temp\ksohtml16256\wps6.jpg]]
938 +
939 +[[image:file:///C:\Users\ADMINI~~1\AppData\Local\Temp\ksohtml16256\wps2.jpg]]**Features**
940 +
941 +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".
942 +
943 +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.
944 +
945 +
946 +|**S3 time base**|**Actual value**
947 +|1|100us
948 +|10|1ms
949 +|100|10ms
950 +|1000|100ms
951 +|10000|1s
952 +
953 +**Precautions**
954 +
955 +• 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).
956 +
957 +**Error code**
958 +
959 +|**Error code**|**Content**
960 +|4084H|Input data in (s2) (s3) is outside the specified range.
961 +|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range.
962 +|4086H|Device tpye in (s1) is outside the specified range.
963 +
964 +**Example**
965 +
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.