Just to mix some brains 

Originally Posted by
HenrikOlsson
Say you want a 1000mS delay. Since 1000 wont fit in a byte you'll use two bytes. 1000 in binary is 00000011 11101000 so DataIn[3] = 3 and DataIn[4] = 232.
Or the cryptic way...
Code:
@ MOVE?CW 1000, _DataIn+3
But, in this case DataIn[3]=232 AND DataIn[4]=3, no big deal...
Or the easier way:
Delay1.HighByte = DataIn[3]
Delay1.LowByte = DataIn[4]
With my example, you'll use...
Code:
@ MOVE?WW _DataIn+3, _Delay1
TADA!
Last edited by mister_e; - 31st December 2006 at 14:37.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks