@name 
@inputs PLUS MIN
@outputs SIGN
@persist G
@trigger 
interval(1)
if(first()){G=0}

if(PLUS==1){
    if(G==0){
    G = 1
SIGN = SIGN + 1000}
timer("g",500)}
if(MIN==1){
        if(G==0){
    G = 1
SIGN = SIGN - 1000
timer("g",500)}
}
if(clk("g")){G =0}
