- Posts: 2
- Thank you received: 0
Hal file and code G
13 years 4 months ago #35873
by michel54
Hal file and code G was created by michel54
Thank you in advance,
I want to tie pins or signals linuxcnc hal file to a test in the code G. This is certainly simple, but I have not managed to correct for now.
I think something like
.....
o88 if [#<pinxxx> EQ 0]
......
o88 endif
Michel
I want to tie pins or signals linuxcnc hal file to a test in the code G. This is certainly simple, but I have not managed to correct for now.
I think something like
.....
o88 if [#<pinxxx> EQ 0]
......
o88 endif
Michel
Please Log in to join the conversation.
13 years 4 months ago #35887
by bigalex
Replied by bigalex on topic Hal file and code G
Hi Michel.
Is this the way for HAL to interact with G Code ?
Is this a 2 way mode ( HAL --> G Code / G Code --> HAL ) ?
Wich version of LCNC are you using ?
bigalex :blink:
Is this the way for HAL to interact with G Code ?
Is this a 2 way mode ( HAL --> G Code / G Code --> HAL ) ?
Wich version of LCNC are you using ?
bigalex :blink:
Please Log in to join the conversation.
13 years 4 months ago #35888
by michel54
Replied by michel54 on topic Hal file and code G
I wish to make HAL --> G Code, yes HAL to interact with G Code
version 2.5.1
Thanks
version 2.5.1
Thanks
Please Log in to join the conversation.
13 years 4 months ago #35891
by bigalex
Replied by bigalex on topic Hal file and code G
Are you sure that this feature is available for the standard installation ?
I believe that you need LCNC installation from master branch for this .
This is a link to a small video (sorry is in russian) where you can see how to
name the Gcode variable hal related.
I hope this help.
bigalex :blink:
I believe that you need LCNC installation from master branch for this .
This is a link to a small video (sorry is in russian) where you can see how to
name the Gcode variable hal related.
I hope this help.
bigalex :blink:
Please Log in to join the conversation.
13 years 4 months ago #35922
by ArcEye
Replied by ArcEye on topic Hal file and code G
Hi
You need to download the master (2.6~pre xxxx)
Then read this and associated docs
www.linuxcnc.org/docs/devel/html/remap/structure.html
and look through the sample configs with the master build
You cannot just access any pin values, but a lot of values can be exposed through python / gladevcp scripts and used in gcode
If you are just looking to test a particular on/off state in your code, rather than a wider exploration, look at M62-65
regards
You need to download the master (2.6~pre xxxx)
Then read this and associated docs
www.linuxcnc.org/docs/devel/html/remap/structure.html
and look through the sample configs with the master build
You cannot just access any pin values, but a lot of values can be exposed through python / gladevcp scripts and used in gcode
If you are just looking to test a particular on/off state in your code, rather than a wider exploration, look at M62-65
regards
Please Log in to join the conversation.
Time to create page: 0.261 seconds
