Reading value of pin in g code

More
9 years 7 months ago #90361 by andypugh
Replied by andypugh on topic Reading value of pin in g code
How many do you have?

Maybe
Code:
(DEBUG, On Line 17: #5399)

And so on.

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

More
9 years 7 months ago #90362 by Radek
Replied by Radek on topic Reading value of pin in g code
There aren't any changes... still programme stops at 4 line. I picked 3 times (DEBUG, #5399) before if.
Attachments:

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

More
9 years 7 months ago #90367 by andypugh
Replied by andypugh on topic Reading value of pin in g code
It can't be stopping at line 4. It is executing line 8.

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

More
9 years 7 months ago #90393 by Sjdc1982
Replied by Sjdc1982 on topic Reading value of pin in g code
just my two cents
but for me, i noticed when i tried to describe variables or use any of them i need to put them in this format
#<_variable>
or they won't work, IE maybe if you try
#<_4> = 0

(fyi i'm using nightly builds / pre releases as well and installed from the DVD image.)

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

More
9 years 7 months ago #90399 by andypugh
Replied by andypugh on topic Reading value of pin in g code
LinuxCNC supports two sorts of parameters (what might be called variables in an actual programming language, which G-code probably isn't).

#4 is a conventional mumerical parameter
#<myvariable> is a named parameter, an extension to the G-code standard supported by LinuxCNC
#<_myvariable> is a named paramter with global scope (which means that it has a value which can be used outside of the subroutine it is defined in)
#<4> is a named parameter. It will not necessarily have the same value as #4
#<_4> is another named parameter with global scope. It can have a different value to both #4 and #<4>

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

More
9 years 7 months ago #90402 by Sjdc1982
Replied by Sjdc1982 on topic Reading value of pin in g code
and my idea does nothing lol, sorry just spit balling thought it was a issue with values/params not communication inside...

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

Time to create page: 0.195 seconds
Powered by Kunena Forum