Chapter 10 High-speed Counters and High-speed Timers C204: Users can select a mode of counting by setting SM204 and SM205. Input signals are controlled by X0.10 and X0.11. If SM207 is ON, the function of resetting C204 will be enabled. Resetting signals are controlled by X0.1. X0.10 Counting pul ses Pulse U A Present value in C204 Counting pul ses Dir D C204 X0.11 B SM205/SM204: Mode of counting SM207=1, X0.1 Resetti ng C204 C208: Users can select a mode of counting by setting SM208 and SM209. Input signals are controlled by X0.12 and X0.13. If SM211 is ON, the function of resetting C208 will be enabled. Resetting signals are controlled by X0.2. C216 counts with C208.
It is the first virtual counter. Pulse X0.12 Counting pul ses U A Present value in C208 (C216) C208(C216) X0.13 Counting pul ses Dir D B SM209/SM208: Mode of counting Resetti ng C208 (C 216) SM211=1, X0.2 C212: Users can select a mode of counting by setting SM212 and SM213. Input signals are controlled by X0.14 and X0.15. If SM215 is ON, the function of resetting C212 will be enabled. Resetting signals are controlled by X0.3. C220 counts with C212. It is the second virtual counter. Counting pulses Pulse X0.14 U A Present value in C212 (C220) Counting pulses Dir D C212(C220) X0.15 B SM213/SM212: Mode of counti ng SM215=1, X0.3 Resetti ng C212 (C 220) 2.
If a power cut occurs when a general counter counts, the present value of the counter will be cleared. 3. If a counter counts up from the present value 2,147,483,647, the next value following 2,147,483,647 will be -2,147,483,648. If a counter counts down from the present value -2,147,483,648, the next value following -2,147,483,648 will be 2,147,483,647. 10-3