canopen--basic knowledge of the bus

Source: Internet
Author: User

1. Bus Standard

2. Getting indexes and sub-indexes

2fh,2bh,23h,40h and so on, is not corresponding to the different values of CS;

The object Dictionary of the main station 1280h?
1280H-SUB2, the Cob-id value of the client is obtained;

The value of CS is obtained based on the bit7,bit6,bit5 of the received m->data[0].

subcommand = (m->data[0]) & 1;

How to get indexes and sub-indexes
index = Getsdoindex (m->data[1],m->data[2]);
#define GETSDOINDEX (Byte1, Byte2) ((UNS16) byte2 << 8) | ((UNS16) byte1))

subindex = Getsdosubindex (m->data[3]);
#define GETSDOSUBINDEX (Byte3) (Byte3)

canopen--basic knowledge of the bus

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.