James Yo
2013-05-31 03:31:30
I didn't see my post but my problem is that I had an encoder dented and because of that I had 4 values before the dented. So when using a encoder for Reason I was having a reaaaallll! hard time fine tuning values. So after about 1 week of searching I have found this rules that I have made with the help of other post in the forum to get the 3 values before the dented out and get only the fourth one. I had 1/4 pulse for each dentent
I dont know why using a mix of global variable and temporay variable help I would like to know?
Here is my rule
if pp==127 then Goto "Down"
if pp==1 then Goto "Up"
Label "Down"
rr=rr+1
if rr<=2 then exit rules, skip Outgoing Action
if rr>=3 then rr=0
Label "Up"
ga=ga+1
if ga<=3 then exit rules, skip Outgoing Action
if ga==4 then ga=0
I hope you will find it usefull like my girlfriend
Have a great day!
I dont know why using a mix of global variable and temporay variable help I would like to know?
Here is my rule
if pp==127 then Goto "Down"
if pp==1 then Goto "Up"
Label "Down"
rr=rr+1
if rr<=2 then exit rules, skip Outgoing Action
if rr>=3 then rr=0
Label "Up"
ga=ga+1
if ga<=3 then exit rules, skip Outgoing Action
if ga==4 then ga=0
I hope you will find it usefull like my girlfriend
Have a great day!