I am using a Picaxe08M2 to control a bore water pump using Picaxe Programming Editor v. 5.5.5 (just downloaded).
The code fragment is as follows:
<code>
#picaxe 08m2
Symbol TimeCounter=b0
Symbol Pump_Pin=C.1
Symbol TankFullInput=3
'Output Pump_Pin
'Input TankFullInput
Main: b0=0 ' Reset timer
TimeLoop: wait 1 ' wait 1 second
b0=b0+1 ' increment timer
if b0=180 then Pumpon ' Hop out if 3 mins is up
goto TimeLoop
Pumpon high Pump_Pin ' Turn on pump
</code>
When I do a syntax check, the last line always gives an error, even when I remove the use of the Symbol statement. ie the last statement becomes:
<code>
Pumpon high C.1
</code>
It doesn't seem to like the naming convention listed in the Picaxe Manual.
The code fragment is as follows:
<code>
#picaxe 08m2
Symbol TimeCounter=b0
Symbol Pump_Pin=C.1
Symbol TankFullInput=3
'Output Pump_Pin
'Input TankFullInput
Main: b0=0 ' Reset timer
TimeLoop: wait 1 ' wait 1 second
b0=b0+1 ' increment timer
if b0=180 then Pumpon ' Hop out if 3 mins is up
goto TimeLoop
Pumpon high Pump_Pin ' Turn on pump
</code>
When I do a syntax check, the last line always gives an error, even when I remove the use of the Symbol statement. ie the last statement becomes:
<code>
Pumpon high C.1
</code>
It doesn't seem to like the naming convention listed in the Picaxe Manual.