As shown in the figure above, the current value of C0 will increase by 1 once X11 ON->OFF. When the count
value reaches K10, the C0 contact will act and Y0 will be output. After X1 triggers C0 again, it will not
accumulate and stay at K10. When the power supply is normal, the current value register of the counter has
a memory function, so the RST reset instruction must be used to reset the current value register before the
counter restarts counting.
Data register
Data register is divided into general data register and special data register.
General data register
Once data is written in the general purpose data register, it will not change as long as no other data is written.
The data will be cleared when PLC operation is OFF or power failure. The data register used for power failure
retention can retain its data when the PLC is OFF or power failure.
Special data register
The special purpose data register refers to the data register whose purpose has been defined. For the
definition of special data registers of the built-in PLC, see 1.5.5.