From: machinekit@googlegroups.com <machinekit@googlegroups.com> On Behalf Of 
justin White
Sent: Tuesday, 19 May 2020 17:01
To: Machinekit <machinekit@googlegroups.com>
Subject: Re: [Machinekit] Re: halcmd setp equivalent in python

 

 

Yeah, I forgot Machinekit is in a perpetual state of "this might work the way 
it used to".....or "maybe not". I've recompiled components to swap parameters 
for pins but I don't think I'd try with a hm2 driver.

 

If all you want to do is set a parameter from an .ini line you don't have to do 
anything with Python whatsoever (unless there's some reason you really want 
to). All you need to do is:

 

In the .ini

 

[SPINDLE]

MAXRPM = 12000

 

In the hal file:

setp hm2_5i25.0.pwmgen.00.scale [SPINDLE]MAXRPM

 

That's the pretty standard usage, or am I missing something?

 

 

 

Yes, we were talking of doing this from python (see subject)

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/029401d62dee%24f3a12920%24dae37b60%24%40basdebruijn.com.

Reply via email to