Mitsubishi — 3.13 Functions of Special Auxiliary Relays and Special Data Registers

Chapter 3 Devices High-speed counting The steps of setting the second counter are as follows. 1. Write K2 into K1SM204. 2. Enable C204. The program for step 1 and step 2 is shown below. SM200 and C200 SM204 and C204 SM208 and C208 SM212 and C212 SM216 and C216 SM220 and C220 X0.0 3. If users want to clear the present counter value by means of an external signal, they have to write 16#A into K1SM204. 4. C204 is enabled. If X0.1 is ON, the present value of C204 will become zero. The program for step 3 and step 4 is shown below. X0.0 There are four high-speed timers.

High-speed timing SM200 and C201 SM204 and C205 SM208 and C209 SM212 and C213 3-31 MOVP K2 K1SM204 DCNT C204 K10 SM207 SM206 SM205 SM204 1 0 1 0 MOV P 16#A K1SM204 DCNT C204 K10 Number Counter Mode of measuring time Externa signal l S torage Device Setting value device 1 C200 K1SM200 Bit 3 Bit 2 Bit 1 Bit 0 Enabling Selecting x x a timer a mode Bit 2: Enabling a timer Bit 0: (1) 0: General mode (The interval between the rising edge of a pulse and the falling edge of the pulse is measured.) (2) 1:

Cyclic mode (The interval between the rising edge of a pulse and the rising edge of the next pulse is measured.) X0.0+ and X0.0- C201 2 C204 K1SM204 X0.1+ and X0.1- C205 3 C208 K1SM208 X0.2+ and X0.2- C209 4 C212 K1SM212 X0.3+ and X0.3- C213 Bit 3 Bit 2 B it 1 Bit 0 x Enabling a timer x Selecting a mode