39
3
3 Elements
3.6 Counter
• [1] It cannot be retained upon power failure. It can be set to be retained upon power failure through parameter
setting.
• [2] It can be retained upon power failure. It can be set to be not retained upon power failure through parameter
setting.
An unoccupied counter number can be used as a data register for data retention.
In 32-bit counters C200 to C234, the special auxiliary relays M8200 to M8234 are used to control switch between
incremental and decremental counters, as shown in the following table.
Counter
NO.
Direction Switch Counter
NO.
Direction Switch Counter
NO.
Direction Switch Counter
NO.
Direction Switch
C200 M8200 C209 M8209 C218 M8218 C226 M8226
C201
M8201 C210 M8210 C219 M8219 C227 M8227
C202
M8202 C211 M8211 N/A
N/A
C228 M8228
C203
M8203 C212 M8212 C220 M8220 C229 M8229
C204
M8204 C213 M8213 C221 M8221 C230 M8230
C205
M8205 C214 M8214 C222 M8222 C231 M8231
C206
M8206 C215 M8215 C223 M8223 C232 M8232
C207
M8207 C216 M8216 C224 M8224 C233 M8233
C208
M8208 C217 M8217 C225 M8225 C234
M8234
Characteristics of the 16-bit and 32-bit counters are listed in the following table. The counters
can be used separately based on counting direction switch and use conditions of the counting
scope.
Item 16-bit Counter 32-bit Counter
Counting direction Incremental
Switch between incremental and decremental counting
(see the preceding table)
Set value 1 to 32,767 -2,147,483,648 to +2,147,483,647
Specied set value The constant K or a data register The constant K or two D data registers
Change to the current value No change after counting on Change after counting on (loop counter)
Output contact Action retained after counting on
Action retained after counting on, and reset after counting
back
Reset action
When the RST command is executed, the current value of the counter is zero, and the output
contact is reset.
Current value register 16-bit 32-bit