Dictionary¶
-
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_dictionary
()¶ Reads the dictionary file and initializes all its components.
-
registers
(subnode)¶ 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
-
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