[Home]Parameters For Kinematics

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Difference (from prior author revision) (major diff, minor diff)

Added: 16a17
You can use any existing parameter or add a new kinematic specific parameter.

Added: 18a20,33
in the hal file with a line like
setp mykin.L0 [AXIS_0]HOME_OFFSET

we create a new parameter and it will receive its value from inifile, section AXIS_0, HOME_OFFSET

read hal parameter in kinematic module



with

hal_param_float_new("mykin.L0", HAL_RW, &My_Param, comp_id))

we assign this value to a previously created kinematic parameter. My_Param is data type hal_float_t.




Removed: 20d34

assign value




-- Under construction --

Kinematics Parameter

will publish here how to create additional parameters in the ini file and pass them to a kinematics module

Why do we need parameters in Kinematics ?

How can we create parameters for Kinematics ?

By the following steps:

ini parameter

You can use any existing parameter or add a new kinematic specific parameter.

create and assign hal parameter

in the hal file with a line like setp mykin.L0 [AXIS_0]HOME_OFFSET

we create a new parameter and it will receive its value from inifile, section AXIS_0, HOME_OFFSET

read hal parameter in kinematic module

with

hal_param_float_new("mykin.L0", HAL_RW, &My_Param, comp_id))

we assign this value to a previously created kinematic parameter. My_Param is data type hal_float_t.


LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions
Last edited August 13, 2010 10:58 am by Step4linux (diff)
Search:
Published under a Creative Commons License