Counter programming is roughly divided into two processes.
Action condition setting
Action start, Status monitoring, Status reset