Word variables in logicator

nickwoodrow

New Member
Would anybody be able to inform me if there is a way to add a word variable? using logicator or a work around please. I need to count to more than 255! I can do it in basic but I am working in a small school club and I would like the kids to stay in logicator for a while longer (So I can get up to speed)! Many thanks. (I am using the latest release and a Picaxe 28x1) Many thanks
 

hippy

Technical Support
Staff member
Logicator only supports byte variables varA, varB etc. You could use multiple bytes to do the counting ( when the variable increments and wraps round to zero, increment another ) or BASIC cells can be written to use word variables.

Instead of wrap round, which gives a binary result, you can count 0-99 in one variable then reset 100 to 0, and increment another variable. This may make values easier to use if displayed etc.
 
Top