It has been years since I last programmed extensively, and now I'm in a new project and find I've forgotten just about everything about Picaxe programming, so I'm relearning as I go along.
Step_Direction is the symbol for C.2 -- it works fine in the first IF .. ELSE snippet, but I can't figure out how to use the Symbol when checking the status of the pin. Right now I'm using the work around pinC.2 = 1, I'd like to keep things consistent and use the "Step_Direction" and "HIGH" symbols instead.
How do I rewrite the "IF pinC.2 = 1" using the SYMBOLS "Step_Direction" and "HIGH"?
Step_Direction is the symbol for C.2 -- it works fine in the first IF .. ELSE snippet, but I can't figure out how to use the Symbol when checking the status of the pin. Right now I'm using the work around pinC.2 = 1, I'd like to keep things consistent and use the "Step_Direction" and "HIGH" symbols instead.
How do I rewrite the "IF pinC.2 = 1" using the SYMBOLS "Step_Direction" and "HIGH"?
Code:
SYMBOL Step_Direction = C.2
IF CmdCode = "J" THEN
HIGH Step_Direction
ELSE
LOW Step_Direction
ENDIF
IF pinC.2 = 1 THEN
Count_Total = Count_Total + Count_Actual MAX 10000
ELSE
Count_Total = Count_Total - Count_Actual MIN 1
ENDIF