Ah, perfect, thank you!
On Tuesday, September 5, 2017 at 10:06:09 AM UTC-6, Bas de Bruijn wrote:
>
>
>
> On 5 Sep 2017, at 17:57, jo...@allwinedesigns.com wrote:
>
> I see in my hal file that a few settings are being pulled from my INI
> file, such as:
> setp [PRUCONF](DRIVER).stepgen.00.position-scale [AXIS_0]SCALE
>
> I'd like to use halcmd or python to set
> [PRUCONF](DRIVER).stepgen.00.position-scale at runtime. Is that possible?
> This doesn't work:
> $ halcmd setp "[PRUCONF](DRIVER).stepgen.00.position-scale"
> -8333.333
> :0: parameter or pin
> '[PRUCONF](DRIVER).stepgen.00.position-scale' not found
>
>
> Have a look here:
> https://github.com/machinekit/machinekit/blob/master/configs/ARM/BeagleBone/CRAMPS/CRAMPS.ini#L2
>
> You probably give a name to the hal_pru_generic when you instantiate. Like
> here (see halname at the end of the stribg)
>
> https://github.com/machinekit/machinekit/blob/master/configs/ARM/BeagleBone/CRAMPS/CRAMPS.hal#L28
>
> So your line with halcmd should be:
> halcmd setp hpg.stepgen.00.position-scale -8333.333
>
> Try "halcmd show pin" to show all pins, or "halcmd show pin hpg" for
> specific hpg pins
>
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github:
https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.