Mitsubishi — 10.1 High-speed Counters

AH500 Motion Control Module Manual Example: The steps of setting C204 are as follows. (1) Write K2 into K1SM204. (2) Enable C204. The program for step 1 and step 2 is shown below.  Ladder diagram M1  Function block (3) If users want to clear the present counter value by means of an external signal, they have to write 16#A into K1SM204.  Ladder diagram: K1SM204=16#A  Function block: The ExRstEn pin is set to ON. (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.  Ladder diagram X0.1 10-4 MOVP K2 K1SM204 DCNT C204 K10 SM207 SM206 SM205 SM204 1 0 1 0 MOVP 16#A K1SM204 DCNT C204 K10