Roy Spiller
New Member
Hi I have a program running a machine and all is working well. I am trying to add a counter that will stop the machine after a set amount, at the moment I can only get it to count up to 255 then stop. In the program if i want to count large numbers possibly 5 to 10,000. I use the W as apposed to B however I cannot find any information on doing a similar thing with the eeprom locations. I have included a similar part of the program which is spread about in my working program.
Main:
read 0, w1
if w1 = 200 then goto main
high d.6
if pinb.5 = 1 then low d.5 w0 = w0 + 1 endif
if pinb.5 = 0 then high d.5 endif
write 0, w0
goto main
test:
end
Regards
Roy
Main:
read 0, w1
if w1 = 200 then goto main
high d.6
if pinb.5 = 1 then low d.5 w0 = w0 + 1 endif
if pinb.5 = 0 then high d.5 endif
write 0, w0
goto main
test:
end
Regards
Roy