Dictionary
- class ingenialink.canopen.dictionary.CanopenCategories(dict_)[source]
Contains all categories from a CANopen Dictionary.
- Parameters
dict (str) – Path to the Ingenia dictionary.
- labels(cat_id)[source]
Obtain labels for a certain category ID.
- Returns
Labels dictionary.
- Return type
dict
- property category_ids
Category IDs.
- Type
list
- class ingenialink.canopen.dictionary.CanopenDictionary(dictionary_path)[source]
Contains all registers and information of a CANopen dictionary.
- Parameters
dictionary_path (str) – Path to the Ingenia dictionary.
- read_register(register)[source]
Reads a register from the dictionary and creates a Register instance.
- Parameters
register (Element) – Register instance from the dictionary.
- registers(subnode)[source]
Gets the register dictionary to the targeted subnode.
- Parameters
subnode (int) – Identifier for the subnode.
- Returns
Dictionary of all the registers for a subnode.
- Return type
dict
- categories
Instance of all the categories in the dictionary.
- Type
- errors
Instance of all the errors in the dictionary.
- Type
Errors
- firmware_version
Firmware version declared in the dictionary.
- Type
str
- interface
Interface declared in the dictionary.
- Type
str
- part_number
Part number declared in the dictionary.
- Type
str
- path
Path of the dictionary.
- Type
str
- product_code
Product code declared in the dictionary.
- Type
int
- revision_number
Revision number declared in the dictionary.
- Type
int
- subnodes
Number of subnodes in the dictionary.
- Type
int
- version
Version of the dictionary.
- Type
str