Mitsubishi — 5.13.4 High-speed Counter

AH500 Motion Control Module Manual 5.13.4 High-speed Counter 1. Motion control function block The motion control function block T_HCnt is used to start a high-speed counter. The value of the Channel input pin indicates a counter number, and the value of the InputType input pin indicates an input pulse type. The ExtRstEN input pin is used to set an external reset switch. The value of the InitialValue input pin is the initial value in the counter specified, and the value of the CountValue of output pin is the value in the counter specified. 2.

Input pins/Output pins 5-244 Input pin Name Function Data Setting value Time when a value is valid type Channel Counter number WORD 0~5 (*1) The value of the Channel input pin is valid when there is a transition in the Enable input pin’s signal from low to high. Enable Eanbling the counter specified BOOL True/False - ExtRstEN Enabling an external reset input terminal BOOL True/False The value of the ExtRstEN input pin is valid when there is a transition in the Enable input pin’s signal from low to high. InputType Input pulse type WORD mcUD: 0 mcPD: 1 mcAB: 2 mc4AB: 3 When the motion control function block is executed, the value of the InputType input pin is updated repeatedly.

InitialValue Initial value in the counter specified DWORD K0~K2,147,483,647 The value of the InitialValue input pin is valid when there is a transition in the Enable input pin’s signal from low to high.