mrchar76 píše:OK popisu
na obrazovce tri zadavaci okynka pro X Y Z kam se napise kam ma nastroj prejet. Pak tlacitko "jed", stroj prejede na pozice a vynuluje se.
K čemu je to dobrý? není jednodušší najet do požadované pozice šipkama? ty víš dopředu kam přesně jedeš, když ještě neběží program?
přijde mi, že se snažíš používat lcnc jinak než na co je navrženej, ale třeba se pletu a má to svoje důvody.
podivej se na tohle
http://linuxcnc.org/docs/html/remap/remap.html" onclick="window.open(this.href);return false;
20. Named parameters and HAL items
The variables are read during read-ahead and should not be used for run time evaluation of current position or other execution time variables.
To read arbitrary HAL pins, signals and parameters from G-code, use the following named parameter syntax:
#<_hal[hal_name]>
where hal_name may be a pin, parameter or signal name.
Example:
(debug, #<_hal[motion-controller.time]>)
18. Optional Interpreter features: ini file configuration
There are some interpreter features in this branch which are experimental, and not backwards compatible, which is why they need to be enabled explicitly. They are specified as follows:
[RS274NGC]
FEATURES = <feature mask>
Mask bits are:
Retain G43: 1 (experimental)
When set, you can turn on G43 after loading the first tool, and then not worry about it through the program. When you finally unload the last tool, G43 mode is canceled. This is experimental as it changes the operation of legal ngc program, but it could be argued that those programs are buggy or likely to be not what the author intended.
add n_args parameter: 2
A called subroutine can determine the number of actual positional parameters passed by inspecting the #<n_args> parameter.
enable #<_ini[section]name> read only variables: 4
if set, the interpreter will fetch read-only values from the ini file through this special variable syntax.
enable #<_hal[Hal item]> read only variables: 8
if set, the interpreter will fetch read-only values from HAL file through this special variable syntax.
preserve case in O-word names within comments: 16
if set, enables reading of mixed-case HAL items in structured comments like (debug, #<_hal[MixedCaseItem]). Really a kludge which should go away.