help on code (closed)

I'm a complete noob to picaxe and I'm in need of some help for a bit of code, I am using a 18m2 and I'm trying to get it to use the count basic command but i am getting syntax errors and am unsure how to resolve it.
the code I have so far is:
symbol (VaribleA = 0)
count (C.2, 25000, VaribleA)
any help is appreciated
 

Solar Mike

New Member
Should not be using brackets, and incorrect variable definition used, look at the examples in the online "Basic Commands"
eg.
Code:
Symbol variableA = w0
Count C.2, 25000, variableA
 
Should not be using brackets, and incorrect variable definition used, look at the examples in the online "Basic Commands"
eg.
Code:
Symbol variableA = w0
Count C.2, 25000, variableA
I’ve solved the variable problem and I tried without the brackets but there seems to be a problem with the c as that’s where the syntax always appears
 

papaof2

Senior Member
Did you set the PICAXE editor for an 18M2?

Editor version 6 is quite happy with those two lines when it knows the chip is an 18M2

But it gives that error if the chip is a 28X1 or a 40X1.
 
Top