VXM Binary Response 256

16 views
Skip to first unread message

wmm...@mocs.utc.edu

unread,
Apr 30, 2015, 11:13:41 AM4/30/15
to velmex-...@googlegroups.com
Hi, 

I am trying to set the motor directions. I tried to read in the operating mode of the VXM and got '256'. I do not know how this translates into a list of settings. I have read your tutorial on the other binary operators. I do not understand how 256 is represented with 8 bits (if the max is 255). 

Thank you

wmm...@mocs.utc.edu

unread,
Apr 30, 2015, 11:17:00 AM4/30/15
to velmex-...@googlegroups.com
my serial port settings are 
                    'BaudRate',9600,...
                    'ByteOrder', 'littleEndian',...
                    'DataTerminalReady','on',...
                    'FlowControl','none',...
                    'InputBufferSize',512,...
                    'OutputBufferSize',512,...
                    'Parit','none',...
                    'RequestToSend', 'on', ...
                    'StopBits', 1, ...
                    'Terminator',{'CR',''}, ...
                    'Timeout', 15.0);

VelmexControls

unread,
Apr 30, 2015, 12:55:58 PM4/30/15
to velmex-...@googlegroups.com
The VXM Users Manual Appendix O (Page 70) explains each of the bits
However it is much easier to just use the COSMOS configuration tool under "Tools--->Settings--->Controller Mode"

--
You received this message because you are subscribed to the Google Groups "Velmex Controls" group.
To unsubscribe from this group and stop receiving emails from it, send an email to velmex-contro...@googlegroups.com.
To post to this group, send email to velmex-...@googlegroups.com.
Visit this group at http://groups.google.com/group/velmex-controls.
For more options, visit https://groups.google.com/d/optout.

wmm...@mocs.utc.edu

unread,
Apr 30, 2015, 1:54:57 PM4/30/15
to velmex-...@googlegroups.com
Turns out this was the result of a type-o. I had mistakenly sent 
'C,geteDM,' instead of 'C,getDM,'

I would still like to know why it responded with "256". I would have expected the "?" as a response for incorrect syntax/commands.


On Thursday, April 30, 2015 at 11:13:41 AM UTC-4, wmm...@mocs.utc.edu wrote:

VelmexControls

unread,
Apr 30, 2015, 2:58:55 PM4/30/15
to velmex-...@googlegroups.com, wmm...@mocs.utc.edu
Most likely because what appears to be Matlab code from your previous post

                    'BaudRate',9600,...
                    'ByteOrder', 'littleEndian',...
                    'DataTerminalReady','on',...
                    'FlowControl','none',...
                    'InputBufferSize',512,...
                    'OutputBufferSize',512,...
                    'Parit','none',...
                    'RequestToSend', 'on', ...
                    'StopBits', 1, ...
                    'Terminator',{'CR',''}, ...
                    'Timeout', 15.0);
that the reply you received was a previous reply (and probably still in the serial buffer)

I would bet that at some request after that one, that it did include a question mark in the reply

This is why COSMOS was built to be more robust than using some language to talk to a serial port as the language does not always know the little "Quirks" that could and do happen from time to time
Reply all
Reply to author
Forward
0 new messages