setting new void functions

How can i make it a global variable? i tried moving the "zero" part of the code to run inside the void loop but i am getting the same error, "zW1" is not declared.