Hal file and code G
21 Jun 2013 15:07 #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 or Create an account to join the conversation.
21 Jun 2013 22:37 - 21 Jun 2013 22:41 #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
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
Last edit: 21 Jun 2013 22:41 by bigalex.
Please Log in or Create an account to join the conversation.
21 Jun 2013 22:50 #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 or Create an account to join the conversation.
21 Jun 2013 22:58 #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
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
Please Log in or Create an account to join the conversation.
22 Jun 2013 23:29 #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 or Create an account to join the conversation.
Time to create page: 0.065 seconds