Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

PCMCIA-CAN/2

Hi
 
Thanks for the reply
 
Using Spy  I am getting error messages but with MAX bus monitor i am not getting any messages (not even error message).
 
In the Network , there are only two device one is encoder and another one is PCMCIA CAN card. I am getting error having error code: BFF6206B (no acknowledgement) error.This error is corresponds to CAN bus off state. Why i am getting this message ??
 
Before reading the data using Labview CANopen library functions ,I had set the baud rate 1 Mbps & also the port in MAX.
 
I have certain questions -
  • For reading the data from the encoder whether to use SDO functions or PDO functions ??
  • How to write/Read NMT , Emergency messages i.e using SDO or PDO ??
  • What does this error means - Invalid CANopen object reference. Object has the wrong type ??

Once again thanks for helping me .

i know some questions may be silly for you , but i am asking these questions because i am first time using CAN.

 

Thanks and Regards

J

0 Kudos
Message 11 of 19
(3,696 Views)

Hi Dirk

How are you ?

Now I am reading the data correctly but not able to write the data.

Please ignore the previous message. 

I have certain questions -

  • For reading the data from the encoder whether to use SDO functions or PDO functions ??
  • How to write/Read NMT , Emergency messages i.e using SDO or PDO ??
  • How to monitor the CAN bus. When I am trying to monitor the bus using MAX then it shows , You cannot use frame API & channel API simultaneously. I am using CANopen   Labview library functions and I have to use these library functions.
  •                       CANopen Labview library functions uses Frame API & MAX uses Channel API. So every time this conflict may occur. please tell me how to monitor the CAN bus while i am using CANopen Labview library functions.

    ; Can we use PDO & SDO functions in the same VI ?

    Thanks & regards

    J

    0 Kudos
    Message 12 of 19
    (3,687 Views)

    Hi ,

    Ok it seems you can read your Encoder data. Are you using the Library VIs?

    Because the Encoder should give you your process data, it is recommended to use PDOs. But in order to use them, it is probably required to map them to the PDO registers using SDOs. How you can do this, should be explained in the manual of your device.

    The CANopen palette brings a SDO Completion code Sub VI, which should give you the completion code for the SDO operation, including any error message.

    You cvan not monitor the CAN traffic using the busmonitor and the same port as for your canopen comunication, because the port is allready in use. Therefore you have to use a second port, or a second device connected to the same network.

    And yes you can use SDOs and PDOs within the same network. be careful with the handles for each object. The handle input for the create functions is allways the same, but the handle output is only for the particular SDO or PDO and you have to use this for further Sub VIs, dealing with the same SDO or PDO.

    DirkW

     

    0 Kudos
    Message 13 of 19
    (3,675 Views)

    Hi,

    i try to use 'AnalogInput_Read_Sensor.vi' with my canopen ablolute multiturn encoder and the NI USB-8473s.

    At the begening everything seems to be OK and after i've always the same mystake here::

     

    Can you help me?

    Thank you for your answer and sorry for my bad english.

    S.Ph

     

    0 Kudos
    Message 14 of 19
    (3,421 Views)

    the documentation of my encoder: (a lot of them seems to be the same...)

    http://membres.lycos.fr/bulou/NI/XCC%203515CS84CB.pdf

    Thank you again.

    0 Kudos
    Message 15 of 19
    (3,419 Views)
    The CANopen Library does not support the >USB -CAN modules. Only the plug-in devices for PXI/PCI and PCMCIA are supported.
     
    DirkW
    0 Kudos
    Message 16 of 19
    (3,406 Views)

    Smiley SurprisedSmiley Sad

     ARE YOU SURE?

    What can i do?....

    0 Kudos
    Message 17 of 19
    (3,397 Views)
     

    Hi,

    only one solution:

    https://www.ni.com/en-us/support/model.pcmcia-can.html 

    Thank you for your help.

    S.Ph

    0 Kudos
    Message 18 of 19
    (3,384 Views)

    Don't you have the VIs that this example uses? I downloaded it to study the CanOpen Protocol but I do not have all of them, so I cannot see how works.


    @DirkW  ha escrito:
     

    Hi,

    Try the attached example, which enables asynchron cyclic transmission of position values for your sensor and reads them.

    If this doesn't work check Node ID and BaudRate.

    DirkW


     

    Regards,

     

    ALBERTO

    0 Kudos
    Message 19 of 19
    (1,185 Views)