Running time = running time+1
When the clock runs for the first time, the number of runs is =0+ 1= 1, and when the clock runs for the second time, the number of runs is = 1+ 1=2. In this way, we can clearly know the number of runs by the value of the variable.
Remember to write it in the clock cycle subroutine
Paste it directly into your assembly.
Version 2
. Assembly Window Assembly _ Start Window
. Number of times the assembly variable runs, integer type.
. Subroutine _ _ Start Window _ Created
Clock 1. Clock period = 1000.
Subroutine _ Clock 1_ Periodic Event
Run times = run times+1
Label 5. Title = Text (Run Times)