How to toggle bit

how to toggle a bit continuously for 1 sec in ignition and how to assign to tag?

can any one give me the reply.
and give the code for this to write in client scripts.

Using a Timer Script to toggle a tag called ToggleTest: