Does not add up ? ? ?
kenwtn
Posts: 250
Hi All,
· I put the following lines in my program and things just do not add up, any ideas?
· DEBUG CR, DEC CmdParm
· DEBUG CR, DEC M_Stop
· M_Speed = CmdParm + M_Stop
· DEBUG CR, DEC M_Speed
I get the following:
150
750
138
· I put the following lines in my program and things just do not add up, any ideas?
· DEBUG CR, DEC CmdParm
· DEBUG CR, DEC M_Stop
· M_Speed = CmdParm + M_Stop
· DEBUG CR, DEC M_Speed
I get the following:
150
750
138
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
M_Speed VAR BYTE 'Motor Speed
CmdParm VAR WORD
This is how variables are defined
M_Speed VAR WORD 'Motor Speed
CmdParm VAR WORD
Thanks this fixed the problem