I am trying to understand actual usage of/ how to apply what 'get or set' means. The concept I understand, it's the application of that I do not understand. Is the words get or set part of the command, or is there something else I am missing in its usage?
For example, if I want my homing program to start with setting a new position for an axis at the upper limits, such that it doesn't give me a soft limits error. If for some reason my machine position gets lost or too far out of actual position, when I home it will give me the error that the soft limits are exceeded and it will not home. How would one deal with this?
My intent at learning more about get/set is that I would want to write/set the max positive value to an axis (if homing towards a min value) in my homing thread, such that this error doesn't occur and that it doesn't go into feedhold because the machine has lost its actual position. I intend to set this pos() value at the beginning of a homing procedure at each flag. Or if there is some other recommendation you may have to deal with a lost machine position and softlimits?
I hope that makes sense, and thanks in advanced for your patience& reply,
Rob
Group: DynoMotion
Message: 10704
From: Tom Kerekes
Date: 12/22/2014
Subject: Re: Get or set, ...soft limits
Hi Rob,
I don't really follow what you are trying to do. But in general before Homing or whenever the system looses position Soft Limits can not be used. Typically the Homing program will need to disable soft limits (by setting them to huge values), home, then set the limits to reasonable values.
HTH
Regards
TK
Group: DynoMotion
Message: 10706
From: Rjreese29
Date: 12/22/2014
Subject: Re: Get or set, ...soft limits
Tom,
That is exactly what I want to do. Eloquently put,as you usually do.
Would you have a .c example of doing this?
I didn't find anything in script commands, .c examples, and yahoo search forum searching is... Not really searchable. (That's another topic)
In terms of script commands, how is get or set used in general? Get/set is the part I don't really understand. My apologies for being so oblivious to programming.
I don't really follow what you are trying to do. But in general before Homing or whenever the system looses position Soft Limits can not be used. Typically the Homing program will need to disable soft limits (by setting them to huge values), home, then set the limits to reasonable values.
HTH
Regards
TK
Group: DynoMotion
Message: 10708
From: Tom Kerekes
Date: 12/22/2014
Subject: Re: Get or set, ...soft limits
Hi Rob,
Here is how to set the Soft Limits of Axis Channel 0 to huge values to effectively defeat SoftLimits:
I'm not sure what script commands you are referring to or why you need to use script commands. But in general to "get" something from KFLOP is to read back the value inside KFLOP. To "set" the value is to change the value to something in KFLOP.
I'm not sure what script commands you are referring to or why you need to use script commands. But in general to "get" something from KFLOP is to read back the value inside KFLOP. To "set" the value is to change the value to something in KFLOP.