Information¶
-
class
ingeniamotion.information.
Information
(motion_controller)¶ Information.
-
register_info
(register, axis=1, servo='default')¶ Return register object.
- Parameters
- Return type
- Returns
Register object.
- Raises
IMRegisterNotExist – If register does not exist in dictionary.
-
register_type
(register, axis=1, servo='default')¶ Return register dtype.
- Parameters
- Return type
REG_DTYPE
- Returns
Register dtype.
- Raises
IMRegisterNotExist – If register does not exist in dictionary.
-
register_access
(register, axis=1, servo='default')¶ Return register access.
- Parameters
- Return type
REG_ACCESS
- Returns
Register access.
- Raises
IMRegisterNotExist – If register does not exist in dictionary.
-
register_range
(register, axis=1, servo='default')¶ Return register range.
-
register_exists
(register, axis=1, servo='default')¶ Check if register exists in dictionary.
-
static
create_comkit_dictionary
(coco_dict_path, moco_dict_path, dest_file=None)¶ Create a dictionary for COMKIT by merging a COCO dictionary and a MOCO dictionary.
- Parameters
- Return type
- Returns
Path to the COMKIT dictionary.
- Raises
ValueError – If destination file has a wrong extension.
-
get_product_name
(alias='default')¶ Get the product name of the drive.
- Parameters
alias (
str
) – alias of the servo.- Returns
“EVE-NET-E”, “CAP-NET-E”, etc.
- Return type
If it exists for example
-
get_node_id
(alias='default')¶ Get the node ID for CANopen communications.
-
get_ip
(alias='default')¶ Get the IP for Ethernet communications.
-
get_slave_id
(alias='default')¶ Get the slave ID for EoE communications.
-
get_name
(alias='default')¶ Get the drive’s name.
-
get_communication_type
(alias='default')¶ Get the connected drive’s communication type.
- Parameters
alias (
str
) – alias of the connected drive.- Return type
- Returns
CANopen, Ethernet, or EtherCAT.
-
get_full_name
(alias='default')¶ Return the full name of the drive [Product name] [Name] ([Target]).
-
get_subnodes
(alias='default')¶ Return the number of subnodes.
-
get_categories
(alias)¶ Return dictionary categories instance.
-
get_dictionary_file_name
(alias)¶ Return dictionary file name.
-
get_encoded_image_from_dictionary
(alias, axis=0)¶ Get the encoded product image from a drive dictionary. This function reads a dictionary of a drive, and it parses whether the dictionary file has a DriveImage tag and its content. :type alias:
str
:param alias: Alias of the drive. :type axis:int
:param axis: Drive axis. Used when using COM-KIT.
-