- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Lathe Spindle Control Help Needed in PNCCONF
Lathe Spindle Control Help Needed in PNCCONF
29 Oct 2014 18:53 #52524
by andypugh
Replied by andypugh on topic Lathe Spindle Control Help Needed in PNCCONF
Looking at the source-code, scalemax, minlim and maxlim are _parameters_.
Andy is there a good reason those pins are params? could we change them?/quote]
Pins are a bit more work for the driver writer. And funny things might happen to internal calculations if they are changed "live".
I can have a look into it, but I don't know quite when.
Please Log in or Create an account to join the conversation.
11 Nov 2014 00:49 #52995
by cmorley
Replied by cmorley on topic Lathe Spindle Control Help Needed in PNCCONF
I assume you mean u might use the param as 'memory' rather then copying it at the beginning of calculations and setting the param after.
It sure makes pncconf more complicated trying to support some of these common requests.
Which in turn means it's complicated for a new user to figure out
Thanks for looking.
Chris M
It sure makes pncconf more complicated trying to support some of these common requests.
Which in turn means it's complicated for a new user to figure out
Thanks for looking.
Chris M
Please Log in or Create an account to join the conversation.
11 Nov 2014 01:34 #52998
by andypugh
It's a bit more than that. parameters can just be ordinary variables in C, whereas pins need to be allocated a block of shared memory, and then the driver has to keep track of them and free that block of memory when the driver exits.
Also, in the case of smart-serial devices the pins are created with names given by the firmware, and allocated memory accordingly. The scalemax etc params are extra things created as partners to a specific type of smart-serial entity.
Replied by andypugh on topic Lathe Spindle Control Help Needed in PNCCONF
I assume you mean u might use the param as 'memory' rather then copying it at the beginning of calculations and setting the param after.
It's a bit more than that. parameters can just be ordinary variables in C, whereas pins need to be allocated a block of shared memory, and then the driver has to keep track of them and free that block of memory when the driver exits.
Also, in the case of smart-serial devices the pins are created with names given by the firmware, and allocated memory accordingly. The scalemax etc params are extra things created as partners to a specific type of smart-serial entity.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Lathe Spindle Control Help Needed in PNCCONF
Time to create page: 0.062 seconds