proszę:)
http://www.linuxcnc.org/docs/2.5/pdf/Li ... Manual.pdf
Żeby nie naciągać cię na "roboczogodziny" od razu podaję stronę i akapit którego nie rozumiem.
Rozdział 16/6 Calling Files Strona 161/195
To call a separate file with a subroutine name the file the same as your call and include a sub and endsub in the file. The file
must be in the directory pointed to by
PROGRAM_PREFIX
or
SUBROUTINE_PATH
in the ini file. The file name can include
lowercase
letters, numbers, dash, and underscore only. A named subroutine file can contain only a single subroutine definition.
Named File Example
o
<
myfile
>
call
Numbered File Example
o123
call
In the called file you must include the oxxx sub and endsub and the file must be a valid file.
Called File Example
(
filename
myfile
.
ngc
)
o
<
myfile
>
sub
(
code
here
)
o
<
myfile
>
endsub
M2
Jakoś ładniej się te literki w instrukcji poukładały :p