Changes for page 05 Timer and counter

Last modified by Leo Wei on 2024/12/24 22:38

From version 6.1
edited by Leo Wei
on 2024/12/24 22:38
Change comment: There is no comment for this version
To version 2.1
edited by Stone Wu
on 2022/06/15 11:40
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -05 Timer and counter
1 +05 Timer and counter output instructions
Parent
... ... @@ -1,1 +1,1 @@
1 -PLC Editor2.WebHome
1 +PLC Editor2.1 User manual.2\.1 LX5V user manual.WebHome
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.admin
1 +XWiki.Stone
Content
... ... @@ -8,21 +8,22 @@
8 8  
9 9  **Content, range and data type**
10 10  
11 -|Parameter|Content|Range|Data type|Data type (label)
12 -|(d)|Timer device number|-|Counter|ANY
13 -|(value)|Timer setting value|0 to 32767|Unsigned BIN 16 bit|ANY16
11 +(% class="table-bordered" style="width:1200px" %)
12 +|**Parameter**|(% style="width:324px" %)**Content**|(% style="width:197px" %)**Range**|(% style="width:245px" %)**Data type**|(% style="width:283px" %)**Data type (label)**
13 +|(d)|(% style="width:324px" %)Timer device number|(% style="width:197px" %)-|(% style="width:245px" %)Counter|(% style="width:283px" %)ANY
14 +|(value)|(% style="width:324px" %)Timer setting value|(% style="width:197px" %)0 to 32767|(% style="width:245px" %)Unsigned BIN 16 bit|(% style="width:283px" %)ANY16
14 14  
15 15  **Device used**
16 16  
17 -
18 -|(% rowspan="2" %)Instruction|(% rowspan="2" %)Parameter|(% colspan="11" %)Devices|(((
19 -Offset modification
20 -)))|(((
21 -Pulse extension
18 +(% class="table-bordered" style="width:1111px" %)
19 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" style="width:522px" %)**Devices**|(% style="width:201px" %)(((
20 +**Offset modification**
21 +)))|(% style="width:169px" %)(((
22 +**Pulse extension**
22 22  )))
23 -|KnX|KnY|KnM|KnS|T|C|D|R|SD|K|H|[D]|XXP
24 -|(% rowspan="2" %)OUT T|Parameter 1| | | | |●| | | | | | | |
25 -|Parameter 2|●|●|●|●| |●|●|●|●|●|●| |
24 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|(% style="width:67px" %)**K**|(% style="width:67px" %)**H**|(% style="width:201px" %)**[D]**|(% style="width:169px" %)**XXP**
25 +|(% rowspan="2" %)OUT T|Parameter 1| | | | |●| | | | |(% style="width:67px" %) |(% style="width:67px" %) |(% style="width:201px" %) |(% style="width:169px" %)
26 +|Parameter 2|●|●|●|●| |●|●|●|●|(% style="width:67px" %)●|(% style="width:67px" %)●|(% style="width:201px" %) |(% style="width:169px" %)
26 26  
27 27  **Features**
28 28  
... ... @@ -30,12 +30,12 @@
30 30  
31 31  When the operation result before the OUT instruction changes from ON to OFF, the situation is as follows.
32 32  
34 +(% class="table-bordered" %)
35 +|(% rowspan="2" style="width:168px" %)**Timer type**|(% rowspan="2" style="width:101px" %)**Timer coil**|(% rowspan="2" style="width:220px" %)**The current value of the timer**|(% colspan="2" style="width:301px" %)**Before the time limit**|(% colspan="2" style="width:286px" %)**After the time limit**
36 +|(% style="width:149px" %)**Normally open contact**|(% style="width:151px" %)**Normally closed contact**|(% style="width:141px" %)**Normally open contact**|(% style="width:145px" %)**Normally closed contact**
37 +|(% style="width:168px" %)Timer|(% style="width:101px" %)OFF|(% style="width:220px" %)0|(% style="width:149px" %)Non-conductive|(% style="width:151px" %)Conduction|(% style="width:141px" %)Non-conductive|(% style="width:145px" %)Conduction
38 +|(% style="width:168px" %)Cumulative timer|(% style="width:101px" %)OFF|(% style="width:220px" %)Keep current value|(% style="width:149px" %)Non-conductive|(% style="width:151px" %)Conduction|(% style="width:141px" %)Conduction|(% style="width:145px" %)Non-conductive
33 33  
34 -|(% rowspan="2" %)Timer type|(% rowspan="2" %)Timer coil|(% rowspan="2" %)The current value of the timer|(% colspan="2" %)Before the time limit|(% colspan="2" %)After the time limit
35 -|Normally open contact|Normally closed contact|Normally open contact|Normally closed contact
36 -|Timer|OFF|0|Non-conductive|Conduction|Non-conductive|Conduction
37 -|Cumulative timer|OFF|Keep current value|Non-conductive|Conduction|Conduction|Non-conductive
38 -
39 39  • After the time limit expires, clear the current value of the accumulative timer and turn off the contact with the RST instruction.
40 40  
41 41  • When the setting value is 0, the time limit will expire when the OUT instruction is executed.
... ... @@ -46,17 +46,17 @@
46 46  
47 47  • Description of each timer:
48 48  
50 +(% class="table-bordered" %)
51 +|(% style="width:171px" %)**Device number**|(% style="width:516px" %)**Timer specifications**|(% style="width:176px" %)**Device number**|(% style="width:213px" %)**Timer specifications**
52 +|(% style="width:171px" %)T0 to T191|(% style="width:516px" %)100ms timer|(% style="width:176px" %)T246 to T249|(% style="width:213px" %)1ms accumulative timer
53 +|(% rowspan="2" style="width:171px" %)T192 to T199|(% rowspan="2" style="width:516px" %)100ms subroutine timer (used in the subroutine, even if the subroutine is not called, it will still be updated)|(% style="width:176px" %)T250 to T255|(% style="width:213px" %)10ms cumulative timer
54 +|(% style="width:176px" %)T256 to T383|(% style="width:213px" %)1ms timer
55 +|(% style="width:171px" %)T200 to T245|(% style="width:516px" %)10ms timer|(% style="width:176px" %)T384 to T511|(% style="width:213px" %)0.1ms timer
49 49  
50 -|Device number|Timer specifications|Device number|Timer specifications
51 -|T0 to T191|100ms timer|T246 to T249|1ms accumulative timer
52 -|(% rowspan="2" %)T192 to T199|(% rowspan="2" %)100ms subroutine timer (used in the subroutine, even if the subroutine is not called, it will still be updated)|T250 to T255|10ms cumulative timer
53 -|T256 to T383|1ms timer
54 -|T200 to T245|10ms timer|T384 to T511|0.1ms timer
55 -
56 56  **Error code**
57 57  
58 -
59 -|Error code|Content
59 +(% class="table-bordered" %)
60 +|**Error code**|**Content**
60 60  |4084H|The parameter setting in (value) is out of range
61 61  
62 62  **Example**
... ... @@ -76,24 +76,24 @@
76 76  
77 77  **Content, range and data type**
78 78  
79 -
80 -|Parameter|Content|Range|Data type|Data type (label)
80 +(% class="table-bordered" %)
81 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
81 81  |(d)|Counter device number|-|Counter|ANY
82 82  |(value)|Counter setting value|0 to 32767|Unsigned BIN 16 bit|ANY_INT
83 83  
84 84  **Device used**
85 85  
87 +(% class="table-bordered" %)
88 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="12" %)**Devices**|(((
89 +**Offset**
86 86  
87 -|(% rowspan="2" %)Instruction|(% rowspan="2" %)Parameter|(% colspan="12" %)Devices|(((
88 -Offset
89 -
90 -modification
91 +**modification**
91 91  )))|(((
92 -Pulse
93 +**Pulse**
93 93  
94 -extension
95 +**extension**
95 95  )))
96 -|KnX|KnY|KnM|KnS|T|C|D|R|SD|K|H|E|[D]|XXP
97 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**E**|**[D]**|**XXP**
97 97  |(% rowspan="2" %)OUT C|Parameter 1| | | | | |●| | | | | | | |
98 98  |Parameter 2|●|●|●|●|●| |●|●|●|●|●|●| |
99 99  
... ... @@ -109,8 +109,8 @@
109 109  
110 110  **Error code**
111 111  
112 -
113 -|Error code|Content
113 +(% class="table-bordered" %)
114 +|**Error code**|**Content**
114 114  |4084H|The parameter setting in (value) is out of range
115 115  |4085H|The (value) parameter exceeds the device range
116 116  
... ... @@ -131,22 +131,24 @@
131 131  
132 132  **Content, range and data type**
133 133  
134 -|Parameter|Content|Range|Data type|Data type (label)
135 +(% class="table-bordered" %)
136 +|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
135 135  |(d)|Long counter device number|-|Counter|ANY
136 136  |(value)|Long counter setting value|0 to 4294967295|Unsigned BIN 32 bit|ANY_INT
137 137  
138 138  **Device used**
139 139  
140 -|(% rowspan="2" %)Instruction|(% rowspan="2" %)Parameter|(% colspan="12" %)Devices|(((
141 -Offset
142 +(% class="table-bordered" %)
143 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="12" %)**Devices**|(((
144 +**Offset**
142 142  
143 -modification
146 +**modification**
144 144  )))|(((
145 -Pulse
148 +**Pulse**
146 146  
147 -extension
150 +**extension**
148 148  )))
149 -|KnX|KnY|KnM|KnS|T|D|R|SD|LC|K|H|E|[D]|XXP
152 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**D**|**R**|**SD**|**LC**|**K**|**H**|**E**|**[D]**|**XXP**
150 150  |(% rowspan="2" %)OUT LC|Parameter 1| | | | | | | | |●| | | | |
151 151  |Parameter 2|●|●|●|●|●|●|●|●| |●|●|●| |
152 152  
... ... @@ -162,8 +162,8 @@
162 162  
163 163  **Error code**
164 164  
165 -
166 -|Error code|Content
168 +(% class="table-bordered" %)
169 +|**Error code**|**Content**
167 167  |4085H|The (value) parameter exceeds the device range
168 168  
169 169  **Example**