DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming When value in C235 varies from 99 to100, DHSCS instruction sets M0 ON. (M1235 = OFF, C235 counts up) When value in C235 varies from 101 to100, DHSCR instruction resets M0. (M1235 = ON, Timing diagram for the comparison: C235 counts down) Counting No. Time Program Example 2: Set/reset M0 by applying hardware comparator M1000 DCNT DHSCS M0 When C251 counts up and the value in C251 varies from 100 to101, DHSCS instruction sets M0 ON. When C251 counts down and the value in C251 varies from 100 to 99, DHSCR instruction resets M0. Timing diagram for the comparison: M0 Counting No.
Time 3-130 2 1 M0 g 101 101 100 100 99 99 98 98 Count up Count down C251 K100 K100 C251 1 2 g g 101 101 100 100 99 99 98 98 Count up Count down