Lathe Spindle Control Help Needed in PNCCONF

More
29 Oct 2014 18:53 #52524 by andypugh

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.

More
11 Nov 2014 00:49 #52995 by cmorley
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

Please Log in or Create an account to join the conversation.

More
11 Nov 2014 01:34 #52998 by andypugh

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
Time to create page: 0.062 seconds
Powered by Kunena Forum