How to simulate value using counter

I am simulating the PLC code in Ignition. I basically count the number up and down to pretend the PLC that sensor is sending different signal. How could I manipulate the number with timer ?
Suggestion please…

https://docs.inductiveautomation.com/display/DOC79/Client+and+Gateway+Event+Scripts#ClientandGatewayEventScripts-TimerScripts