Description
IC693CPU374 High-Speed Counter Interrupt
IC693CPU374 high-speed counter interrupt event number 12 ((counter current value = counter preset value) must be connected to the interrupt handler INT_0 via the ATCH and ENI instructions. In the interrupt handler INT_0, when the preset value is reached, the next preset value is reloaded and the relay outputs required by the process are executed to handle the operating speed of the inverter.
IC693CPU374 e automatic subroutine SBR_1, the high-speed counter HC0 is set as a single-phase counting input with no external control. It is easy for the interrupt handler INT_0 to judge the running direction of the inverter by changing the counting direction at the origin and the end point.
IC693CPU374 Since multiple preset values are judged and processed in one interrupt handler INT_0. It is necessary to compare the instruction and the counting direction to judge at which stage the current value of the high-speed counter is counted, and to decide to execute that section of the instruction according to the judgment. However, the judgment should not be made by using the compare instruction, but by using the greater-than or less-than instruction.