Hi Richard,
I've been studying your code, (again) I haven't tried to compile the items added in red below as I'm on a different PC right now. I just posted a small part of it for learning.
Can you tell me if I'm on the right track with how I've added it ?
So after 100 seconds, if the limit hasn't sent a low, limup pin will still go low ?
Thanks !
Code:maxrun con 2000 ; 2000 = 100 sec RUN_COUNT VAR word moveup: high blue pause 500 low blue while limup = 1 high up wend IF RUN_COUNT THEN ;should the motion continue ? RUN_COUNT = RUN_COUNT -1 ENDIF if limup = 0 then low up goto run else goto moveup endif




Bookmarks