Allan Barnes
Member
Has any one run into a problem where the Most significant and least signigicant words between 2 devices are different.
This seems to be my problem when writting a Long Int from the ML1500 to the Emerson Ei-203.
In my ML1500 I use a "CPW" to move my data from Longs into Intagers, swap the MS wors with the LS word, then send them off to the servo.
For my feedback from the servo I do the same but in the reverse direction.
This works great untill I have Negative Number, then the Index Distance I have sent my servo goes all waky, and the servo makes a very long index.
Note: the data type in the servo is definetly a Signed 32bit integer
Any help would be greatly appreciated.
This seems to be my problem when writting a Long Int from the ML1500 to the Emerson Ei-203.
In my ML1500 I use a "CPW" to move my data from Longs into Intagers, swap the MS wors with the LS word, then send them off to the servo.
For my feedback from the servo I do the same but in the reverse direction.
This works great untill I have Negative Number, then the Index Distance I have sent my servo goes all waky, and the servo makes a very long index.
Note: the data type in the servo is definetly a Signed 32bit integer
Any help would be greatly appreciated.