#<_hal[custom.pin]> not defined

More
9 years 11 months ago - 9 years 11 months ago #82599 by bkt
#<_hal[custom.pin]> not defined was created by bkt
these is the warning that Lcnc show my at start ...
Code:
Near line.... /home....../../../file.ngc Named Parameter #<_hal[custom.pin]> not defined

I use the value of out bit parameter from my custom comp in a if loop in my gcode ... the gcode is present as start code in myini.ini file ... Is possible to solve these warning (I need start with these program ... I've not choice) ... i just try to use my gcode as soubroutine ... but obviously is the same ...

In My header custom comp there is these line:
Code:
pin out bit mypin "comment"; /* my first version whit error*/ pin out bit mypin = 0 "comment"; /* my second version whit error, actually I use these*/

Regards
giorgio
Last edit: 9 years 11 months ago by bkt.

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

More
9 years 11 months ago #82615 by andypugh
Replied by andypugh on topic #<_hal[custom.pin]> not defined
You need to activate reading HAL pins from G-code:
linuxcnc.org/docs/2.7/html/remap/remap.h...i_file_configuration
Be aware of the warnings here:
linuxcnc.org/docs/2.7/html/remap/remap.h...ap:referto-hal-items

Your ,comp sample seems to create two pins with the same name. That probably won't work.
The following user(s) said Thank You: bkt

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

More
9 years 11 months ago #82616 by bkt
Replied by bkt on topic #<_hal[custom.pin]> not defined
ok I solve in these way:

ini file ... open_file = ""

than when axis (or in my case nogui gui ;) ) start use ssh command
Code:
ssh user@server-name-here /path/to/command arg1

and use these script on remote machine..
Code:
#! /usr/bin/python import sys import linuxcnc myprog = str(sys.argv[1]) c = linux.command() c.mode(linuxcnc.Mode_AUTO) c.reset_interpreter() c.program_open('/home/myfolder' + myprog + '.ngc')

if you prefer can use as argv the complete name file or path complete name file (example /home/myfolder/myngc.ngc) ... so the last row become:
Code:
c.program_open( myprog )

that's all folks ...;)

If there are a more secure and elegant method I hope that someone me indicates ....

Regards
giorgio

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

More
9 years 11 months ago #82617 by bkt
Replied by bkt on topic #<_hal[custom.pin]> not defined

You need to activate reading HAL pins from G-code:
linuxcnc.org/docs/2.7/html/remap/remap.h...i_file_configuration
Be aware of the warnings here:
linuxcnc.org/docs/2.7/html/remap/remap.h...ap:referto-hal-items


for version 2.6 is the same??

Regards
Giorgio

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

More
9 years 11 months ago - 9 years 11 months ago #82618 by bkt
Replied by bkt on topic #<_hal[custom.pin]> not defined

You need to activate reading HAL pins from G-code:
linuxcnc.org/docs/2.7/html/remap/remap.h...i_file_configuration
Be aware of the warnings here:
linuxcnc.org/docs/2.7/html/remap/remap.h...ap:referto-hal-items


for version 2.6 is the same??

Your ,comp sample seems to create two pins with the same name. That probably won't work.

there is not my case .... I have only one but set as io .....

Regards
Giorgio
Last edit: 9 years 11 months ago by bkt.

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

More
9 years 11 months ago #82621 by andypugh
Replied by andypugh on topic #<_hal[custom.pin]> not defined

k-1 wrote: for version 2.6 is the same??


Yes.

linuxcnc.org/docs/2.6/html/remap/structu...d_sub_ini_features_a

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

Time to create page: 5.345 seconds
Powered by Kunena Forum