Reset Counter


Operator Menu Location: Generic Hardware Operators Diagnostics


Operator Bitmap:


Functional Description:
The Reset Counter generic hardware operator provides access to module statistics. When the generic operator is linked to a specific module, the operator reports the number of times that the module power has been cycled since the schema containing the operator was last downloaded into the device. The reset counter does write the count to FLASH on startup of the controller. Also, note that the counter is an unsigned 16 bit number (so it will roll over to zero after 65535 resets).


Output y represents the reset count.


User-Defined Properties:
Object Name. A string label that identifies the operator


Comments: 

Design Pad will maintain the restart count between simulation runs for each controller.  Every run of a simulation acts as a restart of a controller.  Every module or controller has a Simulation Setup/Directory folder in its module/hardware properties dialog. This parameter defaults to C:\Temp\Ctrl1\ which causes certain runtime simulation data (reset count, remote constants, and setpoint tracking) to be shared to a common file.

You may want customize this path for each of your devices in each of your .hwi files.  Once you do this you will see the runtime counts track correctly for each time you start a simulation for a particular device. Furthermore, you may zero the reset count by deleting the Params.dat file saved to this directory.

For example, set the Simulation Setup directory for each device to something like C:\Temp\MyProject\<station name>.  Then when you would like to test with the reset counts set back to 1, just delete the C:\Temp\MyProject directory and all of the devices boot up with reset counts back at 1.


See Also: Self-Diagnostics