Editing Reading and writing an arbitrary parameter with Granity

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help page.

Latest revision Your text
Line 1: Line 1:
 
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.
 
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==
 
==Reading an arbitrary parameter==
[[File:readingarbparameter.png|thumb|An example of reading parameter with address 202 ({{param|KVP}})]]
 
 
#Open dialog by Ctrl+P keyboard shortcut
 
#Open dialog by Ctrl+P keyboard shortcut
 
#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.
 
#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.
Line 7: Line 6:
 
#Observe the value of parameter in the Testing tab
 
#Observe the value of parameter in the Testing tab
 
==Writing/overriding an arbitrary parameter==
 
==Writing/overriding an arbitrary parameter==
[[File:Settingarbparameter.png|thumb|An example of reading AND writing parameter with address 202 ({{param|KVP}})]]
 
 
Before writing a custom parameter, it is advised to read it's current value first by the steps above.  
 
Before writing a custom parameter, it is advised to read it's current value first by the steps above.  
  
 
Writing a value:
 
Writing a value:
 
#Open dialog by Ctrl+P keyboard shortcut
 
#Open dialog by Ctrl+P keyboard shortcut
#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.
+
#Enter the desired parameter number and value to the ''Parameter override table''. Note: if non-existing parameter number is entered, a communication error will occur and Granity disconnects.
#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.
+
 
#Click Apply button on the main window
 
#Click Apply button on the main window
  
 
Notes:
 
Notes:
 
*Up to three parameter & value pairs can be entered to this table  
 
*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 ({{param|KVP}}) is overridden, then the GUI parameter has no function.
+
*These values will override the [[GUI]] parameter if the same parameter is available on the GUI. I.e. if parameter 202 ([[KVP]]) 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
 
*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
 
*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==
 
The list of possible parameter can be found at [https://github.com/GraniteDevices/SimpleMotionV2/blob/master/simplemotion_defs.h 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.
 
{{warning|Use caution when changing parameters especially if you don't understand their function throughly}}
 
 
[[category:Granity user guide]]
 

Please note that all contributions to Granite Devices Knowledge Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Granite Devices Knowledge Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Select categories:

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)