07-23-2012 07:03 PM
Let me start off by saying I have some experience with LabVIEW, but am still new to the program.
I just recently purchased an NI 9862 CAN interface as well as two IMS CANopen stepper motors. I have been able to send commands to the motors using the IMS configuration software, but now I am trying to send commands using LabVIEW. From using some online examples I have found, I have been able to communicate with the CAN module (make the lights activate), but not send any commands to the motors through it.
The commands follow this format:
Id=0641, Rtr=00, Data= 23 83 60 00 40 42 0F 00 ‘Set acceleration to 1M steps/sec^2
These characters are in hex. I'm able to send commands of this sort through IMS' script, and I have seen GUIs on the examples that appear to have fields for such values. Still, no success.
Does anyone have any advice where to begin?
07-25-2012 08:31 AM
Is your question how to send hexadecimal values to the CANOpen stepper motors your have from LabVIEW? Maybe you can post an example of where you are at so that we can help out a little more easily and point you off in the right direction. But from looking around... it doesn't look like you can use the 9862 for CANOpen signals.
For getting started with the NI 9862, I think there are some examples to start off with in the example finder. Hardware Input & Output >> CAN >> XNET. (The 9862 is a XNET CAN card I believe)
CANOpen is a little different from regular CAN: http://forums.ni.com/t5/Industrial-Communications/NI-9862-amp-LabView-CANopen-library/td-p/1728950
Some more information about CANOpen: http://zone.ni.com/devzone/cda/epd/p/id/6093
07-25-2012 02:14 PM
Yeah. I had since found these examples and have progressed some. I am able to send commands to my motor one at a time by indexing an array of commands inside a for loop.
Is it possible to send an array of commands all at once? Currently I'm using Frame Out Stream mode.
07-30-2012 09:29 AM
I think you can - what you need to do is make an array of the Frame cluster information and pass that in as the data.