Granite Devices now hiring into their core development team - Discover opportunity

Reading and writing an arbitrary parameter with Granity

From Granite Devices Knowledge Wiki
Jump to: navigation, search

It's possible to read and modify drive parameters that are not displayed in the GUI of Granity. This is done by a custom parameter dialog that pops up by Ctrl+P keyboard shortcut.

Reading an arbitrary parameter[edit | edit source]

An example of reading parameter with address 202 (Velocity P gainKVP)
  1. Open dialog by Ctrl+P keyboard shortcut
  2. Enter the desired parameter number to the Display custom parameter in status page spinbox. Note: if non-existing parameter is requested, a communication error will occur and Granity disconnects.
  3. Click Apply button on the main window
  4. Observe the value of parameter in the Testing tab

Writing/overriding an arbitrary parameter[edit | edit source]

An example of reading AND writing parameter with address 202 (Velocity P gainKVP)

Before writing a custom parameter, it is advised to read it's current value first by the steps above.

Writing a value:

  1. Open dialog by Ctrl+P keyboard shortcut
  2. Enter the desired parameter number and value to the Parameter override table on Param address column. Note: if non-existing parameter number is entered, a communication error will occur and Granity disconnects.
  3. Enter the override value of the parameter on the Override value column. Note: if parameter value is outside of allowed range, a communication error will occur and Granity disconnects.
  4. Click Apply button on the main window

Notes:

  • Up to three parameter & value pairs can be entered to this table
  • These values will override the GUI parameter if the same parameter is available on the GUI. I.e. if parameter 202 (Velocity P gainKVP) is overridden, then the GUI parameter has no function.
  • This table will be saved to the drive memory if Save settings on drive non-volatile memory is clicked so override will stay active after drive restart
  • To remove override values, enter zeros to the override table row
  • If same value is present in on the GUI, it will not change to display the overridden value on Apply click. It will update only when connecting to the drive next time.

List of parameter addresses and allowed value ranges[edit | edit source]

The list of possible parameter can be found at SimpleMotion V2 library header file. Parameter numbers have name prefix SMP_ such as SMP_VEL_P which is 202. Note: all parameters may not be available on all devices.


In no event the Product Information or parts hereof shall be regarded as guarantee of conditions or characteristics. The Product Information or any part thereof may also not be regarded as a warranty of any kind. No liability of any kind shall be assumed by Author with respect to Product Information or any use made by you thereof, nor shall Author indemnify you against or be liable for any third party claims with respect to such information or any use thereof.

As content of this Wiki may be edited by user community, Granite Devices Oy or it's affiliates do not take any responsibility of the contents of this Wiki. Use information at your own risk. However, Granite Devices staff attempts to review all changes made to this Wiki and keep information trustworthy.

Without written consent, Granite Devices' Products or Intellectual Property shall not be used in situations or installations where living beings, material property, or immaterial property could be harmed by the operation, features or failures of Product. Products may only be used in a way where hazards like moving parts, electric shock, laser radiation, or fire can't be realized even if the content of this Wiki would suggest otherwise.